public interface EncoderFactory
NOTE: Implementations should extend AbstractObjectEncoderFactory
factory
rather than directly implementing EncoderFactory.
Modifier and Type | Method and Description |
---|---|
boolean |
isFactoryForType(TokenType type)
Determine if this factory supports the given class type.
|
TokenDecoder |
newDecoder(TokenType type)
Create a new
decoder instance for the given type. |
TokenEncoder |
newEncoder(TokenType type)
Create a new
encoder instance for the given type. |
boolean isFactoryForType(TokenType type)
type
- the type to checkTokenEncoder newEncoder(TokenType type)
encoder
instance for the given type. The type
is specified to allow a single factory to serve multiple types.type
- the type which is to be encodedTokenDecoder newDecoder(TokenType type)
decoder
instance for the given type. The type
is specified to allow a single factory to serve multiple types.type
- the type which is to be decodedCopyright © 2016 Actian Corporation. All rights reserved.