Class DotCorpusSerializer

java.lang.Object
org.apache.uima.caseditor.core.model.dotcorpus.DotCorpusSerializer

public class DotCorpusSerializer extends Object
This class is responsible to read and write DotCorpus objects from or to a byte stream.
  • Constructor Details

    • DotCorpusSerializer

      public DotCorpusSerializer()
  • Method Details

    • parseDotCorpus

      public static DotCorpus parseDotCorpus(InputStream dotCorpusStream) throws org.eclipse.core.runtime.CoreException
      Creates a DotCorpus object from a given InputStream.
      Parameters:
      dotCorpusStream - the dot corpus stream
      Returns:
      the DotCorpus instance.
      Throws:
      org.eclipse.core.runtime.CoreException - -
    • serialize

      public static void serialize(DotCorpus dotCorpus, OutputStream out) throws org.eclipse.core.runtime.CoreException
      Writes the DotCorpus instance to the given OutputStream.
      Parameters:
      dotCorpus - the DotCorpus object to serialize.
      out - - the stream to write the current DotCorpus instance.
      Throws:
      org.eclipse.core.runtime.CoreException - -