The exception returns the unconsumed InputStream to allow the application to do an alternate processing with the stream. Note that the original InputStream given to the XmlReader cannot be used as that one has been already read.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final String | |
| private final InputStream | |
| private static final long | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | XmlReaderException(final String
message describing the reason for the exception. msg, final String BOM encoding. bomEnc, final String XML guess encoding. xmlGuessEnc, final String XML prolog encoding. xmlEnc, final InputStream the unconsumed InputStream. is)Creates an exception instance if the charset encoding could not be determined. |
| public | XmlReaderException(final String
message describing the reason for the exception. msg, final String MIME type in the content-type. ctMime, final String encoding in the content-type. ctEnc, final String BOM encoding. bomEnc, final String XML guess encoding. xmlGuessEnc, final String XML prolog encoding. xmlEnc, final InputStream the unconsumed InputStream. is)Creates an exception instance if the charset encoding could not be determined. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the BOM encoding, null if none.Returns the BOM encoding found in the InputStream. |
| public String | Returns: the encoding in the content-type, null if there was not content-type, no encoding in it or the encoding detection did not involve HTTP.Returns the encoding in the content-type used to attempt determining the encoding. |
| public String | Returns: the MIME type in the content-type, null if there was not content-type or the encoding detection did not involve HTTP.Returns the MIME type in the content-type used to attempt determining the encoding. |
| public InputStream | Returns: the unconsumed InputStream.Returns the unconsumed InputStream to allow the application to do an alternate encoding detection on the InputStream. |
| public String | Returns: the encoding of the XML prolog, null if none.Returns the encoding found in the XML prolog of the InputStream. |
| public String | Returns: the encoding guess, null if it couldn't be guessed.Returns the encoding guess based on the first bytes of the InputStream. |
| bomEncoding | back to summary |
|---|---|
| private final String bomEncoding | |
| contentTypeEncoding | back to summary |
|---|---|
| private final String contentTypeEncoding | |
| contentTypeMime | back to summary |
|---|---|
| private final String contentTypeMime | |
| is | back to summary |
|---|---|
| private final InputStream is | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| xmlEncoding | back to summary |
|---|---|
| private final String xmlEncoding | |
| xmlGuessEncoding | back to summary |
|---|---|
| private final String xmlGuessEncoding | |
| XmlReaderException | back to summary |
|---|---|
| public XmlReaderException(final String msg, final String bomEnc, final String xmlGuessEnc, final String xmlEnc, final InputStream is) Creates an exception instance if the charset encoding could not be determined. Instances of this exception are thrown by the XmlReader.
| |
| XmlReaderException | back to summary |
|---|---|
| public XmlReaderException(final String msg, final String ctMime, final String ctEnc, final String bomEnc, final String xmlGuessEnc, final String xmlEnc, final InputStream is) Creates an exception instance if the charset encoding could not be determined. Instances of this exception are thrown by the XmlReader.
| |
| getBomEncoding | back to summary |
|---|---|
| public String getBomEncoding() Returns the BOM encoding found in the InputStream.
| |
| getContentTypeEncoding | back to summary |
|---|---|
| public String getContentTypeEncoding() Returns the encoding in the content-type used to attempt determining the encoding.
| |
| getContentTypeMime | back to summary |
|---|---|
| public String getContentTypeMime() Returns the MIME type in the content-type used to attempt determining the encoding.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Returns the unconsumed InputStream to allow the application to do an alternate encoding detection on the InputStream.
| |
| getXmlEncoding | back to summary |
|---|---|
| public String getXmlEncoding() Returns the encoding found in the XML prolog of the InputStream.
| |
| getXmlGuessEncoding | back to summary |
|---|---|
| public String getXmlGuessEncoding() Returns the encoding guess based on the first bytes of the InputStream.
| |