Package com.itstherules.io

Examples of com.itstherules.io.ByteHelper


  private BufferHelper bufferHelper;
  private Object event;
  private Object metaData;
 
  public MetaTag() {
    byteHelper = new ByteHelper();
    bufferHelper = new BufferHelper();
    event = null;
    metaData = null;
  }
View Full Code Here


  public byte[] getFlvHeaderBytes() {
    int fpos = 0;
    int typeFlags = 0;
    if (containsAudio) typeFlags += 4;
    if (containsVideo) typeFlags++;
    ByteHelper bh = ioh.getByteHelper();
    byte flv[] = (new String("FLV")).getBytes();
    byte typ[] = bh.getUintBytes(1, 1);
    byte typFlag[] = bh.getUintBytes(typeFlags, 1);
    byte extDataLen[] = bh.getUintBytes(9 + extraData.length(), 4);
    byte extData[] = extraData.getBytes();
    byte flvhBytes[] = new byte[flv.length + typ.length + typFlag.length + extDataLen.length + extData.length];
    System.arraycopy(flv, 0, flvhBytes, 0, flv.length);
    fpos += flv.length;
    System.arraycopy(typ, 0, flvhBytes, fpos, typ.length);
View Full Code Here

TOP

Related Classes of com.itstherules.io.ByteHelper

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.