org.apache.cocoon.components.midi.xmidi
Class ByteLen

java.lang.Object
  extended by org.apache.cocoon.components.midi.xmidi.ByteLen

public class ByteLen
extends Object

The MIDI file parsing parts of this class are based on code from the XMidi project, written by Peter Arthur Loeb (http://www.palserv.com/XMidi/) and used with permission. The warranty disclaimer of the MIT license (http://www.opensource.org/licenses/mit-license.html) applies to Peter Arthur Loeb's code.

Author:
Mark Leicester, Peter Loeb

Field Summary
 byte[] ba
          A byte array.
 int len
          As used in the MX.deltaToInt method, it is the length of the delta field being converted, not the length of the array.
 
Constructor Summary
ByteLen()
          Default constructor.
ByteLen(byte[] b, int l)
          Constructor used in the MX.deltaToInt method to create this class, which it then returns.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ba

public byte[] ba
A byte array.


len

public int len
As used in the MX.deltaToInt method, it is the length of the delta field being converted, not the length of the array.

There is nothing about this class that requires that this variable be used in this way. It could be any int.

Constructor Detail

ByteLen

public ByteLen()
Default constructor. As of Jan 8, 2001, this is not used.


ByteLen

public ByteLen(byte[] b,
               int l)
Constructor used in the MX.deltaToInt method to create this class, which it then returns.

Parameters:
b - a byte array; used to set ba
l - a length; used to set len


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.