com.myJava.file.delta.tools
Class IOHelper
java.lang.Object
com.myJava.file.delta.tools.IOHelper
public class IOHelper
- extends java.lang.Object
- Author:
- Olivier PETRUCCI
Areca Build ID : 7299034069467778562
Method Summary |
static int |
get16(byte[] b,
int off)
|
static long |
get32(byte[] b,
int off)
|
static long |
get64(byte[] b,
int off)
|
static int |
readFully(java.io.InputStream in,
byte[] data)
|
static int |
readFully(java.io.InputStream in,
byte[] data,
int offset,
int length)
|
static long |
skipFully(java.io.InputStream in,
long length)
|
static void |
writeInt(long v,
java.io.OutputStream out)
|
static void |
writeLong(long v,
java.io.OutputStream out)
|
static void |
writeShort(long v,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOHelper
public IOHelper()
get16
public static final int get16(byte[] b,
int off)
get32
public static final long get32(byte[] b,
int off)
get64
public static final long get64(byte[] b,
int off)
writeShort
public static void writeShort(long v,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
writeInt
public static void writeInt(long v,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
writeLong
public static void writeLong(long v,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
public static int readFully(java.io.InputStream in,
byte[] data)
throws java.io.IOException
- Throws:
java.io.IOException
readFully
public static int readFully(java.io.InputStream in,
byte[] data,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
skipFully
public static long skipFully(java.io.InputStream in,
long length)
throws java.io.IOException
- Throws:
java.io.IOException