|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
wt.federation.FederatedHttpInputStream
Supported API: true
Extendable: false
Field Summary | |
private byte[] |
buffer
|
private int |
bufferCursor
|
private int |
bufferLimit
|
private int |
bufferSize
|
private static String |
CLASSNAME
|
private boolean |
finalBoundary
|
private static String |
RESOURCE
|
private InputStream |
stream
|
Fields inherited from class java.io.InputStream |
|
Constructor Summary | |
FederatedHttpInputStream(InputStream inputStream)
Constructor returning an instance initialized with the specified input stream. |
Method Summary | |
int |
available()
Returns the number of bytes that can be read without blocking. |
void |
close()
Closes the stream. |
boolean |
isFinalBoundary()
Returns true if the last call to readUntilBoundary detected the final boundary of a MIME multipart object. |
boolean |
markSupported()
Indicates whether mark and reset methods are supported. |
int |
read()
Reads and returns the next byte. |
int |
read(byte[] b)
Reads bytes into the specified buffer. |
int |
read(byte[] b,
int off,
int len)
Reads bytes into the specified buffer at the specified position with specified maximum length. |
byte[] |
readBytesUntilBoundary(String boundary)
Reads octets until a specified MIME boundary is detected. |
byte[] |
readBytesUntilEnd()
Reads octets until end of file is detected. |
int |
readBytesUntilFull(byte[] bytes)
Reads octets until the specified array is full or end of file is reached. |
String |
readLine()
Reads the next line, returning the line as a String. |
long |
skip(long n)
Skips and discards the specified number of bytes. |
Methods inherited from class java.io.InputStream |
mark, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private byte[] buffer
private int bufferCursor
private int bufferLimit
private int bufferSize
private boolean finalBoundary
private InputStream stream
Constructor Detail |
public FederatedHttpInputStream(InputStream inputStream)
inputStream
- Method Detail |
public int available() throws IOException
IOException
public void close() throws IOException
IOException
public int read() throws IOException
IOException
public int read(byte[] b) throws IOException
b
-
IOException
public int read(byte[] b, int off, int len) throws IOException
b
- off
- len
-
IOException
public long skip(long n) throws IOException
n
-
IOException
public String readLine() throws IOException
IOException
public byte[] readBytesUntilBoundary(String boundary) throws IOException
boundary
-
IOException
public byte[] readBytesUntilEnd() throws IOException
IOException
public int readBytesUntilFull(byte[] bytes) throws IOException
bytes
-
IOException
public boolean isFinalBoundary()
public boolean markSupported()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |