| java.lang.Object de.anomic.server.serverFileUtils
serverFileUtils | final public class serverFileUtils (Code) | | |
Method Summary | |
public static long | copy(InputStream source, OutputStream dest) | public static long | copy(InputStream source, OutputStream dest, long count) Copies an InputStream to an OutputStream. | public static int | copy(File source, String inputCharset, Writer dest) | public static int | copy(InputStream source, Writer dest, String inputCharset) | public static int | copy(String source, Writer dest) | public static int | copy(Reader source, Writer dest) | public static void | copy(InputStream source, File dest) | public static void | copy(InputStream source, File dest, long count) Copies an InputStream to a File. | public static void | copy(File source, OutputStream dest) Copies a File to an OutputStream. | public static void | copy(File source, File dest) | public static void | copy(File source, File dest, long count) Copies a File to a File. | public static void | copyRange(File source, OutputStream dest, int start) Copies a part of a File to an OutputStream. | public static Map<String, String> | loadHashMap(File f) | public static HashSet<String> | loadList(File file) | public static Set<String> | loadSet(File file, int chunksize, boolean tree) | public static Set<String> | loadSet(File file, String sep, boolean tree) | public static void | main(String[] args) | public static void | moveAll(File from_dir, File to_dir) Moves all files from a directory to another.
Parameters: from_dir - Directory which contents will be moved. Parameters: to_dir - Directory to move into. | public static byte[] | read(InputStream source) | public static byte[] | read(InputStream source, long count) | public static byte[] | read(File source) | public static byte[] | readAndZip(File source) | public static void | saveMap(File file, Map<String, String> props, String comment) | public static void | saveSet(File file, String format, Set<String> set, String sep) | public static void | saveSet(File file, String format, kelondroRowSet set, String sep) | public static byte[] | uncompressGZipArray(byte[] source) | public static void | write(String source, Writer dest) | public static void | write(byte[] source, OutputStream dest) | public static void | write(byte[] source, File dest) | public static void | writeAndGZip(byte[] source, File dest) | public static void | writeAndGZip(byte[] source, OutputStream dest) |
moveAll | public static void moveAll(File from_dir, File to_dir)(Code) | | Moves all files from a directory to another.
Parameters: from_dir - Directory which contents will be moved. Parameters: to_dir - Directory to move into. It must exist already. |
uncompressGZipArray | public static byte[] uncompressGZipArray(byte[] source) throws IOException(Code) | | This function determines if a byte array is gzip compressed and uncompress it
Parameters: source - properly gzip compressed byte array uncompressed byte array throws: IOException - |
|
|