< prev index next >

src/com/sun/org/apache/xml/internal/serialize/EncodingInfo.java

Print this page
rev 2127 : 8048021: Remove @version tag in jaxp repo
Reviewed-by: joehw


  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xml.internal.serialize;
  22 
  23 import java.io.OutputStream;
  24 import java.io.OutputStreamWriter;
  25 import java.io.UnsupportedEncodingException;
  26 import java.io.Writer;
  27 import com.sun.org.apache.xerces.internal.util.EncodingMap;
  28 
  29 /**
  30  * This class represents an encoding.
  31  *
  32  * @version $Id: EncodingInfo.java,v 1.6 2007/10/18 03:39:08 joehw Exp $
  33  */
  34 public class EncodingInfo {
  35 
  36     // An array to hold the argument for a method of Charset, CharsetEncoder or CharToByteConverter.
  37     private Object [] fArgsForMethod = null;
  38 
  39     // name of encoding as registered with IANA;
  40     // preferably a MIME name, but aliases are fine too.
  41     String ianaName;
  42     String javaName;
  43     int lastPrintable;
  44 
  45     // The CharsetEncoder with which we test unusual characters.
  46     Object fCharsetEncoder = null;
  47 
  48     // The CharToByteConverter with which we test unusual characters.
  49     Object fCharToByteConverter = null;
  50 
  51     // Is the converter null because it can't be instantiated
  52     // for some reason (perhaps we're running with insufficient authority as




  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xml.internal.serialize;
  22 
  23 import java.io.OutputStream;
  24 import java.io.OutputStreamWriter;
  25 import java.io.UnsupportedEncodingException;
  26 import java.io.Writer;
  27 import com.sun.org.apache.xerces.internal.util.EncodingMap;
  28 
  29 /**
  30  * This class represents an encoding.
  31  *

  32  */
  33 public class EncodingInfo {
  34 
  35     // An array to hold the argument for a method of Charset, CharsetEncoder or CharToByteConverter.
  36     private Object [] fArgsForMethod = null;
  37 
  38     // name of encoding as registered with IANA;
  39     // preferably a MIME name, but aliases are fine too.
  40     String ianaName;
  41     String javaName;
  42     int lastPrintable;
  43 
  44     // The CharsetEncoder with which we test unusual characters.
  45     Object fCharsetEncoder = null;
  46 
  47     // The CharToByteConverter with which we test unusual characters.
  48     Object fCharToByteConverter = null;
  49 
  50     // Is the converter null because it can't be instantiated
  51     // for some reason (perhaps we're running with insufficient authority as


< prev index next >