org.apache.james.mime4j.io
public class BufferedLineReaderInputStream extends LineReaderInputStream
InputStream
.Constructor and Description |
---|
BufferedLineReaderInputStream(java.io.InputStream instream,
int buffersize) |
BufferedLineReaderInputStream(java.io.InputStream instream,
int buffersize,
int maxLineLen) |
Modifier and Type | Method and Description |
---|---|
byte[] |
buf() |
int |
capacity() |
byte |
charAt(int pos) |
void |
clear() |
void |
ensureCapacity(int len) |
int |
fillBuffer() |
boolean |
hasBufferedData() |
int |
indexOf(byte b) |
int |
indexOf(byte[] pattern)
Implements quick search algorithm as published by
|
int |
indexOf(byte[] pattern,
int off,
int len)
Implements quick search algorithm as published by
|
int |
indexOf(byte b,
int off,
int len) |
int |
length() |
int |
limit() |
boolean |
markSupported() |
int |
pos() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer . |
int |
skip(int n) |
java.lang.String |
toString() |
void |
truncate() |
public BufferedLineReaderInputStream(java.io.InputStream instream, int buffersize, int maxLineLen)
public BufferedLineReaderInputStream(java.io.InputStream instream, int buffersize)
public void ensureCapacity(int len)
public int fillBuffer() throws java.io.IOException
java.io.IOException
public boolean hasBufferedData()
public void truncate()
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public int readLine(ByteArrayBuffer dst) throws java.io.IOException
LineReaderInputStream
ByteArrayBuffer
.readLine
in class LineReaderInputStream
dst
- Destination-1
if the end of
the stream has been reached.java.io.IOException
- in case of an I/O error.public int indexOf(byte[] pattern, int off, int len)
SUNDAY D.M., 1990, A very fast substring search algorithm, Communications of the ACM . 33(8):132-142.
public int indexOf(byte[] pattern)
SUNDAY D.M., 1990, A very fast substring search algorithm, Communications of the ACM . 33(8):132-142.
public int indexOf(byte b, int off, int len)
public int indexOf(byte b)
public byte charAt(int pos)
public byte[] buf()
public int pos()
public int limit()
public int length()
public int capacity()
public int skip(int n)
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004-2014. All Rights Reserved.