Reading from this input stream obtains data from channel 1, which is typically the bulk data stream.
Channel 2 is transparently unpacked and "scraped" to update a progress monitor. The scraping is performed behind the scenes as part of any of the read methods offered by this stream.
Channel 3 results in an exception being thrown, as the remote side has issued an unrecoverable error.
SideBandOutputStream
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private int | |
| private String | |
| private boolean | |
| private int | |
| private static final Logger | |
| private final Writer | |
| private final ProgressMonitor | |
| private final OutputStream | |
| private static Pattern | |
| private static Pattern | |
| private final PacketLineIn | |
| private String | |
| private final InputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv | SideBandInputStream(final InputStream in, final ProgressMonitor progress, final Writer messageStream, OutputStream outputStream)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| pack-priv void | |
| private void | |
| private void | |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| 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 |
| private String | |
| private static String |
| available | back to summary |
|---|---|
| private int available | |
| CH_DATA | back to summary |
|---|---|
| pack-priv static final int CH_DATA | |
| CH_ERROR | back to summary |
|---|---|
| pack-priv static final int CH_ERROR | |
| CH_PROGRESS | back to summary |
|---|---|
| pack-priv static final int CH_PROGRESS | |
| channel | back to summary |
|---|---|
| private int channel | |
| currentTask | back to summary |
|---|---|
| private String currentTask | |
| eof | back to summary |
|---|---|
| private boolean eof | |
| lastCnt | back to summary |
|---|---|
| private int lastCnt | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| messages | back to summary |
|---|---|
| private final Writer messages | |
| monitor | back to summary |
|---|---|
| private final ProgressMonitor monitor | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| P_BOUNDED | back to summary |
|---|---|
| private static Pattern P_BOUNDED | |
| P_UNBOUNDED | back to summary |
|---|---|
| private static Pattern P_UNBOUNDED | |
| pckIn | back to summary |
|---|---|
| private final PacketLineIn pckIn | |
| progressBuffer | back to summary |
|---|---|
| private String progressBuffer | |
| rawIn | back to summary |
|---|---|
| private final InputStream rawIn | |
| SideBandInputStream | back to summary |
|---|---|
| pack-priv SideBandInputStream(final InputStream in, final ProgressMonitor progress, final Writer messageStream, OutputStream outputStream) | |
| beginTask | back to summary |
|---|---|
| private void beginTask(int totalWorkUnits) | |
| doProgressLine | back to summary |
|---|---|
| private void doProgressLine(String msg) throws IOException | |
| drainMessages | back to summary |
|---|---|
| pack-priv void drainMessages() Forces any buffered progress messages to be written. | |
| needDataPacket | back to summary |
|---|---|
| private void needDataPacket() throws IOException | |
| progress | back to summary |
|---|---|
| private void progress(String pkt) throws IOException | |
| 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
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| readString | back to summary |
|---|---|
| private String readString(int len) throws IOException | |
| remote | back to summary |
|---|---|
| private static String remote(String msg) | |