public final class Adapters extends Object
Modifier and Type | Method and Description |
---|---|
static Binary |
extractBinary(InputStream stream)
Creates an inbound Binary instance used for extraction with the
specified InputStream as the input.
|
static Binary |
extractBinary(ReadableByteChannel channel)
Creates an inbound Binary instance used for extraction with the
specified ReadableByteChannel as the input.
|
static Binary |
injectBinary(OutputStream stream)
Creates an outbound Binary instance used for injection, backed up
by the specified OutputStream as output.
|
static Binary |
injectBinary(WritableByteChannel channel)
Creates an outbound Binary instance used for injection, backed up
by the specified WritableByteChannel as the output.
|
public static Binary injectBinary(OutputStream stream)
stream
- The OutputStream used as the output.public static Binary injectBinary(WritableByteChannel channel)
channel
- The WritableByteChannel used as output.public static Binary extractBinary(InputStream stream)
stream
- The InputStream used as input.public static Binary extractBinary(ReadableByteChannel channel)
channel
- The ReadableByteChannel used as input.Copyright © 2016–2017 OpenTracing. All rights reserved.