| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private LineInputStream | |
| private int | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | UUDecoderStream(InputStream
the input stream in)Create a UUdecoder that decodes the specified input stream. |
| public | UUDecoderStream(InputStream
the input stream in, boolean ignore errors? ignoreErrors, boolean ignore missing begin or end? ignoreMissingBeginEnd)Create a UUdecoder that decodes the specified input stream. |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| private boolean | |
| public int | |
| public String | |
| public boolean | markSupported()
Overrides java. mark
and reset methods.
|
| public int | Returns: next byte of data, or-1 if the end of
stream is reached.Overrides java. |
| public int | read(byte[]
the buffer into which the data is read. buf, 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. len bytes of data from this input stream
into an array of bytes.
|
| private void | readPrefix()
UUencoded streams start off with the line: "begin <mode> <filename>" Search for this prefix and gobble it up. |
| buffer | back to summary |
|---|---|
| private byte[] buffer | |
| bufsize | back to summary |
|---|---|
| private int bufsize | |
| gotEnd | back to summary |
|---|---|
| private boolean gotEnd | |
| gotPrefix | back to summary |
|---|---|
| private boolean gotPrefix | |
| ignoreErrors | back to summary |
|---|---|
| private boolean ignoreErrors | |
| ignoreMissingBeginEnd | back to summary |
|---|---|
| private boolean ignoreMissingBeginEnd | |
| index | back to summary |
|---|---|
| private int index | |
| lin | back to summary |
|---|---|
| private LineInputStream lin | |
| mode | back to summary |
|---|---|
| private int mode | |
| name | back to summary |
|---|---|
| private String name | |
| readAhead | back to summary |
|---|---|
| private String readAhead | |
| UUDecoderStream | back to summary |
|---|---|
| public UUDecoderStream(InputStream in) Create a UUdecoder that decodes the specified input stream.
The System property
| |
| UUDecoderStream | back to summary |
|---|---|
| public UUDecoderStream(InputStream in, boolean ignoreErrors, boolean ignoreMissingBeginEnd) Create a UUdecoder that decodes the specified input stream.
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes.
| |
| decode | back to summary |
|---|---|
| private boolean decode() throws IOException | |
| getMode | back to summary |
|---|---|
| public int getMode() throws IOException Get the "mode" field from the prefix. This is the permission mode of the source file.
| |
| getName | back to summary |
|---|---|
| public String getName() throws IOException Get the "name" field from the prefix. This is meant to be the pathname of the decoded file
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tests if this input stream supports the
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Read the next decoded byte from this input stream. The byte
is returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| readPrefix | back to summary |
|---|---|
| private void readPrefix() throws IOException UUencoded streams start off with the line:
"begin | |