Top Description Constructors Methods
org.apache.derby.iapi.services.io

public final Class DataInputUtil

extends Object
Class Inheritance
Imports
java.io.DataInput, .IOException

A util class for DataInput.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
skipFully(DataInput
DataInput to be skipped.
in
,
int
number of bytes to skip. if skippedBytes <= zero, do nothing.
skippedBytes
)

Skips requested number of bytes, throws EOFException if there is too few bytes in the DataInput.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataInputUtilback to summary
public DataInputUtil()

Method Detail

skipFullyback to summary
public static void skipFully(DataInput in, int skippedBytes) throws IOException

Skips requested number of bytes, throws EOFException if there is too few bytes in the DataInput.

Parameters
in:DataInput

DataInput to be skipped.

skippedBytes:int

number of bytes to skip. if skippedBytes <= zero, do nothing.

Exceptions
IOException:
if IOException occurs. It doesn't contain EOFException.
EOFException:
if EOF meets before requested number of bytes are skipped.
NullPointerException:
if the param 'in' equals null.