public final class V1Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
convertListToArray(List<?> oids,
Class<T> clazz) |
static void |
copyStream(InputStream input,
OutputStream output)
Coping data(binary type) from
input stream to output stream. |
static void |
copyStream(InputStream input,
OutputStream output,
int buffersize)
Coping data(binary type) from
input stream to output stream. |
static void |
copyStream(Reader input,
Writer output)
Coping data(character type) from
input reader to output writer. |
static void |
copyStream(Reader input,
Writer output,
int buffersize)
Coping data(character type) from
input reader to output writer. |
static boolean |
equals(Object o1,
Object o2)
Verification of equivalence of the objects.
|
static boolean |
isNullOrEmpty(String string)
Verify - is string empty or null?
|
public static boolean equals(Object o1, Object o2)
o1 - first object.o2 - second object.public static void copyStream(Reader input, Writer output) throws IOException
input reader to output writer.input - source of data.output - destination of data.IOException - if any errors occur during copying process.public static void copyStream(InputStream input, OutputStream output) throws IOException
input stream to output stream.input - input source of data.output - destination of data.IOException - if any errors occur during copying process.public static void copyStream(Reader input, Writer output, int buffersize) throws IOException, IllegalArgumentException
input reader to output writer.input - input source of data.output - destination of data.buffersize - size of buffer with is using for data copy.IOException - if any errors occur during copying process.IllegalArgumentException - if buffersize less then 1.public static void copyStream(InputStream input, OutputStream output, int buffersize) throws IOException, IllegalArgumentException
input stream to output stream.input - input source of data.output - destination of data.buffersize - size of buffer with is using for data copy.IOException - if any errors occur during copying process.IllegalArgumentException - if buffersize less then 1.public static <T> T[] convertListToArray(List<?> oids, Class<T> clazz)
T - type of result array.oids - source list of elements.clazz - source class of result array.public static boolean isNullOrEmpty(String string)
string - string for verifying.Copyright © 2013 Version One, Inc.. All rights reserved.