| |
|
| java.lang.Object liquibase.util.StreamUtil
StreamUtil | public class StreamUtil (Code) | | Utilities for working with streams.
|
getLineSeparator | public static String getLineSeparator()(Code) | | |
getReaderContents | public static String getReaderContents(Reader reader) throws IOException(Code) | | Reads all the characters into a String.
Parameters: reader - The Reader to read. The contents of the input stream as a String throws: IOException - If there is an error reading the stream. |
getStreamContents | public static String getStreamContents(InputStream ins) throws IOException(Code) | | Reads a stream until the end of file into a String and uses the machines
default encoding to convert to characters the bytes from the Stream.
Parameters: ins - The InputStream to read. The contents of the input stream as a String throws: IOException - If there is an error reading the stream. |
getStreamContents | public static String getStreamContents(InputStream ins, String charsetName) throws IOException(Code) | | Reads a stream until the end of file into a String and uses the machines
default encoding to convert to characters the bytes from the Stream.
Parameters: ins - The InputStream to read. Parameters: charsetName - The name of a supported java.nio.charset.Charset charset The contents of the input stream as a String throws: IOException - If there is an error reading the stream. |
|
|
|