net.java.sen
Class SenUtils

java.lang.Object
  extended bynet.java.sen.SenUtils

public class SenUtils
extends java.lang.Object


Constructor Summary
SenUtils()
           
 
Method Summary
static java.lang.String getPath(java.lang.String path, java.lang.String parent)
           
static java.lang.String getRealPath(java.lang.String name)
          Get real path.
static char[] loadFile(java.lang.String str)
          load file into char arrray
static int readBSInt(java.io.InputStream is)
           
static int readBSInt(java.io.RandomAccessFile is)
           
static short readBSShort(java.io.RandomAccessFile is)
           
static short readShort(java.io.RandomAccessFile is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenUtils

public SenUtils()
Method Detail

getRealPath

public static java.lang.String getRealPath(java.lang.String name)
Get real path. Real path means the path which is added to sen's home directory expressed by sen.home property. If sen.home property is null, it's same as original path.

Parameters:
name -
Returns:
path

loadFile

public static char[] loadFile(java.lang.String str)
load file into char arrray

Parameters:
str - file name
Returns:
char array which is representation of file.

readBSInt

public static final int readBSInt(java.io.InputStream is)
                           throws java.io.IOException
Throws:
java.io.IOException

readBSInt

public static final int readBSInt(java.io.RandomAccessFile is)
                           throws java.io.IOException
Throws:
java.io.IOException

readBSShort

public static final short readBSShort(java.io.RandomAccessFile is)
                               throws java.io.IOException
Throws:
java.io.IOException

readShort

public static final short readShort(java.io.RandomAccessFile is)
                             throws java.io.IOException
Throws:
java.io.IOException

getPath

public static java.lang.String getPath(java.lang.String path,
                                       java.lang.String parent)