public class StreamUtil extends Object
| Constructor and Description |
|---|
StreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream inputStream,
OutputStream outputStream) |
static String |
getLineSeparator() |
static InputStream |
openStream(String path,
Boolean relativeToChangelogFile,
ChangeSet changeSet,
ResourceAccessor resourceAccessor)
Deprecated.
|
static byte[] |
readStream(InputStream stream) |
static String |
readStreamAsString(InputStream stream)
Calls
readStreamAsString(InputStream, String) with Scope.getFileEncoding() as the encoding |
static String |
readStreamAsString(InputStream stream,
String encoding)
Returns the given stream as a string using the given encoding.
|
static Reader |
readStreamWithReader(InputStream stream,
String encoding) |
public static String getLineSeparator()
public static void copy(InputStream inputStream, OutputStream outputStream) throws IOException
IOExceptionpublic static byte[] readStream(InputStream stream) throws IOException
IOExceptionpublic static String readStreamAsString(InputStream stream) throws IOException
readStreamAsString(InputStream, String) with Scope.getFileEncoding() as the encodingIOExceptionpublic static String readStreamAsString(InputStream stream, String encoding) throws IOException
Scope.getFileEncoding()IOExceptionpublic static Reader readStreamWithReader(InputStream stream, String encoding) throws IOException
IOExceptionpublic static InputStream openStream(String path, Boolean relativeToChangelogFile, ChangeSet changeSet, ResourceAccessor resourceAccessor) throws IOException
ResourceAccessor.openStream(String, String)IOExceptionCopyright © 2020 Liquibase.org. All rights reserved.