Package com.itstherules.io

Examples of com.itstherules.io.FileReader.readString()


 
  public FlvHeader(IOHelper ioh) {
    this.ioh = ioh;
    FileReader fh = ioh.getFileReader();
    fh.setDebug(ioh.isDebug());
    signature = fh.readString(3);
    version = fh.readUint(1);
    int typeFlags = fh.readUint(1);
    containsAudio = (typeFlags & 4) == 1;
    containsVideo = (typeFlags & 1) == 1;
    dataOffset = fh.readUint(4);
View Full Code Here


    version = fh.readUint(1);
    int typeFlags = fh.readUint(1);
    containsAudio = (typeFlags & 4) == 1;
    containsVideo = (typeFlags & 1) == 1;
    dataOffset = fh.readUint(4);
    if (dataOffset - 9 > 0) extraData = fh.readString(dataOffset - 9);
    else extraData = "";
  }
 
  public byte[] getFlvHeaderBytes() {
    int fpos = 0;
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.