|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.UtilIO
public final class UtilIO
IO utilities.
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
Reading buffer size. |
protected static ICache<URL,byte[]> |
cache
Cache of resources. |
| Method Summary | |
|---|---|
static InputStream[] |
getInputStreams(List<URL> files)
Get all input streams for the given URL list. |
static InputStream |
getStream(URL url)
Get stream for a given URL. |
static void |
pressKey()
Request for key interaction. |
static void |
writeAllTo(List<URL> files,
OutputStream out)
Write all contents to a output. |
static void |
writeTo(InputStream in,
OutputStream out)
Write a input stream to a output. |
static void |
writeToClose(URL url,
File file)
Write the URL input to the file output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ICache<URL,byte[]> cache
public static final int BUFFER_SIZE
| Method Detail |
|---|
public static void writeAllTo(List<URL> files,
OutputStream out)
throws ResourceException
files - The input list.out - The output.
ResourceException - On writing errors.
public static InputStream[] getInputStreams(List<URL> files)
throws ResourceException
files - The files.
ResourceException - On loading errors.
public static InputStream getStream(URL url)
throws IOException
url - The url.
IOException - On load errors.
public static void writeTo(InputStream in,
OutputStream out)
throws IOException
in - The input.out - The output.
IOException - On writing errors.
public static void writeToClose(URL url,
File file)
throws IOException
url - The input.file - The output.
IOException - On writing errors.
public static void pressKey()
throws IOException
IOException - On errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||