Examples of StorableOutput


Examples of research.store.StorableOutput

   */
  public StandardFigureSelection(FigureEnumeration figures, int figureCount) {
    // a FigureSelection is represented as a flattened ByteStream
    // of figures.
    ByteArrayOutputStream output = new ByteArrayOutputStream(200);
    StorableOutput writer = new StorableOutput(output);
    writer.writeInt(figureCount);
    while (figures.hasMoreElements()) {
      writer.writeStorable(figures.nextFigure());
    }
    writer.close();
    fData = output.toByteArray();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.