ReadCounterpublic class EOFOnMatchInputStream extends java.io.PushbackInputStream implements ReadCounter
| コンストラクタ | 説明 |
|---|---|
EOFOnMatchInputStream(java.io.InputStream in,
byte[] match) |
Non-counter mode.
|
EOFOnMatchInputStream(java.io.InputStream in,
ReadCounter ctr,
byte[] match) |
Counter mode.
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
long |
getRead() |
If constructed with a counter, returns the count
(not necessarily starting at 0) minus the buffered/matched count.
|
int |
read() |
Debug only.
|
int |
read(byte[] buf,
int off,
int len) |
|
long |
skip(long n) |
|
boolean |
wasFound() |
public EOFOnMatchInputStream(java.io.InputStream in,
byte[] match)
match - will be copiedpublic EOFOnMatchInputStream(java.io.InputStream in,
ReadCounter ctr,
byte[] match)
match - will be copiedpublic long getRead()
getRead インタフェース内 ReadCounterpublic boolean wasFound()
public int read()
throws java.io.IOException
read クラス内 java.io.PushbackInputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read クラス内 java.io.PushbackInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip クラス内 java.io.PushbackInputStreamjava.io.IOException