org.apache.derby.iapi.services.io
Class DataInputUtil

java.lang.Object
  extended by org.apache.derby.iapi.services.io.DataInputUtil

public final class DataInputUtil
extends java.lang.Object

A util class for DataInput.


Constructor Summary
DataInputUtil()
           
 
Method Summary
static void skipFully(java.io.DataInput in, int skippedBytes)
          Skips requested number of bytes, throws EOFException if there is too few bytes in the DataInput.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataInputUtil

public DataInputUtil()
Method Detail

skipFully

public static void skipFully(java.io.DataInput in,
                             int skippedBytes)
                      throws java.io.IOException
Skips requested number of bytes, throws EOFException if there is too few bytes in the DataInput.

Parameters:
in - DataInput to be skipped.
skippedBytes - number of bytes to skip. if skippedBytes <= zero, do nothing.
Throws:
EOFException - if EOF meets before requested number of bytes are skipped.
java.io.IOException - if IOException occurs. It doesn't contain EOFException.
java.lang.NullPointerException - if the param 'in' equals null.

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.