|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
opendap.dap.HeaderInputStream
public class HeaderInputStream
The HeaderInputStream filters the input to only read lines of text until the "Data:" line. This is required because overzealous buffering in the DDSParser will read the data as well as the DDS otherwise.
DConnect| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
HeaderInputStream(java.io.InputStream in)
Construct a new HeaderInputStream. |
|
| Method Summary | |
|---|---|
int |
available()
Return the number of bytes in the buffer. |
boolean |
markSupported()
Returns that we don't support the mark() and reset() methods. |
int |
read()
Reads a single byte of data |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of bytes. |
long |
skip(long n)
Skips over and discards n bytes of data from the input stream. |
| Methods inherited from class java.io.FilterInputStream |
|---|
close, mark, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderInputStream(java.io.InputStream in)
| Method Detail |
|---|
public int available()
available in class java.io.FilterInputStreampublic boolean markSupported()
markSupported in class java.io.FilterInputStream
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
skip in class java.io.FilterInputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||