| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final Charset | |
| private final CharsetDecoder | |
| private final String | |
| private final File | |
| private final InputStream | |
| private final int | |
| private final Reader | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private | Source(String string, byte[] bytes, String charsetName, Charset charset, CharsetDecoder charsetDecoder, Reader reader, InputStream inputStream, File file, int length)
|
| Modifier and Type | Method and Description |
|---|---|
| private final Reader | |
| public static final Source | |
| public static final Source | |
| public static final Source | |
| public static final Source | |
| public static final Source | of(byte[] bytes, CharsetDecoder charsetDecoder)
Create a source from binary data using a specific character set. |
| public static final Source | |
| public static final Source | |
| public static final Source | |
| public static final Source | of(File file, CharsetDecoder charsetDecoder)
Create a source from a file using a specific character set. |
| public static final Source | |
| public static final Source | |
| public static final Source | |
| public static final Source | of(InputStream inputStream, String charsetName)
Create a source from an input stream using a specific character set. |
| public static final Source | of(InputStream inputStream, Charset charset)
Create a source from an input stream using a specific character set. |
| public static final Source | of(InputStream inputStream, CharsetDecoder charsetDecoder)
Create a source from an input stream using a specific character set. |
| public static final Source | |
| public static final Source | of(InputStream inputStream, int length, String charsetName)
Create a source from an input stream using a specific character set. |
| public static final Source | of(InputStream inputStream, int length, Charset charset)
Create a source from an input stream using a specific character set. |
| public static final Source | of(InputStream inputStream, int length, CharsetDecoder charsetDecoder)
Create a source from an input stream using a specific character set. |
| public final Reader | |
| public final String | |
| public String |
| bytes | back to summary |
|---|---|
| private final byte[] bytes | |
| charset | back to summary |
|---|---|
| private final Charset charset | |
| charsetDecoder | back to summary |
|---|---|
| private final CharsetDecoder charsetDecoder | |
| charsetName | back to summary |
|---|---|
| private final String charsetName | |
| file | back to summary |
|---|---|
| private final File file | |
| inputStream | back to summary |
|---|---|
| private final InputStream inputStream | |
| length | back to summary |
|---|---|
| private final int length | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| string | back to summary |
|---|---|
| private final String string | |
| Source | back to summary |
|---|---|
| private Source(String string, byte[] bytes, String charsetName, Charset charset, CharsetDecoder charsetDecoder, Reader reader, InputStream inputStream, File file, int length) | |
| inputStreamReader | back to summary |
|---|---|
| private final Reader inputStreamReader(InputStream is) throws UnsupportedEncodingException | |
| of | back to summary |
|---|---|
| public static final Source of(String string) Create a source from a string. | |
| of | back to summary |
|---|---|
| public static final Source of(byte[] bytes) Create a source from binary data. | |
| of | back to summary |
|---|---|
| public static final Source of(byte[] bytes, String charsetName) Create a source from binary data using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(byte[] bytes, Charset charset) Create a source from binary data using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(byte[] bytes, CharsetDecoder charsetDecoder) Create a source from binary data using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(File file) Create a source from a file. | |
| of | back to summary |
|---|---|
| public static final Source of(File file, String charsetName) Create a source from a file using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(File file, Charset charset) Create a source from a file using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(File file, CharsetDecoder charsetDecoder) Create a source from a file using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(Reader reader) Create a source from a reader. | |
| of | back to summary |
|---|---|
| public static final Source of(Reader reader, int length) Create a source from a reader. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream) Create a source from an input stream. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, String charsetName) Create a source from an input stream using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, Charset charset) Create a source from an input stream using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, CharsetDecoder charsetDecoder) Create a source from an input stream using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, int length) Create a source from an input stream. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, int length, String charsetName) Create a source from an input stream using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, int length, Charset charset) Create a source from an input stream using a specific character set. | |
| of | back to summary |
|---|---|
| public static final Source of(InputStream inputStream, int length, CharsetDecoder charsetDecoder) Create a source from an input stream using a specific character set. | |
| reader | back to summary |
|---|---|
| public final Reader reader() throws IOException Produce a reader from this source.
| |
| readString | back to summary |
|---|---|
| public final String readString() throws IOException Read the entire
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final InputStream | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public int | read()
Implements abstract java. |
| is | back to summary |
|---|---|
| pack-priv final InputStream is | |
| length | back to summary |
|---|---|
| pack-priv int length | |
| LengthLimitedInputStream | back to summary |
|---|---|
| pack-priv LengthLimitedInputStream(InputStream is, int length) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv final Reader |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters off, int Maximum number of characters to read len)Implements abstract java. |
| length | back to summary |
|---|---|
| pack-priv int length | |
| reader | back to summary |
|---|---|
| pack-priv final Reader reader | |
| LengthLimitedReader | back to summary |
|---|---|
| pack-priv LengthLimitedReader(Reader reader, int length) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |