public class TarGzCompactCommunicationSerializer extends TarCompactCommunicationSerializer implements CommunicationTarGzSerializer
CommunicationTarGzSerializer
with a simple strategy.Constructor and Description |
---|
TarGzCompactCommunicationSerializer() |
Modifier and Type | Method and Description |
---|---|
Iterator<edu.jhu.hlt.concrete.Communication> |
fromTarGz(InputStream is) |
void |
toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl,
Path outPath) |
fromTar, toTar, toTar
fromBytes, fromInputStream, fromPath, fromPathString, toBytes
fromBytes, fromInputStream, fromPath, fromPathString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromTarGz, fromTarGz, toTarGz
fromTar, toTar, toTar
fromBytes, fromInputStream, fromPath, fromPathString, toBytes
fromBytes, fromInputStream, fromPath, fromPathString
public Iterator<edu.jhu.hlt.concrete.Communication> fromTarGz(InputStream is) throws ConcreteException, IOException
fromTarGz
in interface CommunicationTarGzSerializer
is
- an InputStream
. Should be closed when finished.Iterator
of Communication
objectsConcreteException
- on serialization error (e.g., if a Communication
is missing required fields)IOException
- on I/O errorpublic void toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl, Path outPath) throws ConcreteException
toTarGz
in interface CommunicationTarGzSerializer
commColl
- a Collection
of Communication
objects to serialize to a .tar.gz
fileoutPath
- the Path
to write the .tar.gz file toConcreteException
- on serialization error (e.g., if a Communication
is missing required fields)Copyright © 2016 Johns Hopkins University HLTCOE. All rights reserved.