|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.netbeans.lib.cvsclient.util.LoggedDataInputStream
public class LoggedDataInputStream
This input stream worked exactly like the normal DataInputStream except that it logs anything read to a file
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
LoggedDataInputStream(InputStream in)
Construct a logged stream using the specified underlying stream |
Method Summary | |
---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
long |
getCounter()
|
InputStream |
getUnderlyingStream()
|
int |
read()
Interruptible read. |
int |
read(byte[] b)
Reads up to byte.length bytes of data from this input stream into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of bytes |
byte[] |
readBytes(int len)
Synchronously reads fixed chunk from the stream, logging it too. |
String |
readLine()
Deprecated. It converts input data to string using ByteArray.getStringFromBytes()
that works only for ASCII without 0. Use byte access methods instead. |
ByteArray |
readLineBytes()
|
void |
setUnderlyingStream(InputStream is)
|
long |
skip(long n)
|
Methods inherited from class java.io.FilterInputStream |
---|
available, mark, markSupported, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggedDataInputStream(InputStream in)
in
- the streamMethod Detail |
---|
public String readLine() throws IOException
ByteArray.getStringFromBytes()
that works only for ASCII without 0. Use byte access methods instead.
IOException
public ByteArray readLineBytes() throws IOException
IOException
EOFException
- at stream endpublic byte[] readBytes(int len) throws IOException
len
- blocks until specifid number of bytes is read.
IOException
public void close() throws IOException
close
in interface Closeable
close
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
InterruptedIOException
- on thread interrupt
IOException
public InputStream getUnderlyingStream()
public void setUnderlyingStream(InputStream is)
public long getCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |