|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.krecan.m2_proxy.utils.ResourceUtils
public class ResourceUtils
Utilities for coping with resources
Method Summary | |
---|---|
static void |
copy(File in,
File out)
Copy file |
static void |
copy(InputStream in,
OutputStream out)
Copy data from input stream to the output stream |
static String |
copyToString(InputStream in)
Copy the data from the stream to the string |
static String |
extractStringFromResource(Resource resource)
Returns content of the resource as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final void copy(File in, File out) throws IOException
in
- out
-
IOException
public static final void copy(InputStream in, OutputStream out) throws IOException
in
- out
-
IOException
public static final String copyToString(InputStream in) throws IOException
in
-
IOException
public static final String extractStringFromResource(Resource resource) throws IOException
resource
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |