Class DataInputUtil

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

public final class DataInputUtil extends Object
A util class for DataInput.
  • Constructor Details

    • DataInputUtil

      public DataInputUtil()
  • Method Details

    • skipFully

      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 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.
      IOException - if IOException occurs. It doesn't contain EOFException.
      NullPointerException - if the param 'in' equals null.