|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blinkenbyte.io.IOUtil
public class IOUtil
This is a utility class containing methods to help deal with I/O operations.
Method Summary | |
---|---|
static int |
fillBuffer(BlockDevice bd,
byte[] b)
Reads up to b.length bytes into b. |
static int |
fillBuffer(BlockDevice bd,
byte[] b,
int offset,
int len)
Reads up to len bytes into b at b[offset]. |
static int |
fillBuffer(java.io.InputStream inpStr,
byte[] b)
Reads up to b.length bytes into b. |
static int |
fillBuffer(java.io.InputStream inpStr,
byte[] b,
int offset,
int len)
Reads up to len bytes into b at b[offset]. |
static int |
fillBuffer(ReadWriteDevice rwd,
byte[] b)
Reads up to b.length bytes into b. |
static int |
fillBuffer(ReadWriteDevice rwd,
byte[] b,
int offset,
int len)
Reads up to len bytes into b at b[offset]. |
static void |
readFully(BlockDevice bd,
byte[] b)
Reads b.length bytes into b or throws an exception if end-of-stream is reached before all bytes can be read. |
static void |
readFully(BlockDevice bd,
byte[] b,
int offset,
int len)
Reads len bytes into b at b[offset] or throws an exception if end-of-stream is reached before all bytes can be read. |
static void |
readFully(java.io.InputStream inpStr,
byte[] b)
Reads b.length bytes into b or throws an exception if end-of-stream is reached before all bytes can be read. |
static void |
readFully(java.io.InputStream inpStr,
byte[] b,
int offset,
int len)
Reads len bytes into b at b[offset] or throws an exception if end-of-stream is reached before all bytes can be read. |
static void |
readFully(ReadWriteDevice rwd,
byte[] b)
Reads b.length bytes into b or throws an exception if end-of-stream is reached before all bytes can be read. |
static void |
readFully(ReadWriteDevice rwd,
byte[] b,
int offset,
int len)
Reads len bytes into b at b[offset] or throws an exception if end-of-stream is reached before all bytes can be read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void readFully(java.io.InputStream inpStr, byte[] b) throws java.io.IOException
java.io.IOException
public static void readFully(java.io.InputStream inpStr, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException
public static int fillBuffer(java.io.InputStream inpStr, byte[] b) throws java.io.IOException
java.io.IOException
public static int fillBuffer(java.io.InputStream inpStr, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException
public static void readFully(ReadWriteDevice rwd, byte[] b) throws java.io.IOException
java.io.IOException
public static void readFully(ReadWriteDevice rwd, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException
public static int fillBuffer(ReadWriteDevice rwd, byte[] b) throws java.io.IOException
java.io.IOException
public static int fillBuffer(ReadWriteDevice rwd, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException
public static void readFully(BlockDevice bd, byte[] b) throws java.io.IOException
java.io.IOException
public static void readFully(BlockDevice bd, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException
public static int fillBuffer(BlockDevice bd, byte[] b) throws java.io.IOException
java.io.IOException
public static int fillBuffer(BlockDevice bd, byte[] b, int offset, int len) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |