|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.canoo.webtest.boundary.FileBoundary
public final class FileBoundary
Helper class for working with files.
| Method Summary | |
|---|---|
static byte[] |
getBytes(File file)
Gets the bytes of the file |
static File |
getFile(String filename,
Class relativeClass)
Helper method when creating files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static File getFile(String filename,
Class relativeClass)
filename - the filename of the resource to getrelativeClass - the class whose package contains the resource
IllegalStateException - if the file could not be foundpublic static byte[] getBytes(File file)
file - the file to read
RuntimeException - if the content can't be read
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||