net.sourceforge.jpcap.util
Class FileUtility
java.lang.Object
net.sourceforge.jpcap.util.FileUtility
public class FileUtility
- extends Object
Writes data in tcpdump format
- Version:
- $Revision: 1.1 $
- Author:
- Joyce Lin
- Last modified by:
- $Author: esmondpitt $
- Last modified at:
- $Date: 2008/08/21 02:59:23 $
Method Summary |
static String |
readFile(String filename)
|
static void |
writeFile(byte[][] bytes,
int beginIndex,
int endIndex,
String filename,
boolean append)
|
static void |
writeFile(byte[][] bytes,
String filename,
boolean append)
|
static void |
writeFile(byte[] bytes,
String filename,
boolean append)
|
static void |
writeFile(String str,
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 String readFile(String filename)
throws IOException
- Throws:
IOException
writeFile
public static void writeFile(String str,
String filename,
boolean append)
throws IOException
- Throws:
IOException
writeFile
public static void writeFile(byte[] bytes,
String filename,
boolean append)
throws IOException
- Throws:
IOException
writeFile
public static void writeFile(byte[][] bytes,
String filename,
boolean append)
throws IOException
- Throws:
IOException
writeFile
public static void writeFile(byte[][] bytes,
int beginIndex,
int endIndex,
String filename,
boolean append)
throws IOException
- Throws:
IOException