|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
edu.uci.ics.jung.utils.StringInputStream
java.io.StringReader
instead.
public class StringInputStream
Wraps a String as an InputStream. Note that data will be lost for characters not in ISO Latin 1, as a simple char->byte mapping is assumed. This file is (c) The Apache Software Foundation, and is released under the Apache Software License, Version 1.1, and is part of the apache ANT project (http://ant.apache.com
Constructor Summary | |
---|---|
StringInputStream(String source)
Deprecated. Composes a stream from a String |
Method Summary | |
---|---|
void |
close()
Deprecated. Closes the Stringreader. |
void |
mark(int limit)
Deprecated. Marks the read limit of the StringReader. |
boolean |
markSupported()
Deprecated. |
int |
read()
Deprecated. Reads from the Stringreader, returning the same value. |
void |
reset()
Deprecated. Resets the StringReader. |
Methods inherited from class java.io.InputStream |
---|
available, read, read, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringInputStream(String source)
source
- The string to read from. Must not be null
.Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
- if the original StringReader fails to be readpublic void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
- if the original StringReader fails to be closedpublic void mark(int limit)
mark
in class InputStream
limit
- the maximum limit of bytes that can be read before the
mark position becomes invalidpublic void reset() throws IOException
reset
in class InputStream
IOException
- if the StringReader fails to be resetpublic boolean markSupported()
markSupported
in class InputStream
InputStream.markSupported()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |