| java.lang.Object com.quadcap.io.IO
IO | public class IO (Code) | | author: Stan Bailes |
Method Summary | |
public static boolean | cmpFile(File a, File b) | final public static void | copyFile(File from, File to) | final public static void | copyStream(InputStream is, OutputStream os) | final public static void | copyStream(InputStream is, OutputStream os, int bps, int buffered) Rate limited stream copy. | final public static void | copyStream(Reader r, Writer w) | final public static void | copyStream(InputStream is, OutputStream os, int limit) Copy 'is' to 'os' until EOF, or limit bytes are copied. | public static void | deleteDirectory(File f) Recursively delete an entire directory. | public static void | readFully(InputStream is, byte[] buf) | public static void | write(OutputStream os, String s) Write a string to an outputstream using the brutal low-byte extraction
encoding technique. |
cmpFile | public static boolean cmpFile(File a, File b) throws IOException(Code) | | Diff two files, return true if the file contents are the same
|
copyStream | final public static void copyStream(InputStream is, OutputStream os, int bps, int buffered) throws IOException(Code) | | Rate limited stream copy. Copy the input stream to the output
until EOF. An initial series of "buffered" bytes is sent with
no rate limit, thereafter, bytes are streamed (in 4Kbyte buffers) at
the rate limit "bps" bytes per/sec.
No particular effort is made to buffer the incoming stream.
|
deleteDirectory | public static void deleteDirectory(File f) throws IOException(Code) | | Recursively delete an entire directory. Be careful!
|
write | public static void write(OutputStream os, String s) throws IOException(Code) | | Write a string to an outputstream using the brutal low-byte extraction
encoding technique. Works great for ISO-8859-1.
|
|
|