public interface CommunicationTarGzSerializer extends CommunicationTarSerializer
Communication
objects to .tar.gz
files.Modifier and Type | Method and Description |
---|---|
default Iterator<edu.jhu.hlt.concrete.Communication> |
fromTarGz(org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream in)
Default implementation.
|
default Iterator<edu.jhu.hlt.concrete.Communication> |
fromTarGz(GZIPInputStream in)
Default implementation.
|
Iterator<edu.jhu.hlt.concrete.Communication> |
fromTarGz(InputStream is) |
void |
toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl,
Path outPath) |
default void |
toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl,
String outPathString)
Default implementation.
|
fromTar, toTar, toTar
fromBytes, fromInputStream, fromPath, fromPathString, toBytes
fromBytes, fromInputStream, fromPath, fromPathString
void toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl, Path outPath) throws ConcreteException, IOException
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)IOException
- on I/O errordefault void toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl, String outPathString) throws ConcreteException, IOException
toTarGz(Collection, Path)
.commColl
- a Collection
of Communication
objects to serialize to a .tar.gz
fileoutPathString
- the String
representing a path to write the .tar.gz file toConcreteException
- on serialization error (e.g., if a Communication
is missing required fields)IOException
- on I/O errortoTarGz(Collection, Path)
Iterator<edu.jhu.hlt.concrete.Communication> fromTarGz(InputStream is) throws ConcreteException, IOException
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 errordefault Iterator<edu.jhu.hlt.concrete.Communication> fromTarGz(GZIPInputStream in) throws ConcreteException, IOException
fromTarGz(InputStream)
.in
- a GZIPInputStream
representing a .tar.gz archive of Communication
objectsIterator
of Communication
objectsConcreteException
- on serialization error (e.g., if a Communication
is missing required fields)IOException
- on I/O errorfromTarGz(InputStream)
default Iterator<edu.jhu.hlt.concrete.Communication> fromTarGz(org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream in) throws ConcreteException, IOException
fromTarGz(InputStream)
.in
- a GzipCompressorInputStream
representing a .tar.gz archive of Communication
objectsIterator
of Communication
objectsConcreteException
- on serialization error (e.g., if a Communication
is missing required fields)IOException
- on I/O errorfromTarGz(InputStream)
Copyright © 2016 Johns Hopkins University HLTCOE. All rights reserved.