com.echomine.util
Class ParseUtil

java.lang.Object
  extended by com.echomine.util.ParseUtil

public class ParseUtil
extends java.lang.Object

Some convenient parsing utilities


Constructor Summary
ParseUtil()
           
 
Method Summary
static int deserializeIntBE(byte[] inbuf, int offset)
           
static int deserializeIntLE(byte[] inbuf, int offset)
           
static short deserializeShortBE(byte[] inbuf, int offset)
           
static short deserializeShortLE(byte[] inbuf, int offset)
           
static int deserializeString(byte[] inbuf, int offset, int len, java.lang.StringBuffer outbuf)
           
static int deserializeString(byte[] inbuf, int offset, java.lang.StringBuffer outbuf)
           
static int serializeIntBE(int value, byte[] outbuf, int offset)
           
static int serializeIntLE(int value, byte[] outbuf, int offset)
           
static int serializeShortBE(short value, byte[] outbuf, int offset)
           
static int serializeShortLE(short value, byte[] outbuf, int offset)
           
static int serializeString(java.lang.String str, byte[] outbuf, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseUtil

public ParseUtil()
Method Detail

serializeIntBE

public static int serializeIntBE(int value,
                                 byte[] outbuf,
                                 int offset)

serializeIntLE

public static int serializeIntLE(int value,
                                 byte[] outbuf,
                                 int offset)

deserializeIntBE

public static int deserializeIntBE(byte[] inbuf,
                                   int offset)

deserializeIntLE

public static int deserializeIntLE(byte[] inbuf,
                                   int offset)

serializeShortBE

public static int serializeShortBE(short value,
                                   byte[] outbuf,
                                   int offset)

serializeShortLE

public static int serializeShortLE(short value,
                                   byte[] outbuf,
                                   int offset)

deserializeShortBE

public static short deserializeShortBE(byte[] inbuf,
                                       int offset)

deserializeShortLE

public static short deserializeShortLE(byte[] inbuf,
                                       int offset)

serializeString

public static int serializeString(java.lang.String str,
                                  byte[] outbuf,
                                  int offset)

deserializeString

public static int deserializeString(byte[] inbuf,
                                    int offset,
                                    java.lang.StringBuffer outbuf)

deserializeString

public static int deserializeString(byte[] inbuf,
                                    int offset,
                                    int len,
                                    java.lang.StringBuffer outbuf)
                             throws ParseException
Throws:
ParseException


Copyright © 2001-2005 Echomine. All Rights Reserved.