|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.security.utils.JavaUtils
public class JavaUtils
A collection of different, general-purpose methods for JAVA-specific things
Method Summary | |
---|---|
static byte[] |
getBytesFromFile(String fileName)
Method getBytesFromFile |
static byte[] |
getBytesFromStream(InputStream inputStream)
This method reads all bytes from the given InputStream till EOF and returns them as a byte array. |
static void |
writeBytesToFilename(String filename,
byte[] bytes)
Method writeBytesToFilename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] getBytesFromFile(String fileName) throws FileNotFoundException, IOException
fileName
-
FileNotFoundException
IOException
public static void writeBytesToFilename(String filename, byte[] bytes)
filename
- bytes
- public static byte[] getBytesFromStream(InputStream inputStream) throws IOException
inputStream
-
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |