< prev index next >

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

Print this page




  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xml.internal.serialize;
  23 
  24 import java.io.OutputStream;
  25 import java.io.OutputStreamWriter;
  26 import java.io.UnsupportedEncodingException;
  27 import java.io.Writer;
  28 import com.sun.org.apache.xerces.internal.util.EncodingMap;
  29 import java.nio.charset.Charset;
  30 import java.nio.charset.CharsetEncoder;
  31 
  32 /**
  33  * This class represents an encoding.
  34  *
  35  * @deprecated As of JDK 1.9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  36  * is replaced by that of Xalan. Main class
  37  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  38  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  39  */
  40 public class EncodingInfo {
  41 
  42     // name of encoding as registered with IANA;
  43     // preferably a MIME name, but aliases are fine too.
  44     String ianaName;
  45     String javaName;
  46     int lastPrintable;
  47 
  48     // The CharsetEncoder with which we test unusual characters.
  49     CharsetEncoder fCharsetEncoder = null;
  50 
  51     // Is the charset encoder usable or available.
  52     boolean fHaveTriedCharsetEncoder = false;
  53 
  54     /**
  55      * Creates new <code>EncodingInfo</code> instance.




  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xml.internal.serialize;
  23 
  24 import java.io.OutputStream;
  25 import java.io.OutputStreamWriter;
  26 import java.io.UnsupportedEncodingException;
  27 import java.io.Writer;
  28 import com.sun.org.apache.xerces.internal.util.EncodingMap;
  29 import java.nio.charset.Charset;
  30 import java.nio.charset.CharsetEncoder;
  31 
  32 /**
  33  * This class represents an encoding.
  34  *
  35  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  36  * is replaced by that of Xalan. Main class
  37  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  38  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  39  */
  40 public class EncodingInfo {
  41 
  42     // name of encoding as registered with IANA;
  43     // preferably a MIME name, but aliases are fine too.
  44     String ianaName;
  45     String javaName;
  46     int lastPrintable;
  47 
  48     // The CharsetEncoder with which we test unusual characters.
  49     CharsetEncoder fCharsetEncoder = null;
  50 
  51     // Is the charset encoder usable or available.
  52     boolean fHaveTriedCharsetEncoder = false;
  53 
  54     /**
  55      * Creates new <code>EncodingInfo</code> instance.


< prev index next >