|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.io.FileSplitter
Utility class for splitting files into smaller parts.
The most obvious usage is to split large text files, e.g. log files
into smaller more manageable parts.
Copyright: Copyright (c) 2004
| Method Summary | |
static int |
getLineCount(java.io.File file)
|
static void |
splitFile(java.io.File file,
int files,
boolean compress)
Splits a single file into the requested amount of parts. |
static void |
splitFile(java.io.File file,
long rowsPerFile,
boolean compress)
Splits a single file into the requested amount of parts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int getLineCount(java.io.File file)
throws java.io.IOException
java.io.IOException
public static void splitFile(java.io.File file,
int files,
boolean compress)
throws java.io.IOException
file - The file to splitfiles - The amount of parts to split the file intocompress - If the separate parts are to be compressed using ZIP
java.io.IOException
public static void splitFile(java.io.File file,
long rowsPerFile,
boolean compress)
throws java.io.IOException
file - The file to splitrowsPerFile - The amount of per filecompress - If the separate parts are to be compressed using ZIP
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||