SourceForge Jpcap

net.sourceforge.jpcap.util
Class FileUtility

java.lang.Object
  extended by 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 $

Constructor Summary
FileUtility()
           
 
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
 

Constructor Detail

FileUtility

public FileUtility()
Method Detail

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

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.