|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
wt.federation.FederatedHttpInputStream
public class FederatedHttpInputStream
Supported API: true
Extendable: false
| 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 |
| Constructor Detail |
|---|
public FederatedHttpInputStream(InputStream inputStream)
inputStream - | Method Detail |
|---|
public int available()
throws IOException
available in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamb -
IOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - off - len -
IOException
public long skip(long n)
throws IOException
skip in class InputStreamn -
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 -
IOExceptionpublic boolean isFinalBoundary()
public boolean markSupported()
markSupported in class InputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||