org.jcodec.containers.mxf.model
Class KLV

java.lang.Object
  extended by org.jcodec.containers.mxf.model.KLV

public class KLV
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License

Author:
The JCodec project

Field Summary
 long dataOffset
           
 UL key
           
 long len
           
 long offset
           
 
Constructor Summary
KLV(UL k, long len, long offset, long dataOffset)
           
 
Method Summary
 int getLenByteCount()
           
static boolean matches(byte[] key1, byte[] key2, int len)
           
static KLV readKL(ByteBuffer buffer, long baseOffset)
           
static KLV readKL(SeekableByteChannel ch)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

offset

public final long offset

dataOffset

public final long dataOffset

key

public final UL key

len

public final long len
Constructor Detail

KLV

public KLV(UL k,
           long len,
           long offset,
           long dataOffset)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

readKL

public static KLV readKL(SeekableByteChannel ch)
                  throws IOException
Throws:
IOException

getLenByteCount

public int getLenByteCount()
Returns:
byte count of BER encoded "length" field

matches

public static boolean matches(byte[] key1,
                              byte[] key2,
                              int len)

readKL

public static KLV readKL(ByteBuffer buffer,
                         long baseOffset)


Copyright © 2013. All Rights Reserved.