@Override public void close() throws IOException {
  if (!access.equals("r")) {
    if (dataStream != null) {
      dataStream.close();
      dataStream=null;
    }
    if (outputStream != null) {
      outputStream.close();
      outputStream=null;
    }
  }
 else   if (iStream != null) {
    iStream.close();
  }
}

@ Override public void close ( ) throws IOException { if ( ! access . equals ( "r" ) ) { if ( dataStream != null ) { dataStream . close ( ) ; dataStream = null ; } if ( outputStream != null ) { outputStream . close ( ) ; outputStream = null ; } } else if ( iStream != null ) { iStream . close ( ) ; } }
close the pds file . if the file was opened for writing or appending , keys and data will be flushed .
