Serializablepublic class StreamReader extends SMYLDObject
NEW_LINE, OS_NEW_LINE| Constructor | Description |
|---|---|
StreamReader() |
|
StreamReader(File inputFile) |
This constructor will take java.io.File object as the source to read
|
StreamReader(InputStream inputStreamObject) |
This constructor will take java.io.InputStream object as the source to
read
|
StreamReader(Reader readerObject) |
This constructor will take java.io.InputStream object as the source to
read
|
StreamReader(String inputFileName) |
This constructor will take java.io.File object as the source to read
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
read() |
Returns the data stored in the given io object as string
|
String |
read(int dataBlockAmount) |
Returns the data stored in the given io object as string
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic StreamReader()
public StreamReader(String inputFileName) throws IOException
in - the input stream objectIOException - if the passed file corrupted or not existpublic StreamReader(File inputFile) throws IOException
in - the input stream objectIOException - if the passed file corrupted or not existpublic StreamReader(InputStream inputStreamObject)
in - the input stream objectpublic StreamReader(Reader readerObject)
in - the input stream objectpublic String read() throws IOException
IOExceptionpublic String read(int dataBlockAmount)
Copyright © 2019 SMYLD. All rights reserved.