net.clackrouter.jpcap
Class FileUtility
java.lang.Object
net.clackrouter.jpcap.FileUtility
public class FileUtility
- extends java.lang.Object
Writes data in tcpdump format
Method Summary |
static java.lang.String |
readFile(java.lang.String filename)
|
static void |
writeFile(byte[][] bytes,
int beginIndex,
int endIndex,
java.lang.String filename,
boolean append)
|
static void |
writeFile(byte[][] bytes,
java.lang.String filename,
boolean append)
|
static void |
writeFile(byte[] bytes,
java.lang.String filename,
boolean append)
|
static void |
writeFile(java.lang.String str,
java.lang.String filename,
boolean append)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtility
public FileUtility()
readFile
public static java.lang.String readFile(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
writeFile
public static void writeFile(java.lang.String str,
java.lang.String filename,
boolean append)
throws java.io.IOException
- Throws:
java.io.IOException
writeFile
public static void writeFile(byte[] bytes,
java.lang.String filename,
boolean append)
throws java.io.IOException
- Throws:
java.io.IOException
writeFile
public static void writeFile(byte[][] bytes,
java.lang.String filename,
boolean append)
throws java.io.IOException
- Throws:
java.io.IOException
writeFile
public static void writeFile(byte[][] bytes,
int beginIndex,
int endIndex,
java.lang.String filename,
boolean append)
throws java.io.IOException
- Throws:
java.io.IOException