public class NullReader
extends java.io.InputStreamReader
NullInputStream
. In order to produce
customized test-data you may provide a customized NullInputStream
via
constructor.Constructor and Description |
---|
NullReader(long size) |
NullReader(long size,
boolean isMarkSupported,
boolean isThrowEOF) |
NullReader(NullInputStream nullStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getPosition() |
long |
getSize() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] chars) |
int |
read(char[] chars,
int offset,
int length) |
void |
reset() |
long |
skip(long charsToSkip) |
public NullReader(long size)
public NullReader(long size, boolean isMarkSupported, boolean isThrowEOF)
public NullReader(NullInputStream nullStream)
public long getPosition()
public long getSize()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStreamReader
java.io.IOException
public void mark(int readLimit)
mark
in class java.io.Reader
public boolean markSupported()
markSupported
in class java.io.Reader
public int read() throws java.io.IOException
read
in class java.io.InputStreamReader
java.io.IOException
public int read(char[] chars) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] chars, int offset, int length) throws java.io.IOException
read
in class java.io.InputStreamReader
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
public long skip(long charsToSkip) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException
Copyright © 2011 EsprIT-Systems. All Rights Reserved.