|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.tools.io.file.reader.TextReader
public class TextReader
| Constructor Summary | |
|---|---|
TextReader()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
toString(java.io.File file)
Get the contents of a File as a String using the default character encoding. |
static java.lang.String |
toString(java.io.File file,
java.lang.String encoding)
Get the contents of a File as a String using the specified character encoding. |
static java.lang.String |
toString(javax.xml.transform.stream.StreamSource src)
Convert the input from the provided Reader into a String. |
static java.lang.String |
toString(javax.xml.transform.stream.StreamSource src,
java.lang.String ecoding)
Convert the input from the provided Reader into a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextReader()
| Method Detail |
|---|
public static java.lang.String toString(java.io.File file,
java.lang.String encoding)
File as a String using the specified character encoding.
file - File to read fromencoding - IANA encoding
String containig the content of the File or
null if an error happens.public static java.lang.String toString(java.io.File file)
File as a String using the default character encoding.
file - File to read from
String containig the content of the File or
null if an error happens.
public static java.lang.String toString(javax.xml.transform.stream.StreamSource src,
java.lang.String ecoding)
throws java.io.IOException
Reader into a String.
inputStream - the Reader to copy from.
String that contains the content of the provided Reader.
java.io.IOException - in case something bad happens.
public static java.lang.String toString(javax.xml.transform.stream.StreamSource src)
throws java.io.IOException
Reader into a String.
inputStream - the Reader to copy from.
String that contains the content of the provided Reader.
java.io.IOException - in case something bad happens.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||