public abstract 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 GlobalConfiguration.FILE_ENCODING 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
IOException
public static byte[] readStream(InputStream stream) throws IOException
IOException
public static String readStreamAsString(InputStream stream) throws IOException
readStreamAsString(InputStream, String)
with GlobalConfiguration.FILE_ENCODING
as the encodingIOException
public static String readStreamAsString(InputStream stream, String encoding) throws IOException
GlobalConfiguration.FILE_ENCODING
IOException
public static Reader readStreamWithReader(InputStream stream, String encoding) throws IOException
IOException
public static InputStream openStream(String path, Boolean relativeToChangelogFile, ChangeSet changeSet, ResourceAccessor resourceAccessor) throws IOException
ResourceAccessor.openStream(String, String)
IOException
Copyright © 2023 Liquibase.org. All rights reserved.