| |
|
| java.lang.Object org.enhydra.oyster.util.ConvertAssist
ConvertAssist | public class ConvertAssist (Code) | | This class contains static methods which make easier work and conversion
between different types under the large amount of data (arrays, streams,
files ...).
|
fileToByteArray | public static byte[] fileToByteArray(File file0) throws SMIMEException(Code) | | Reads data from file into the byte array.
Parameters: file0 - abstract path to file represented as File object data from file represented as byte array exception: SMIMEException - caused by non SMIMEException which is IOException |
fileToString | public static String fileToString(File file0) throws SMIMEException(Code) | | Reads data from file into the String.
Parameters: file0 - abstract path to file represented as File object data from file represented as String exception: SMIMEException - caused by non SMIMEException which is IOException |
inStreamToByteArray | public static byte[] inStreamToByteArray(InputStream in0) throws SMIMEException(Code) | | Reads data from input stream into the byte array.
Parameters: in0 - source of data for reading data extracted from input stream represented as byte array exception: SMIMEException - caused by non SMIMEException which is IOException |
inStreamToString | public static String inStreamToString(InputStream in0) throws SMIMEException(Code) | | Reads data from input stream into the String.
Parameters: in0 - source of data for reading data extracted from input stream represented as String exception: SMIMEException - caused by non SMIMEException which is IOException |
|
|
|