public class StringInputStream extends InputStream
| Constructor and Description |
|---|
StringInputStream(String s,
String enc) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readAheadLimit)
Despite the Eclipse warning: do NOT add synchronized - it is wrong.
|
boolean |
markSupported() |
int |
read() |
int |
read(byte[] arg0) |
int |
read(byte[] b,
int off,
int len) |
void |
reset()
Despite the Eclipse warning: do NOT add synchronized - it is wrong.
|
long |
skip(long n) |
public StringInputStream(String s, String enc) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readAheadLimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreampublic int read()
read in class InputStreampublic int read(byte[] b,
int off,
int len)
read in class InputStreampublic int read(byte[] arg0)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
reset in class InputStreamInputStream.reset()public long skip(long n)
skip in class InputStreamCopyright © 2017 etc.to. All rights reserved.