public class IOUtil
extends java.lang.Object
| Constructor and Description |
|---|
IOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSocket(java.net.ServerSocket socket) |
static void |
closeSocket(java.net.Socket socket) |
static void |
closeSocket(alt.java.net.Socket socket) |
static void |
closeStream(java.io.InputStream is) |
static void |
closeStream(java.io.OutputStream os) |
static void |
closeStream(java.io.Reader is) |
static void |
closeStream(java.io.Writer os) |
static int |
readToCRLF(java.io.InputStream is,
byte[] bytebuf,
int offset,
int length)
reads from the stream into the buffer until it read in the entire line
or the length is reached.
|
static int |
readToLF(java.io.InputStream is,
byte[] bytebuf,
int offset,
int length)
reads from the stream into the buffer until it read in the entire line
or the length is reached.
|
public static void closeStream(java.io.InputStream is)
public static void closeStream(java.io.OutputStream os)
public static void closeStream(java.io.Reader is)
public static void closeStream(java.io.Writer os)
public static void closeSocket(java.net.Socket socket)
public static void closeSocket(alt.java.net.Socket socket)
public static void closeSocket(java.net.ServerSocket socket)
public static int readToCRLF(java.io.InputStream is,
byte[] bytebuf,
int offset,
int length)
throws java.io.IOException
is - the InputStream to read the data frombytebuf - the byte buffer where the data goes tooffset - the offset from which to start writing in the bufferlength - the maximum length to read if CRLF is not reached yetjava.io.IOExceptionpublic static int readToLF(java.io.InputStream is,
byte[] bytebuf,
int offset,
int length)
throws java.io.IOException
is - the InputStream to read the data frombytebuf - the byte buffer where the data goes tooffset - the offset from which to start writing in the bufferlength - the maximum length to read if CRLF is not reached yetjava.io.IOExceptionCopyright © 2001-2005 Echomine. All Rights Reserved.