public static class UnknownProtocol.Builder extends Object
Constructor and Description |
---|
UnknownProtocol.Builder()
Create a new builder using the defaults:
|
UnknownProtocol.Builder(UnknownProtocol up)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
UnknownProtocol |
build()
Creates a new protocol instance from this builder.
|
UnknownProtocol |
buildNoVerify()
Internally used by the package to create a new protocol instance
from this builder when an error occurs.
|
UnknownProtocol.Builder |
bytes(byte[] bytes)
Sets the payload bytes.
|
public UnknownProtocol.Builder()
bytes = EMPTY_BYTES
public UnknownProtocol.Builder(UnknownProtocol up)
up
- builder is initialed from this protocol's datapublic UnknownProtocol build()
public UnknownProtocol buildNoVerify()
public UnknownProtocol.Builder bytes(byte[] bytes)
bytes
- payload bytesCopyright © 2015. All Rights Reserved.