Beispiel #1
0
  protected void setLengthSupport(long length) throws FMFileManagerException {

    try {
      file_access.setLength(raf, length);

    } catch (FMFileManagerException e) {

      if (OUTPUT_REOPEN_RELATED_ERRORS) {
        Debug.printStackTrace(e);
      }

      try {
        reopen(e);

        file_access.setLength(raf, length);

      } catch (Throwable e2) {

        throw (e);
      }
    }
  }
Beispiel #2
0
  protected long getLengthSupport() throws FMFileManagerException {

    try {
      return (file_access.getLength(raf));

    } catch (FMFileManagerException e) {

      if (OUTPUT_REOPEN_RELATED_ERRORS) {
        Debug.printStackTrace(e);
      }

      try {
        reopen(e);

        return (file_access.getLength(raf));

      } catch (Throwable e2) {

        throw (e);
      }
    }
  }
Beispiel #3
0
  protected void writeSupport(DirectByteBuffer[] buffers, long position)
      throws FMFileManagerException {
    try {

      file_access.write(raf, buffers, position);

    } catch (FMFileManagerException e) {

      if (OUTPUT_REOPEN_RELATED_ERRORS) {
        Debug.printStackTrace(e);
      }

      try {
        reopen(e);

        file_access.write(raf, buffers, position);

      } catch (Throwable e2) {

        throw (e);
      }
    }
  }