|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.oyster.util.ConvertAssist
This class contains static methods which make easier work and conversion between different types under the large amount of data (arrays, streams, files ...).
Constructor Summary | |
ConvertAssist()
|
Method Summary | |
static byte[] |
fileToByteArray(java.io.File file0)
Reads data from file into the byte array. |
static java.lang.String |
fileToString(java.io.File file0)
Reads data from file into the String. |
static byte[] |
inStreamToByteArray(java.io.InputStream in0)
Reads data from input stream into the byte array. |
static java.lang.String |
inStreamToString(java.io.InputStream in0)
Reads data from input stream into the String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConvertAssist()
Method Detail |
public static java.lang.String inStreamToString(java.io.InputStream in0) throws SMIMEException
in0
- source of data for reading
SMIMEException
- caused by non SMIMEException which is IOExceptionpublic static byte[] inStreamToByteArray(java.io.InputStream in0) throws SMIMEException
in0
- source of data for reading
SMIMEException
- caused by non SMIMEException which is IOExceptionpublic static java.lang.String fileToString(java.io.File file0) throws SMIMEException
file0
- abstract path to file represented as File object
SMIMEException
- caused by non SMIMEException which is IOExceptionpublic static byte[] fileToByteArray(java.io.File file0) throws SMIMEException
file0
- abstract path to file represented as File object
SMIMEException
- caused by non SMIMEException which is IOException
|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |