Package org.pentaho.reporting.libraries.serializer

Examples of org.pentaho.reporting.libraries.serializer.SerializerHelper


  private void readObject(final ObjectInputStream in)
      throws IOException, ClassNotFoundException
  {
    in.defaultReadObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    scaleValuePaint = (Paint) helper.readObject(in);
    rangePaint = (Paint) helper.readObject(in);
    fillPaint = (Paint) helper.readObject(in);
    outlineStroke = (Stroke) helper.readObject(in);
    defaultShape = (Shape) helper.readObject(in);
    tickMarkPaint = (Paint) helper.readObject(in);
    borderPaint = (Paint) helper.readObject(in);
    shapes = new ArrayList();

    final int size = in.readInt();
    for (int i = 0; i < size; i++)
    {
      final Shape s = (Shape) helper.readObject(in);
      shapes.add(s);
    }

  }
View Full Code Here


    if (size == 0)
    {
      return;
    }
    final Object[] values = new Object[size];
    final SerializerHelper serHelper = SerializerHelper.getInstance();
    for (int i = 0; i < size; i++)
    {
      values[i] = serHelper.readObject(in);
    }

    for (int i = 0; i < size; i++)
    {
      final StyleKey key = propertyKeys[i];
View Full Code Here

   */
  private void writeObject(final ObjectOutputStream out)
      throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper instance = SerializerHelper.getInstance();
    final Iterator pageBoundsIterator = pageBoundsList.iterator();
    while (pageBoundsIterator.hasNext())
    {
      instance.writeObject(pageBoundsIterator.next(), out);
    }
    instance.writeObject(null, out);
    final Iterator pageFormatIterator = pageFormatList.iterator();
    while (pageFormatIterator.hasNext())
    {
      instance.writeObject(pageFormatIterator.next(), out);
    }
    instance.writeObject(null, out);
  }
View Full Code Here

   */
  private void readObject(final ObjectInputStream in)
      throws IOException, ClassNotFoundException
  {
    in.defaultReadObject();
    final SerializerHelper instance = SerializerHelper.getInstance();
    pageBoundsList = new ArrayList();
    pageFormatList = new ArrayList();

    Object o = instance.readObject(in);
    while (o != null)
    {
      final Rectangle2D rect = (Rectangle2D) o;
      pageBoundsList.add(rect);
      o = instance.readObject(in);
    }

    o = instance.readObject(in);
    while (o != null)
    {
      final PageFormat format = (PageFormat) o;
      pageFormatList.add(format);
      o = instance.readObject(in);
    }
  }
View Full Code Here

   */
  private void writeObject(final ObjectOutputStream out)
      throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper instance = SerializerHelper.getInstance();
    instance.writeObject(format, out);
    final int length = pagePositions.length;
    out.writeInt(length);
    for (int i = 0; i < length; i++)
    {
      instance.writeObject(pagePositions[i], out);
    }
  }
View Full Code Here

   */
  private void readObject(final ObjectInputStream in)
      throws IOException, ClassNotFoundException
  {
    in.defaultReadObject();
    final SerializerHelper instance = SerializerHelper.getInstance();
    format = (PageFormat) instance.readObject(in);
    final int length = in.readInt();
    pagePositions = new Rectangle2D[length];
    for (int i = 0; i < length; i++)
    {
      pagePositions[i] = (Rectangle2D) instance.readObject(in);
    }
  }
View Full Code Here

  private void writeObject(final ObjectOutputStream out)
      throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    helper.writeObject(scaleValuePaint, out);
    helper.writeObject(rangePaint, out);
    helper.writeObject(fillPaint, out);
    helper.writeObject(outlineStroke, out);
    helper.writeObject(defaultShape, out);
    helper.writeObject(tickMarkPaint, out);
    helper.writeObject(borderPaint, out);
    final int size = shapes.size();
    out.writeInt(size);
    for (int i = 0; i < size; i++)
    {
      final Shape s = (Shape) shapes.get(i);
      helper.writeObject(s, out);
    }
  }
View Full Code Here

  private void writeObject(final ObjectOutputStream out)
      throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    helper.writeObject(outlineStroke, out);
  }
View Full Code Here

  private void readObject(final ObjectInputStream in)
      throws IOException, ClassNotFoundException
  {
    in.defaultReadObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    outlineStroke = (BasicStroke) helper.readObject(in);
  }
View Full Code Here

  private void writeObject(final ObjectOutputStream out)
      throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    helper.writeObject(scaleValuePaint, out);
    helper.writeObject(rangePaint, out);
    helper.writeObject(fillPaint, out);
    helper.writeObject(outlineStroke, out);
    helper.writeObject(defaultShape, out);
    helper.writeObject(tickMarkPaint, out);
    helper.writeObject(borderPaint, out);
    final int size = shapes.size();
    out.writeInt(size);
    for (int i = 0; i < size; i++)
    {
      final Shape s = shapes.get(i);
      helper.writeObject(s, out);
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.serializer.SerializerHelper

Copyright © 2018 www.massapicom. 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.