public class DotUnstuffingInputStream
extends java.io.FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected int[] |
last
An array to hold the last two bytes read off the stream.
|
Constructor and Description |
---|
DotUnstuffingInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getBaseStream()
Provide access to the base input stream.
|
int |
read()
Read through the stream, checking for '\r\n.'
|
int |
read(byte[] b,
int off,
int len)
Read through the stream, checking for '\r\n.'
|
protected int[] last
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
b
- the byte array into which the bytes will be readoff
- the offset into the byte array where the bytes will be insertedlen
- the maximum number of bytes to be read off the streamjava.io.IOException
public java.io.InputStream getBaseStream()
Copyright © 2006–2018. All rights reserved.