| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract InputStream | Returns: InputStream to use; either 'in' as is, or decorator version that typically delogates to 'in'IO context in use (provides access to declared encoding).
ctxt, InputStream Note at this point context may not have all information initialized; specifically auto-detected encoding is only available once parsing starts, which may occur only after this method is called. Original input source in)Method called by |
| public abstract InputStream | Returns: EitherInputStream to use as input source; or null to indicate
that contents are to be processed as-is by callerIO context in use (provides access to declared encoding)
NOTE: at this point context may not have all information initialized;
specifically auto-detected encoding is only available once parsing starts,
which may occur only after this method is called. ctxt, byte[] Input buffer that contains contents to parse src, int Offset of the first available byte in the input buffer offset, int Number of bytes available in the input buffer length)Method called by |
| public DataInput | Returns: InputStream to use; either 'input' as is, or decorator version that typically delogates to 'input'IO context in use (provides access to declared encoding).
ctxt, DataInput Note at this point context may not have all information initialized; specifically auto-detected encoding is only available once parsing starts, which may occur only after this method is called. Original input source input)Method called by |
| public abstract Reader | Returns: Reader to use; either passed in argument, or something that calls it (for example, aFilterReader)IO context in use (provides access to declared encoding)
NOTE: at this point context may not have all information initialized;
specifically auto-detected encoding is only available once parsing starts,
which may occur only after this method is called. ctxt, Reader Original reader r)Method called by |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| InputDecorator | back to summary |
|---|---|
| public InputDecorator() | |
| decorate | back to summary |
|---|---|
| public abstract InputStream decorate(IOContext ctxt, InputStream in) throws IOException Method called by
| |
| decorate | back to summary |
|---|---|
| public abstract InputStream decorate(IOContext ctxt, byte[] src, int offset, int length) throws IOException Method called by
| |
| decorate | back to summary |
|---|---|
| public DataInput decorate(IOContext ctxt, DataInput input) throws IOException Method called by
Default implementation simply throws
| |
| decorate | back to summary |
|---|---|
| public abstract Reader decorate(IOContext ctxt, Reader r) throws IOException Method called by
| |