nu.validator.htmlparser.io
Class Encoding

java.lang.Object
  extended by nu.validator.htmlparser.io.Encoding

public class Encoding
extends java.lang.Object


Field Summary
static Encoding UTF16
           
static Encoding UTF16BE
           
static Encoding UTF16LE
           
static Encoding UTF8
           
static Encoding WINDOWS1252
           
 
Method Summary
 boolean canEncode()
           
static Encoding forName(java.lang.String name)
           
 Encoding getActualHtmlEncoding()
          Returns the actualHtmlEncoding.
 java.lang.String getCanonName()
          Returns the canonName.
 boolean isAsciiSuperset()
          Returns the asciiSuperset.
 boolean isLikelyEbcdic()
          Returns the likelyEbcdic.
 boolean isObscure()
          Returns the obscure.
 boolean isRegistered()
           
 boolean isShouldNot()
          Returns the shouldNot.
static void main(java.lang.String[] args)
           
 java.nio.charset.CharsetDecoder newDecoder()
           
 java.nio.charset.CharsetEncoder newEncoder()
           
static java.lang.String toAsciiLowerCase(java.lang.String str)
           
static java.lang.String toNameKey(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTF8

public static final Encoding UTF8

UTF16

public static final Encoding UTF16

UTF16LE

public static final Encoding UTF16LE

UTF16BE

public static final Encoding UTF16BE

WINDOWS1252

public static final Encoding WINDOWS1252
Method Detail

forName

public static Encoding forName(java.lang.String name)

toNameKey

public static java.lang.String toNameKey(java.lang.String str)

toAsciiLowerCase

public static java.lang.String toAsciiLowerCase(java.lang.String str)

isAsciiSuperset

public boolean isAsciiSuperset()
Returns the asciiSuperset.

Returns:
the asciiSuperset

getCanonName

public java.lang.String getCanonName()
Returns the canonName.

Returns:
the canonName

isLikelyEbcdic

public boolean isLikelyEbcdic()
Returns the likelyEbcdic.

Returns:
the likelyEbcdic

isObscure

public boolean isObscure()
Returns the obscure.

Returns:
the obscure

isShouldNot

public boolean isShouldNot()
Returns the shouldNot.

Returns:
the shouldNot

isRegistered

public boolean isRegistered()

canEncode

public boolean canEncode()
Returns:
See Also:
Charset.canEncode()

newDecoder

public java.nio.charset.CharsetDecoder newDecoder()
Returns:
See Also:
Charset.newDecoder()

newEncoder

public java.nio.charset.CharsetEncoder newEncoder()
Returns:
See Also:
Charset.newEncoder()

getActualHtmlEncoding

public Encoding getActualHtmlEncoding()
Returns the actualHtmlEncoding.

Returns:
the actualHtmlEncoding

main

public static void main(java.lang.String[] args)