|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetstream.capture.Captures
public final class Captures
Static factory methods for creating and accessing capture sessions. This
class provides a number of static methods for manipulating capture files such
as concatenating multiple files into one, or reverse and splitting a single
large file into multiple smaller ones. Easily get the capture file type or
validate its contents. The most imporant methods though are newFile(java.lang.Class,
openFile(java.lang.Class and openLive() which create new blank capture files,
open existing capture file or open network interfaces for live network packet
capture where packets are received directly from the network and passed to
the user.
| Nested Class Summary | |
|---|---|
static interface |
Captures.Factory
A factory interface for interfacing with implementation of jNetStream API. |
static interface |
Captures.LiveCaptureFactory
Factory classes which create live capture sessions and transmit packets. |
static interface |
Captures.LocalFactory
Factory interface for local sessions. |
static interface |
Captures.RemoteFactory
Factory interface for remote sessions. |
| Field Summary | |
|---|---|
static java.lang.String |
FACTORY_CLASS_DEFAULT
Classname of the default factory implementation for jNetStream's Captures factory class. |
static java.lang.String |
FACTORY_CLASS_PROPERTY
The name of the system property which controls instantiation of the main factory implementation for this Captures factory class. |
static org.apache.commons.logging.Log |
logger
A logger used for debuging and tracing. |
| Method Summary | ||
|---|---|---|
static long |
append(FileCapture<? extends FilePacket> dst,
Capture... srcs)
Copies all of the CapturePackets returned by the source capture sessions into the already open capture file. |
|
static long |
catFile(FormatType type,
java.io.File file,
Capture... sources)
Copies all of the CapturePackets returned by the source a destination capture file. |
|
static long |
catFile(FormatType type,
java.io.File dst,
java.io.File... src)
Concatenate all the files into single dst file |
|
static void |
close()
Closes the last capture that was returned by this factory class. |
|
static long |
count(com.slytechs.utils.collection.IOSkippableIterator<?> source)
Generic method for counting elements of any kind given a skippable iterator. |
|
static long |
countPackets(java.io.File file)
Counts packets in a file. |
|
static PacketFormatter |
defaultFormatter()
Gets the default formatter. |
|
static PacketFormatter |
defaultFormatter(PacketFormatter formatter)
Method is used to set a new default formatter. |
|
static FormatType |
formatType(java.io.File file)
Determines the format type of the supplied file. |
|
static FormatType |
formatType(java.io.InputStream in)
Determines the format type of the supplied "input". |
|
static FormatType |
formatType(java.nio.channels.ReadableByteChannel in)
Determines the format type of the supplied "input". |
|
static FormatType.Detail |
formatTypeDetail(java.io.File f)
Determines the format type of the supplied file. |
|
static FormatType.Detail |
formatTypeDetail(java.nio.channels.ReadableByteChannel in)
Determines the format type of the supplied "input". |
|
static Captures.LocalFactory |
getLocal()
Returns an instance of the current local capture factory which is responsible for creating local capture instances. |
|
static Capture<?> |
last()
Returns the last capture session returned by this factory method. |
|
static LiveCaptureDevice[] |
listCaptureDevices()
Returns a list of local capture devices available for live capture. |
|
static
|
newFile(java.lang.Class<T> t,
java.io.File f)
Creates a new file of the request type. |
|
static
|
newFile(java.lang.Class<T> t,
java.io.File f,
Capture<? extends CapturePacket> c)
A convenience utility method which creates a new file and dumps all of the packets from capture to the new file in the proper format. |
|
static
|
newFile(java.lang.Class<T> t,
java.lang.String f)
Creates a new file of the request type. |
|
static
|
newFile(java.lang.Class<T> t,
java.lang.String f,
Capture<CapturePacket> c)
A convenience utility method which creates a new file and dumps all of the packet from capture to the new file in the proper format. |
|
static FileCapture<? extends FilePacket> |
newFile(FormatType type,
java.io.File file)
|
|
static FileCapture<? extends FilePacket> |
newFile(FormatType t,
java.lang.String file)
|
|
static
|
newInput(java.lang.Class<T> t,
java.io.File in)
|
|
static
|
newInput(java.lang.Class<T> t,
java.io.InputStream in)
|
|
static
|
newInput(java.lang.Class<T> t,
java.io.InputStream in,
Filter<ProtocolFilterTarget> filter)
|
|
static
|
newInput(java.lang.Class<T> t,
java.nio.channels.ReadableByteChannel in)
|
|
static InputCapture<? extends CapturePacket> |
newInput(java.io.File file)
|
|
static InputCapture<? extends CapturePacket> |
newInput(java.io.File file,
Filter<ProtocolFilterTarget> filter)
|
|
static InputCapture<? extends CapturePacket> |
newInput(java.io.InputStream in)
|
|
static InputCapture<? extends CapturePacket> |
newInput(java.io.InputStream in,
Filter<ProtocolFilterTarget> filter)
|
|
static
|
newOutput(java.lang.Class<T> t,
java.io.OutputStream out)
|
|
static
|
newOutput(java.lang.Class<T> t,
java.nio.channels.WritableByteChannel out)
|
|
static OutputCapture |
newOutput(FormatType type,
java.io.OutputStream out)
|
|
static
|
openFile(java.lang.Class<T> t,
java.io.File file)
|
|
static
|
openFile(java.lang.Class<T> t,
java.io.File file,
FileMode mode)
|
|
static
|
openFile(java.lang.Class<T> t,
java.lang.String file)
|
|
static FileCapture<? extends FilePacket> |
openFile(java.io.File file)
Opens a file for reading and writting. |
|
static FileCapture<? extends FilePacket> |
openFile(java.io.File file,
FileMode mode)
Opens a file using the specified file mode. |
|
static FileCapture<? extends FilePacket> |
openFile(java.io.File file,
Filter<ProtocolFilterTarget> protocolFilter)
Opens a file for reading and writting while applying a filter to limit what is returned. |
|
static FileCapture<? extends FilePacket> |
openFile(java.lang.String file)
|
|
static FileCapture<? extends FilePacket> |
openFile(java.lang.String file,
Filter<ProtocolFilterTarget> protocolFilter)
|
|
static LiveCapture |
openLive()
Opens up a network interfaces for live packet capture. |
|
static LiveCapture |
openLive(CaptureDevice... nics)
Opens up a network interfaces for live packet capture. |
|
static LiveCapture |
openLive(CaptureDevice nic)
Opens up a network interface for live packet capture. |
|
static LiveCapture |
openLive(java.util.Collection<CaptureDevice> nics)
Opens up a network interfaces for live packet capture. |
|
static LiveCapture |
openLive(Filter<ProtocolFilterTarget> filter)
Opens up a network interfaces for live packet capture with a filter. |
|
static LiveCapture |
openLive(Filter<ProtocolFilterTarget> filter,
CaptureDevice nic)
Opens up a network interface for live packet capture with a filter. |
|
static LiveCapture |
openLive(Filter<ProtocolFilterTarget> filter,
java.util.Collection<CaptureDevice> nics)
Opens up a network interfaces for live packet capture with a filter. |
|
static LiveCapture |
openLive(long count)
Opens up a network interfaces for live packet capture. |
|
static NetTransmitter |
openTransmitter()
Opens a live session with the network interface for packet tranmition. |
|
static NetTransmitter |
openTransmitter(java.net.NetworkInterface netInterface)
Opens a live session with the network interface for packet tranmition. |
|
static void |
registerListener(CaptureListener listener)
Registers a listener for capture session events with the current factory. |
|
static void |
removeRegisteredListener(CaptureListener listener)
Removes a previously registered capture session listener |
|
static void |
setLocalCaptureFactory(Captures.LocalFactory local)
Allows complete override of the implementation of Capture Framework. |
|
static java.util.List<java.io.File> |
splitFile(java.io.File file)
Splits the file into smaller files according to default rules defined for each file format. |
|
static java.util.List<java.io.File> |
splitFile(java.io.File file,
long packetCount,
boolean maxCompression)
Split the specified file into smaller files containing specified number of packets each from the source file. |
|
static PacketFormatter |
stringFormatter()
Retrieves the default packet formatter used in formating output to a string. |
|
static PacketFormatter |
stringFormatter(PacketFormatter formatter)
Method is used to set a new string formatter. |
|
static boolean |
validateFile(java.io.File file)
Checks if the specified file is in a proper format 100% compabile with specification. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log logger
public static final java.lang.String FACTORY_CLASS_DEFAULT
Captures factory class.
public static final java.lang.String FACTORY_CLASS_PROPERTY
Captures factory class. If
this property is not set, FACTORY_CLASS_DEFAULT is used as the
default.
| Method Detail |
|---|
public static long append(FileCapture<? extends FilePacket> dst,
Capture... srcs)
throws java.io.IOException
srcs - capture sources to read packets fromdst - mutable capture to write the packets into
java.io.IOException - any IO errors
public static long catFile(FormatType type,
java.io.File file,
Capture... sources)
throws java.io.IOException
type - TODOfile - destination file to write the packets intosources - capture sources to read packets from
java.io.IOException - any IO errors
public static long catFile(FormatType type,
java.io.File dst,
java.io.File... src)
throws java.io.FileNotFoundException,
java.io.IOException
type - TODOdst - destination file to concatenate the src files tosrc - array of source files to concatenate contents from
java.io.IOException
java.io.FileNotFoundException
public static void close()
throws java.io.IOException
java.io.IOException - any IO errors during closure
public static long count(com.slytechs.utils.collection.IOSkippableIterator<?> source)
throws java.io.IOException
skip operation which is much more efficient at
advancing to the next element then calling on next is. No
objects have to be created or returned. The elements could be packets,
record, buffers or anything else.
source - source iterator over which to count all the elements
java.io.IOException
public static long countPackets(java.io.File file)
throws java.io.IOException,
FileFormatException
file - file to have its packets counted
java.io.IOException - any IO errors
FileFormatException - if the format of the file can not be recognizedpublic static PacketFormatter defaultFormatter()
format method is invoked.
format methodspublic static PacketFormatter defaultFormatter(PacketFormatter formatter)
formatter - new formatter
public static FormatType formatType(java.io.File file)
throws java.io.IOException
file - file to check and return format type
java.io.IOException
public static FormatType formatType(java.io.InputStream in)
throws java.io.IOException
in - input to check and return format type
java.io.IOException
public static FormatType formatType(java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
in - input to check and return format type
java.io.IOException
public static FormatType.Detail formatTypeDetail(java.io.File f)
throws java.io.IOException
FormatType.Other. You can use
FormatType.Detail.getDetailedName() which
will provide a known name for the format.
file - file to check and return format type
java.io.IOException
public static FormatType.Detail formatTypeDetail(java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
FormatType.Other. You can
use FormatType.Detail.getDetailedName()
which will provide a known name for the format.
in - input to check and return format type
java.io.IOExceptionpublic static Captures.LocalFactory getLocal()
Returns an instance of the current local capture factory which is
responsible for creating local capture instances. This is synonymous with
the RemoteSession counter part which extends the RemoteFactory interface.
The methods between Factory, LocalFactory and RemoteFactory are partitioned
in a such a way to only allow operations that make sense with the given
interface. For example, the RemoteLocalFactory interface does not contain
any of the methods that LocalFactory does to open a live network capture
using standard java.net.NetworkInterface objects. This is because
NetworkInterface objects don't make sense on client machine, they are only
instantiated by runtime environment for local machines. Therefore you need
to use one of the methods that are allowed for remote capture such as
openLive(CaptureDevice) method where CaptureDevice is this
frameworks concept and is allowed to be shared accross multiple machines.
public static Capture<?> last()
close() had been called which clears out the last
capture
public static LiveCaptureDevice[] listCaptureDevices()
throws java.io.IOException
openLive() method calls to open a live network capture while
supplying 1 or more of these capture devices returned. These capture
devices differ from ones obtained from packets as in
org.jnetstream.packet.Packet#getCaptureDevice that are obtained and
contain information about actual live network interfaces on a particular
system. CaptureDevices aquire from file based packets or captures only
contain information about network interface that may or may not exist any
longer.
java.io.IOException
public static <T extends FileCapture<? extends FilePacket>> T newFile(java.lang.Class<T> t,
java.io.File f)
throws java.io.IOException,
FileFormatException
Creates a new file of the request type. The new file will contain the appropriate block/file header, but other then that is completely empty. This means that file size will not be equal to zero, but no packet or data records exists.
T - one of the supported class types that is a subclass of
FileCapture, such as PcapFile, SnoopFile, NapFile, etc...t - type of file to create specified by passing one of the supported
class object of the file type to be createdf - the file to create, the file must not exist
java.io.IOException - any IO errors
FileFormatException
public static <T extends FileCapture<? extends FilePacket>> T newFile(java.lang.Class<T> t,
java.io.File f,
Capture<? extends CapturePacket> c)
throws java.io.IOException
f - file to createtype - the type of file to createc - source of CapturePackets which will be dumped into the new file
java.io.IOException - any IO errors
public static <T extends FileCapture<? extends FilePacket>> T newFile(java.lang.Class<T> t,
java.lang.String f)
throws java.io.IOException,
FileFormatException
Creates a new file of the request type. The new file will contain the appropriate block/file header, but other then that is completely empty. This means that file size will not be equal to zero, but no packet or data records exists.
T - one of the supported class types that is a subclass of
FileCapture, such as PcapFile, SnoopFile, NapFile, etc...t - type of file to create specified by passing one of the supported
class object of the file type to be createdf - the file to create, the file must not exist
java.io.IOException - any IO errors
FileFormatException
public static <T extends FileCapture<? extends FilePacket>> T newFile(java.lang.Class<T> t,
java.lang.String f,
Capture<CapturePacket> c)
throws java.io.IOException
f - file to createtype - the type of file to createc - source of CapturePackets which will be dumped into the new file
java.io.IOException - any IO errors
public static FileCapture<? extends FilePacket> newFile(FormatType type,
java.io.File file)
throws java.io.IOException
pcap - src -
java.io.IOException
public static FileCapture<? extends FilePacket> newFile(FormatType t,
java.lang.String file)
throws java.io.IOException
pcap - string -
java.io.IOException
public static <T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.io.File in)
throws java.io.IOException
name - temp1Compressed -
java.io.IOException
public static <T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.io.InputStream in)
throws java.io.IOException
T - t - in -
java.io.IOExceptionnewInput(java.lang.Class,
java.io.InputStream)
public static <T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.io.InputStream in,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
T - t - in - filter -
java.io.IOExceptionnewInput(java.lang.Class,
java.io.InputStream, Filter)
public static <T extends InputCapture<? extends FilePacket>> T newInput(java.lang.Class<T> t,
java.nio.channels.ReadableByteChannel in)
throws java.io.IOException
java.io.IOException
public static InputCapture<? extends CapturePacket> newInput(java.io.File file)
throws java.io.IOException
file -
java.io.IOException
public static InputCapture<? extends CapturePacket> newInput(java.io.File file,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
f -
java.io.IOException
public static InputCapture<? extends CapturePacket> newInput(java.io.InputStream in)
throws java.io.IOException
in -
java.io.IOExceptionnewInput(java.io.InputStream)
public static InputCapture<? extends CapturePacket> newInput(java.io.InputStream in,
Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
in - filter -
java.io.IOExceptionnewInput(java.io.InputStream,
Filter)
public static <T extends OutputCapture> T newOutput(java.lang.Class<T> t,
java.io.OutputStream out)
throws java.io.IOException
T - t - out -
java.io.IOExceptionnewOutput(java.lang.Class,
java.io.OutputStream)
public static <T extends OutputCapture> T newOutput(java.lang.Class<T> t,
java.nio.channels.WritableByteChannel out)
throws java.io.IOException
name - out -
java.io.IOException
public static OutputCapture newOutput(FormatType type,
java.io.OutputStream out)
throws java.io.IOException
type - out -
java.io.IOExceptionCaptures.LocalFactory.newOutput(org.jnetstream.capture.FormatType,
java.io.OutputStream)
public static <T extends FileCapture<? extends FilePacket>> T openFile(java.lang.Class<T> t,
java.io.File file)
throws java.io.IOException,
FileFormatException
java.io.IOException
FileFormatException
public static <T extends FileCapture<? extends FilePacket>> T openFile(java.lang.Class<T> t,
java.io.File file,
FileMode mode)
throws java.io.IOException,
FileFormatException
java.io.IOException
FileFormatException
public static <T extends FileCapture<? extends FilePacket>> T openFile(java.lang.Class<T> t,
java.lang.String file)
throws java.io.IOException,
FileFormatException
java.io.IOException
FileFormatException
public static FileCapture<? extends FilePacket> openFile(java.io.File file)
throws java.io.IOException,
FileFormatException
file -
java.io.IOException
FileFormatException - TODO
public static FileCapture<? extends FilePacket> openFile(java.io.File file,
FileMode mode)
throws java.io.IOException,
FileFormatException
file - file to openmode - FileMode with which to open the file with
java.io.IOException - any IO errors
FileFormatException - thrown if file containted any format errors
public static FileCapture<? extends FilePacket> openFile(java.io.File file,
Filter<ProtocolFilterTarget> protocolFilter)
throws java.io.IOException
file - protocolFilter -
java.io.IOException
public static FileCapture<? extends FilePacket> openFile(java.lang.String file)
throws java.io.IOException,
FileFormatException
string -
FileFormatException
java.io.IOException
public static FileCapture<? extends FilePacket> openFile(java.lang.String file,
Filter<ProtocolFilterTarget> protocolFilter)
throws java.io.IOException
java.io.IOException
public static LiveCapture openLive()
throws java.io.IOException
java.io.IOException - any IO errors
public static LiveCapture openLive(CaptureDevice nic)
throws java.io.IOException
Opens up a network interface for live packet capture. The specified network interface will be opened for live network packet capture. LiveCapture extends the Capture interface which provides simple iterator through which all the captured packets are returned one after the other. There is no guarrantee as to the order in which packets are returned when more then one interface is used for packet capture at the same time. Its simply left upto the underlying implementation to determine the order. Each CapturePacket maintains a reference to a CaptureDevice which is associated with the interface that captured the particular packet.
nic -
java.io.IOException
public static LiveCapture openLive(CaptureDevice... nics)
throws java.io.IOException
Opens up a network interfaces for live packet capture. The specified network interfaces are opened for capture with including loopback interface if specified. LiveCapture extends the Capture interface which provides simple iterator through which all the captured packets are returned one after the other. There is no guarrantee as to the order in which packets are returned when more then one interface is used for packet capture at the same time. Its simply left upto the underlying implementation to determine the order. Each CapturePacket maintains a reference to a CaptureDevice which is associated with the interface that captured the particular packet.
nics - collection of network interfaces to open, including loopbacks if
part of the collection
java.io.IOException - any IO errors
public static LiveCapture openLive(java.util.Collection<CaptureDevice> nics)
throws java.io.IOException
Opens up a network interfaces for live packet capture. The specified network interfaces are opened for capture with including loopback interface if specified. LiveCapture extends the Capture interface which provides simple iterator through which all the captured packets are returned one after the other. There is no guarrantee as to the order in which packets are returned when more then one interface is used for packet capture at the same time. Its simply left upto the underlying implementation to determine the order. Each CapturePacket maintains a reference to a CaptureDevice which is associated with the interface that captured the particular packet.
nics - collection of network interfaces to open, including loopbacks if
part of the collection
java.io.IOException - any IO errors
public static LiveCapture openLive(Filter<ProtocolFilterTarget> filter)
throws java.io.IOException
Opens up a network interfaces for live packet capture with a filter. All available network interfaces are opened for capture with the exception of any interfaces that carry the loopback address of 127.0.0.0/8. LiveCapture extends the Capture interface which provides simple iterator through which all the captured packets are returned one after the other. There is no guarrantee as to the order in which packets are returned when more then one interface is used for packet capture at the same time. Its simply left upto the underlying implementation to determine the order. Each CapturePacket maintains a reference to a CaptureDevice which is associated with the interface that captured the particular packet.
Filter is applied directly by the kernel, this feature is operating system dependent, to efficiently accept or reject packets as close to the hardware level as possible with no extraneous in memory copies. Most modern operating system support this feature. If this feature is not available the filter is applied in "userland" or in user space which is less efficient.
filter - the filter to apply to the capture session
java.io.IOException
public static LiveCapture openLive(Filter<ProtocolFilterTarget> filter,
CaptureDevice nic)
throws java.io.IOException
Opens up a network interface for live packet capture with a filter. The specified network interface will be opened for live network packet capture. LiveCapture extends the Capture interface which provides simple iterator through which all the captured packets are returned one after the other. There is no guarrantee as to the order in which packets are returned when more then one interface is used for packet capture at the same time. Its simply left upto the underlying implementation to determine the order. Each CapturePacket maintains a reference to a CaptureDevice which is associated with the interface that captured the particular packet.
Filter is applied directly by the kernel, this feature is operating system dependent, to efficiently accept or reject packets as close to the hardware level as possible with no extraneous in memory copies. Most modern operating system support this feature. If this feature is not available the filter is applied in "userland" or in user space which is less efficient.
nic - filter -
java.io.IOException
public static LiveCapture openLive(Filter<ProtocolFilterTarget> filter,
java.util.Collection<CaptureDevice> nics)
throws java.io.IOException
Opens up a network interfaces for live packet capture with a filter. The specified network interfaces are opened for capture with including loopback interface if specified. LiveCapture extends the Capture interface which provides simple iterator through which all the captured packets are returned one after the other. There is no guarrantee as to the order in which packets are returned when more then one interface is used for packet capture at the same time. Its simply left upto the underlying implementation to determine the order. Each CapturePacket maintains a reference to a CaptureDevice which is associated with the interface that captured the particular packet.
Filter is applied directly by the kernel, this feature is operating system dependent, to efficiently accept or reject packets as close to the hardware level as possible with no extraneous in memory copies. Most modern operating system support this feature. If this feature is not available the filter is applied in "userland" or in user space which is less efficient.
nics - filter -
java.io.IOException
public static LiveCapture openLive(long count)
throws java.io.IOException
count - number of packets to capture and exit afterwards
java.io.IOException - any IO errors
public static NetTransmitter openTransmitter()
throws java.io.IOException
java.io.IOException - any IO errors while opening the connection to interface
public static NetTransmitter openTransmitter(java.net.NetworkInterface netInterface)
throws java.io.IOException
java.io.IOException - any IO errors while opening the connection to interfacepublic static void registerListener(CaptureListener listener)
listener - listener to notify when new capture session events are generatedpublic static void removeRegisteredListener(CaptureListener listener)
listener - listener to remove from the list of listenerspublic static void setLocalCaptureFactory(Captures.LocalFactory local)
local - new local factory for all capture framework's operations
public static java.util.List<java.io.File> splitFile(java.io.File file)
throws java.io.IOException
Splits the file into smaller files according to default rules defined for each file format. For NAP the file will be split with each Block Record being split into its own seperate file. The defaults are to split the files into rough 1Meg segments, if the file is greater then 1 Meg otherwise into rough 100K segments if file is less then 1Meg but greater then 100K. If the file is smaller then 100K, nothing is split. Where K = 1024 bytes.
The base filename supplied is used as the base filename for all newly created files with the -XXXX appended to them.
The source file is unmodified
file - file to be split
java.io.IOException
public static java.util.List<java.io.File> splitFile(java.io.File file,
long packetCount,
boolean maxCompression)
throws java.io.IOException
Split the specified file into smaller files containing specified number of packets each from the source file. New files are created to hold only the specified number of packets and associated meta records. The supplied filename is used as a base filename for all newly created files with the post fix of -XXXX appended to them.
The source file is unmodified
file - source file to splitpacketCount - split using this many packets from the source file copied into the
newly created filesmaxCompression - true means produce the smallest possible file, while false means
leave it upto the default algorithm for each spcific file type.
For example NAP files pad their files to 512Kb by default which
means that files containing even only a single packet are of
minimum size 512 Kb, but this can be overriden by setting
maxCompression to true. Notice that it will be harder to split the
NAP file with regular unix commands if default padding is not
used.
java.io.IOExceptionpublic static PacketFormatter stringFormatter()
public static PacketFormatter stringFormatter(PacketFormatter formatter)
formatter - new formatter
public static boolean validateFile(java.io.File file)
throws java.io.IOException
file - file to validate
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||