Package com.stimulus.archiva.exception

Examples of com.stimulus.archiva.exception.ExtractionException


     }
     zis.close();
     writer.close();
     reader = new InputStreamReader(new FileInputStream(extractFile),"UTF-8");
    } catch (Exception e) {
      throw new ExtractionException("failed to extract text from microsoft 2007 document:"+e.getMessage(),e,logger);
    } catch (OutOfMemoryError ome) {
      throw new ExtractionException("failed to extract text from microsoft 2007 document:"+ome.getMessage(),ome,logger);
    } finally {
       try { if (zis!=null) zis.close(); } catch (Exception e) { System.out.println(e); }
       try { if (writer!=null) writer.close(); } catch (Exception e) { System.out.println(e); }
      if (extractFile!=null) indexInfo.addDeleteFile(extractFile);
       if (reader!=null) indexInfo.addReader(reader);
View Full Code Here


            }
          }
        }
      }
      catch (Exception e) {
          throw new ExtractionException("could not extract Excel document",e,logger);
      } finally {
            if (out != null) {
               out.close();
            }
      }
      try {
          return new FileReader(file);
      } catch(Exception ex) {
          throw new ExtractionException("failed to extract text from powerpoint document",ex,logger);
      }
  }
View Full Code Here

TOP

Related Classes of com.stimulus.archiva.exception.ExtractionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.