public class CompactCommunicationSerializer extends ThreadSafeThriftSerializer<edu.jhu.hlt.concrete.Communication> implements CommunicationSerializer
CommunicationSerializer
that uses TCompactProtocol
.Constructor and Description |
---|
CompactCommunicationSerializer() |
Modifier and Type | Method and Description |
---|---|
edu.jhu.hlt.concrete.Communication |
fromBytes(byte[] bytes) |
edu.jhu.hlt.concrete.Communication |
fromInputStream(InputStream is) |
edu.jhu.hlt.concrete.Communication |
fromPath(Path path) |
edu.jhu.hlt.concrete.Communication |
fromPathString(String pathString) |
byte[] |
toBytes(edu.jhu.hlt.concrete.Communication c)
Generic method to serialize a thrift-like object.
|
fromBytes, fromInputStream, fromPath, fromPathString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromBytes, fromInputStream, fromPath, fromPathString
public edu.jhu.hlt.concrete.Communication fromBytes(byte[] bytes) throws ConcreteException
fromBytes
in interface CommunicationSerializer
ConcreteException
public byte[] toBytes(edu.jhu.hlt.concrete.Communication c) throws ConcreteException
ThreadSafeThriftSerializer
toBytes
in interface CommunicationSerializer
toBytes
in interface ThriftSerializer<edu.jhu.hlt.concrete.Communication>
toBytes
in class ThreadSafeThriftSerializer<edu.jhu.hlt.concrete.Communication>
c
- - a 'thrift-like' TBase
object that can be used by
TSerializer.serialize(TBase)
to produce a byte array.ConcreteException
public edu.jhu.hlt.concrete.Communication fromPath(Path path) throws ConcreteException
fromPath
in interface CommunicationSerializer
ConcreteException
public edu.jhu.hlt.concrete.Communication fromPathString(String pathString) throws ConcreteException
fromPathString
in interface CommunicationSerializer
ConcreteException
public edu.jhu.hlt.concrete.Communication fromInputStream(InputStream is) throws ConcreteException
fromInputStream
in interface CommunicationSerializer
ConcreteException
Copyright © 2016 Johns Hopkins University HLTCOE. All rights reserved.