public final class BytesTransformer extends Object implements ByteStreamTransformer
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
static BytesTransformer |
of(ByteStreamTransformer transformer)
Returns a
BytesTransformer for a ByteStreamTransformer . |
String |
toString() |
void |
transform(ByteSource input,
ByteSink output)
Transforms a byte source.
|
void |
transform(ByteSource input,
OutputStream output)
Transforms a byte source.
|
void |
transform(InputStream input,
ByteSink output)
Transforms a stream of bytes.
|
void |
transform(InputStream input,
OutputStream output)
Transforms a stream of bytes.
|
public static BytesTransformer of(ByteStreamTransformer transformer)
BytesTransformer
for a ByteStreamTransformer
. If the provided object
is already a BytesTransformer
the same object is returned.public void transform(InputStream input, OutputStream output) throws IOException
ByteStreamTransformer
transform
in interface ByteStreamTransformer
IOException
public void transform(InputStream input, ByteSink output) throws IOException
IOException
public void transform(ByteSource input, ByteSink output) throws IOException
IOException
public void transform(ByteSource input, OutputStream output) throws IOException
IOException
Copyright © 2014 Derquinse Projects. All rights reserved.