org.jcodec.containers.mp4.boxes
Class Header

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Header

public class Header
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License An MP4 file structure (atom)

Author:
Jay Codec

Constructor Summary
Header(Header h)
           
Header(String fourcc)
           
Header(String fourcc, long size)
           
Header(String fourcc, long size, boolean lng)
           
 
Method Summary
 long getBodySize()
           
 String getFourcc()
           
 long getSize()
           
 long headerSize()
           
 void print()
           
static Header read(ByteBuffer input)
           
 byte[] readContents(InputStream di)
           
 void setBodySize(int length)
           
 void skip(InputStream di)
           
 void write(ByteBuffer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Header

public Header(String fourcc)

Header

public Header(String fourcc,
              long size)

Header

public Header(Header h)

Header

public Header(String fourcc,
              long size,
              boolean lng)
Method Detail

read

public static Header read(ByteBuffer input)

print

public void print()

skip

public void skip(InputStream di)
          throws IOException
Throws:
IOException

headerSize

public long headerSize()

readContents

public byte[] readContents(InputStream di)
                    throws IOException
Throws:
IOException

getFourcc

public String getFourcc()

getBodySize

public long getBodySize()

setBodySize

public void setBodySize(int length)

write

public void write(ByteBuffer out)

getSize

public long getSize()


Copyright © 2013. All Rights Reserved.