public abstract class ChannelHelper extends Object
Modifier and Type | Method and Description |
---|---|
static ReadableByteChannel |
readableChannel(InputStream inputStream) |
static InputStream |
unwrapBufferedStream(InputStream filteredStream)
Unwrap all filtering streams between the given stream and its actual
unfiltered stream.
|
static OutputStream |
unwrapBufferedStream(OutputStream filteredStream)
Unwrap all filtering streams between the given stream and its actual
unfiltered stream.
|
static InputStream |
unwrapFilterInputStream(InputStream filteredStream)
Unwrap the given stream to its first non-FilterInputStream.
|
static OutputStream |
unwrapFilterOutputStream(OutputStream filteredStream)
Unwrap the given stream to its first non-FilterOutputStream.
|
static WritableByteChannel |
writableChannel(OutputStream ouputStream) |
public static ReadableByteChannel readableChannel(InputStream inputStream)
public static WritableByteChannel writableChannel(OutputStream ouputStream)
public static OutputStream unwrapBufferedStream(OutputStream filteredStream)
filteredStream
- The stream to unwrappublic static InputStream unwrapBufferedStream(InputStream filteredStream)
filteredStream
- The stream to unwrappublic static OutputStream unwrapFilterOutputStream(OutputStream filteredStream)
filteredStream
- a stream to be unwrapped, if it is a FilterOutputStreampublic static InputStream unwrapFilterInputStream(InputStream filteredStream)
filteredStream
- a stream to be unwrapped, if it is a FilterInputStreamCopyright © 2001-2016 JRuby. All Rights Reserved.