<?xml version="1.0" encoding="utf-8"?>
<!--

    This file is

    Copyright 2007,2008,2009,2010 Rustici Software, LLC
    Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)

-->
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
  <Imports />
  <Java>Encoding</Java>
  <Name>System.Text.Encoding</Name>
  <Uses />
  <Inherits> <Type>System.Object</Type> </Inherits>
  <Methods>
    <Method>
      <Imports />
      <Java>${this:16}.getBytes(${s})</Java>
      <Params>
        <Param>
          <Type>System.String</Type>
          <Name>s</Name>
        </Param>
      </Params>
      <Name>GetBytes</Name>
      <Return>System.Byte[]</Return>
    </Method>
    <Method>
      <Imports />
      <Java>new String(${buf}, ${index}, ${count}, ${this:16}.getCharset())</Java>
      <Params>
        <Param>
          <Type>System.Byte[]</Type>
          <Name>buf</Name>
        </Param>
        <Param>
          <Type>System.Int32</Type>
          <Name>index</Name>
        </Param>
        <Param>
          <Type>System.Int32</Type>
          <Name>count</Name>
        </Param>
      </Params>
      <Name>GetString</Name>
      <Return>System.String</Return>
    </Method>
  </Methods>
  <Properties>
    <Property>
      <Imports>
        <Import>CS2JNet.System.Text.EncodingSupport</Import>
      </Imports>
      <Type>System.Text.Encoding</Type>
      <Name>UTF8</Name>
      <Get>EncodingSupport.GetEncoder("UTF-8")</Get>
      <Set>${this:16}.setUTF8(${value})</Set>
    </Property>
    <Property>
      <Imports>
        <Import>CS2JNet.System.Text.EncodingSupport</Import>
      </Imports>
      <Type>System.Text.Encoding</Type>
      <Name>ASCII</Name>
      <Get>EncodingSupport.GetEncoder("ASCII")</Get>
    </Property>
  </Properties>
  <Events />
  <Indexers />
  <Constructors />
  <Fields />
  <Casts />
  <UnaryOps />
  <BinaryOps />
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>e4ePeRmQwsjX5KF0edSKgxjE+lE=</DigestValue></Reference></SignedInfo><SignatureValue>aQ32qkn311nWckP07N+PXe2CGfWci1k2OkXy7xU/m/t2knhSdG0mo09v+U44mbiBFIZtCXG0IPtQ07x2INaShojv/pddrE/dWbPlhOIgvQB8mFKvBEwM3QsSq2hFh9Ua66dGybh+mkp055uS0pH4IO+/JENMq7B8RzOdv4vyV0A=</SignatureValue></Signature></Class>