| uk.org.ponder.stringutil.EncodingErrorHandler
EncodingErrorHandler | public interface EncodingErrorHandler (Code) | | This is an interface used by the advanced InputStreamReader architecture
(uk.org.ponder.streamutil.DirectInputStreamReader and ByteToCharUTF8) to
allow far more authoritative and precise reporting of errors encountered
while converting byte-encoded data back into characters.
|
Method Summary | |
public void | reportEncodingError(String errortype, int linenumber, int byteoffset, byte[] sourcearray, int errorpos, int errorlength) Called by the decoder when an error is encountered in the byte data. |
reportEncodingError | public void reportEncodingError(String errortype, int linenumber, int byteoffset, byte[] sourcearray, int errorpos, int errorlength)(Code) | | Called by the decoder when an error is encountered in the byte data.
Parameters: errortype - A string representing the type of the encountered error. Parameters: linenumber - A line number (perhaps formed by counting \n) for the encountered error. Parameters: byteoffset - The byte offset of the data that is in error, within theentire data to be converted. Parameters: sourcearray - An array of bytes in which the erroneous input charactersmay be inspected. Parameters: errorpos - An offset within sourcearray of the erroneous bytes. Parameters: errorlength - As best as can be determined, the length in bytes of the error data. |
|
|