Class DotCorpusSerializer
java.lang.Object
org.apache.uima.caseditor.core.model.dotcorpus.DotCorpusSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DotCorpusparseDotCorpus(InputStream dotCorpusStream) Creates aDotCorpusobject from a givenInputStream.static voidserialize(DotCorpus dotCorpus, OutputStream out) Writes theDotCorpusinstance to the givenOutputStream.
-
Constructor Details
-
DotCorpusSerializer
public DotCorpusSerializer()
-
-
Method Details
-
parseDotCorpus
public static DotCorpus parseDotCorpus(InputStream dotCorpusStream) throws org.eclipse.core.runtime.CoreException Creates aDotCorpusobject from a givenInputStream.- Parameters:
dotCorpusStream- the dot corpus stream- Returns:
- the
DotCorpusinstance. - Throws:
org.eclipse.core.runtime.CoreException- -
-
serialize
public static void serialize(DotCorpus dotCorpus, OutputStream out) throws org.eclipse.core.runtime.CoreException Writes theDotCorpusinstance to the givenOutputStream.- Parameters:
dotCorpus- theDotCorpusobject to serialize.out- - the stream to write the currentDotCorpusinstance.- Throws:
org.eclipse.core.runtime.CoreException- -
-