Package org.red5.io.object

Examples of org.red5.io.object.Serializer.serialize()


        continue;
      }

      persistentAttributes.put(name, entry.getValue());
    }
    serializer.serialize(output, persistentAttributes);
  }

    /**
     * Deserializes data from input to attributes
     *
 
View Full Code Here


    ByteBuffer bb = ByteBuffer.allocate(1000);
    bb.setAutoExpand(true);

    Output out = new Output(bb);
    Serializer ser = new Serializer();
    ser.serialize(out, "onMetaData");
    ser.serialize(out, meta);

    ByteBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
View Full Code Here

    bb.setAutoExpand(true);

    Output out = new Output(bb);
    Serializer ser = new Serializer();
    ser.serialize(out, "onMetaData");
    ser.serialize(out, meta);

    ByteBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
    byte tmpDataType = IoConstants.TYPE_METADATA;
View Full Code Here

  private ITag injectMetaCue(IMetaCue meta, ITag tag) {

    // IMeta meta = (MetaCue) cue;
    Output out = new Output(ByteBuffer.allocate(1000));
    Serializer ser = new Serializer();
    ser.serialize(out, "onCuePoint");
    ser.serialize(out, meta);

    ByteBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
View Full Code Here

    // IMeta meta = (MetaCue) cue;
    Output out = new Output(ByteBuffer.allocate(1000));
    Serializer ser = new Serializer();
    ser.serialize(out, "onCuePoint");
    ser.serialize(out, meta);

    ByteBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
    byte tmpDataType = IoConstants.TYPE_METADATA;
View Full Code Here

  }

  /** {@inheritDoc} */
    public void serialize(Output output) throws IOException {
    Serializer ser = new Serializer();
    ser.serialize(output, getName());
    ser.serialize(output, getAttributes());
  }

  /** {@inheritDoc} */
    @SuppressWarnings("unchecked")
View Full Code Here

  /** {@inheritDoc} */
    public void serialize(Output output) throws IOException {
    Serializer ser = new Serializer();
    ser.serialize(output, getName());
    ser.serialize(output, getAttributes());
  }

  /** {@inheritDoc} */
    @SuppressWarnings("unchecked")
    public void deserialize(Input input) throws IOException {
View Full Code Here

      ByteBuffer tmp = ByteBuffer.allocate(1024);
      tmp.setAutoExpand(true);
      Output tmpOut = new Output(tmp);
      Serializer tmpSer = new Serializer();
      tmpSer.serialize(tmpOut, header.data);
      tmp.flip();
      // Size of header data
      result.putInt(tmp.limit());
      // Header data
      result.put(tmp);
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.