|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.util.IOTools
public class IOTools
I/O tools.
Field Summary | |
---|---|
static int |
EOF
|
Method Summary | |
---|---|
static void |
close(java.nio.channels.Channel channel)
Closes channel. |
static void |
close(java.io.Closeable target)
|
static void |
close(java.net.DatagramSocket socket)
Closes the specified socket without throwing any exception. |
static void |
close(java.io.InputStream stream)
Closes the specified stream without throwing any exception. |
static void |
close(java.io.OutputStream stream)
Closes the specified stream without throwing any exception. |
static void |
close(java.io.RandomAccessFile file)
Closes random access file. |
static void |
close(java.io.Reader reader)
Closes the specified reader without throwing any exception. |
static void |
close(java.net.ServerSocket socket)
|
static void |
close(java.net.Socket socket)
Closes the specified socket without throwing any exception. |
static void |
close(java.io.Writer writer)
Closes the specified writer without throwing any exception. |
static void |
copy(java.io.BufferedReader in,
java.io.BufferedWriter out)
|
static long |
copy(java.io.File source,
java.io.File destination)
|
static long |
copy(java.io.InputStream in,
java.io.OutputStream out)
|
static long |
copy(java.io.InputStream in,
java.io.OutputStream out,
int bufferSize)
|
static long |
copy(java.io.Reader in,
java.io.Writer out)
|
static java.io.IOException |
ioException(java.lang.Throwable error)
|
static void |
read(com.jscape.util.Buffer buf,
int length,
java.io.InputStream in)
|
static byte[] |
read(byte[] data,
java.io.InputStream in)
|
static byte[] |
read(byte[] data,
int off,
int len,
java.io.InputStream in)
|
static int |
read(java.io.InputStream in)
|
static byte[] |
readFile(java.io.File file)
|
static java.lang.String |
readFile(java.io.File file,
java.lang.String charset)
|
static byte[] |
readFile(java.io.InputStream in)
|
static java.lang.String |
readFile(java.io.Reader reader)
|
static java.util.Properties |
readPropertiesFile(java.io.File file)
|
static java.util.Properties |
readPropertiesFile(java.lang.String path)
|
static java.util.Properties |
readPropertiesResource(java.lang.Class aClass,
java.lang.String path)
|
static int |
readSequence(java.io.InputStream in,
com.jscape.util.Buffer buf,
byte[] eol,
boolean leaveEol)
|
static int |
readSequence(java.io.InputStream in,
com.jscape.util.Buffer buf,
byte[] eol,
boolean leaveEol,
int maxSize)
|
static byte[] |
readSequence(java.io.InputStream in,
byte[] eol,
boolean leaveEol)
|
static int |
readSequence(java.io.Reader reader,
java.lang.StringBuffer buf,
java.lang.String eol,
boolean leaveEol)
|
static int |
readSequence(java.io.Reader reader,
java.lang.StringBuffer buf,
java.lang.String eol,
boolean leaveEol,
int maxSize)
|
static void |
writeFile(byte[] data,
java.io.File file)
|
static void |
writeFile(byte[] data,
java.io.OutputStream out)
|
static void |
writeFile(java.lang.String data,
java.io.File file,
java.lang.String charset)
|
static void |
writeFile(java.lang.String data,
java.io.Writer writer)
|
static void |
writePropertiesFile(java.util.Properties properties,
java.lang.String header,
java.io.File file)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EOF
Method Detail |
---|
public static void close(java.io.InputStream stream)
stream
- stream to closepublic static void close(java.io.OutputStream stream)
stream
- stream to closepublic static void close(java.io.Reader reader)
reader
- reader to closepublic static void close(java.io.Writer writer)
writer
- writer to closepublic static void close(java.net.Socket socket)
socket
- socket to closepublic static void close(java.net.ServerSocket socket)
public static void close(java.net.DatagramSocket socket)
socket
- socket to closepublic static void close(java.io.Closeable target)
public static void close(java.io.RandomAccessFile file)
file
- filepublic static void close(java.nio.channels.Channel channel)
channel
- channelpublic static int read(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] read(byte[] data, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] read(byte[] data, int off, int len, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static void read(com.jscape.util.Buffer buf, int length, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] readSequence(java.io.InputStream in, byte[] eol, boolean leaveEol) throws java.io.IOException
java.io.IOException
public static int readSequence(java.io.InputStream in, com.jscape.util.Buffer buf, byte[] eol, boolean leaveEol) throws java.io.IOException
java.io.IOException
public static int readSequence(java.io.InputStream in, com.jscape.util.Buffer buf, byte[] eol, boolean leaveEol, int maxSize) throws java.io.IOException
java.io.IOException
public static int readSequence(java.io.Reader reader, java.lang.StringBuffer buf, java.lang.String eol, boolean leaveEol) throws java.io.IOException
java.io.IOException
public static int readSequence(java.io.Reader reader, java.lang.StringBuffer buf, java.lang.String eol, boolean leaveEol, int maxSize) throws java.io.IOException
java.io.IOException
public static byte[] readFile(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] readFile(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.String readFile(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public static java.lang.String readFile(java.io.File file, java.lang.String charset) throws java.io.IOException
java.io.IOException
public static void writeFile(byte[] data, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static void writeFile(byte[] data, java.io.File file) throws java.io.IOException
java.io.IOException
public static void writeFile(java.lang.String data, java.io.Writer writer) throws java.io.IOException
java.io.IOException
public static void writeFile(java.lang.String data, java.io.File file, java.lang.String charset) throws java.io.IOException
java.io.IOException
public static void writePropertiesFile(java.util.Properties properties, java.lang.String header, java.io.File file) throws java.io.IOException
java.io.IOException
public static java.util.Properties readPropertiesFile(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.util.Properties readPropertiesFile(java.lang.String path) throws java.io.IOException
java.io.IOException
public static java.util.Properties readPropertiesResource(java.lang.Class aClass, java.lang.String path) throws java.io.IOException
java.io.IOException
public static long copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static long copy(java.io.InputStream in, java.io.OutputStream out, int bufferSize) throws java.io.IOException
java.io.IOException
public static long copy(java.io.Reader in, java.io.Writer out) throws java.io.IOException
java.io.IOException
public static void copy(java.io.BufferedReader in, java.io.BufferedWriter out) throws java.io.IOException
java.io.IOException
public static long copy(java.io.File source, java.io.File destination) throws java.io.IOException
java.io.IOException
public static java.io.IOException ioException(java.lang.Throwable error)
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |