org.paneris.bibliomania.fti
Class Packer

java.lang.Object
  extended by org.paneris.bibliomania.fti.Packer
Direct Known Subclasses:
FourPacker, OnePacker, ThreePacker, TwoPacker

public abstract class Packer
extends java.lang.Object


Constructor Summary
protected Packer(int numberLength, int numberMax)
           
 
Method Summary
abstract  Packer bigger()
           
abstract  int number(byte[] bytes, int off)
           
 int numberLength()
           
 int numberMax()
           
static int uint(byte b)
           
abstract  void write(java.io.OutputStream os, int number)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Packer

protected Packer(int numberLength,
                 int numberMax)
Method Detail

uint

public static int uint(byte b)

numberLength

public final int numberLength()

numberMax

public final int numberMax()

number

public abstract int number(byte[] bytes,
                           int off)

bigger

public abstract Packer bigger()

write

public abstract void write(java.io.OutputStream os,
                           int number)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2009 PanEris. All Rights Reserved.