@Override public boolean open(String access){
  if (access.equals("r")) {
    try {
      iStream=new FileImageInputStream(new File(filePath));
      parser=new LabelParser();
      metadata=parser.parseHeader(iStream);
      iStream.close();
      iStream=null;
    }
 catch (    IOException e) {
      try {
        iStream.close();
      }
 catch (      Exception x) {
      }
      return (false);
    }
  }
  return (super.open(access));
}

@ Override public boolean open ( String access ) { if ( access . equals ( "r" ) ) { try { iStream = new FileImageInputStream ( new File ( filePath ) ) ; parser = new LabelParser ( ) ; metadata = parser . parseHeader ( iStream ) ; iStream . close ( ) ; iStream = null ; } catch ( IOException e ) { try { iStream . close ( ) ; } catch ( Exception x ) { } return ( false ) ; } } return ( super . open ( access ) ) ; }
open the pds file .
