net.sf.jsptest.utils
Class IO
java.lang.Object
net.sf.jsptest.utils.IO
public class IO
- extends java.lang.Object
The IO class provides utility methods for handling I/O related
tasks such as reading from and writing to files, streams, and writers.
- Author:
- Lasse Koskela
|
Method Summary |
static byte[] |
readToByteArray(java.io.File file)
|
static byte[] |
readToByteArray(java.io.InputStream in)
|
static java.lang.String |
readToString(java.io.File file)
|
static java.lang.String |
readToString(java.io.InputStream stream)
|
static void |
write(java.lang.String what,
java.io.File to)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IO
public IO()
readToByteArray
public static byte[] readToByteArray(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
readToByteArray
public static byte[] readToByteArray(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(java.lang.String what,
java.io.File to)
throws java.io.IOException
- Throws:
java.io.IOException
readToString
public static java.lang.String readToString(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
readToString
public static java.lang.String readToString(java.io.InputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2006-2008 JspTest developers. All Rights Reserved.