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.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamReaderjava.io.IOExceptionpublic void mark(int readLimit)
mark in class java.io.Readerpublic boolean markSupported()
markSupported in class java.io.Readerpublic int read()
throws java.io.IOException
read in class java.io.InputStreamReaderjava.io.IOExceptionpublic int read(char[] chars)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] chars,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamReaderjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic long skip(long charsToSkip)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionCopyright © 2011 EsprIT-Systems. All Rights Reserved.