| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int[] | |
| private int | |
| private final byte[] | |
| private int | |
| private final byte[] | |
| private ReplacingInputStream. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | ReplacingInputStream(InputStream
input in, String pattern to replace. pattern, String the replacement or null replacement)Replace occurrences of pattern in the input. |
| public | ReplacingInputStream(InputStream
input in, byte[] pattern to replace pattern, byte[] the replacement or null replacement)Replace occurrences of pattern in the input. |
| Modifier and Type | Method and Description |
|---|---|
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| public int | read(byte[]
the buffer into which the data is read. b)Overrides java. Reads up to |
| public int | |
| public String |
| buf | back to summary |
|---|---|
| pack-priv final int[] buf | |
| matchedIndex | back to summary |
|---|---|
| private int matchedIndex | |
| pattern | back to summary |
|---|---|
| private final byte[] pattern | |
| replacedIndex | back to summary |
|---|---|
| private int replacedIndex | |
| replacement | back to summary |
|---|---|
| private final byte[] replacement | |
| state | back to summary |
|---|---|
| private ReplacingInputStream. | |
| unbufferIndex | back to summary |
|---|---|
| private int unbufferIndex | |
| ReplacingInputStream | back to summary |
|---|---|
| public ReplacingInputStream(InputStream in, String pattern, String replacement) Replace occurrences of pattern in the input. Note input is assumed to be UTF-8 encoded. If not the case use byte[] based pattern and replacement.
| |
| ReplacingInputStream | back to summary |
|---|---|
| public ReplacingInputStream(InputStream in, byte[] pattern, byte[] replacement) Replace occurrences of pattern in the input.
If you want to normalize line endings DOS/MAC (\n\r | \r) to UNIX (\n), you can call the following:
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ReplacingInputStream. | |
| public static final ReplacingInputStream. | |
| public static final ReplacingInputStream. | |
| public static final ReplacingInputStream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ReplacingInputStream. | |
| public static ReplacingInputStream. |
| MATCHING | back to summary |
|---|---|
| public static final ReplacingInputStream. | |
| NOT_MATCHED | back to summary |
|---|---|
| public static final ReplacingInputStream. | |
| REPLACING | back to summary |
|---|---|
| public static final ReplacingInputStream. | |
| UNBUFFER | back to summary |
|---|---|
| public static final ReplacingInputStream. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static ReplacingInputStream. | |
| values | back to summary |
|---|---|
| public static ReplacingInputStream. | |