Examples of FileHandler


Examples of altn8.filechooser.FileHandler

                if (editor != null) { // fix issue 9: can only display hint if there is a editor instance
                    HintManager.getInstance().showInformationHint(editor, "No corresponding file(s) found");
                }
            } else {
                // open these...
                AlternateFilePopupChooser.prompt("Select the file(s) to open", fileGroups, currentProject, new FileHandler() {
                    public void processFile(@NotNull PsiFile psiFile) {
                        psiFile.navigate(true);
                    }
                });
            }
View Full Code Here

Examples of de.axxeed.animosy.tools.FileHandler

    loc.translate((PanelRepository.get(PanelRepository.MAIN_WINDOW).getWidth()-640)/2, 75);
    this.setLocation( loc );
   
    htmlBox.setEditorKit(new HTMLEditorKit());

    FileHandler htmlFile = new FileHandler(filename);
    String msg = htmlFile.readAll();
    log.debug("L�nge: "+msg.length());
     
    htmlBox.setText(msg.toString());
    htmlBox.setEditable(false);
    htmlBox.setCaretPosition(0);
View Full Code Here

Examples of de.innovationgate.wgpublisher.lucene.analysis.FileHandler

    }
   
    public void addFileHandlerMapping(String extension, String handlerClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
      log.info("Registering filehandler for extension '" + extension + "' - '" + handlerClassName + "'.");
      Class fileHandlerClass = getLibraryLoader().loadClass(handlerClassName);
        FileHandler handler = (FileHandler) fileHandlerClass.newInstance();
        fileHandlerMappings.put(extension.toLowerCase(), handler);
  }
View Full Code Here

Examples of de.uniol.informatik.vlba.prototype.packaging.FileHandler

    }

    // TODO hardcoded, move to config file
    refreshAvailableNeighbors(config, true);

    fh = new FileHandler(po, conn, "agent_file_", ".tmp");
    // TODO Do the neighbors have to be online?
    // // Remove all offline buddies from the list
    // for (Integer buddy : buddies) {
    // if (po.PurpleBuddyIsOnline(buddy.intValue()) == 0) {
    // buddies.remove(buddy);
View Full Code Here

Examples of de.uniol.informatik.vlba.purplebee.p2p.FileHandler

    //ReceivingImMsg_Handler ringh = new ReceivingImMsg_Handler();
    //ReceivedImMsg_Handler rdh = new ReceivedImMsg_Handler();
   
    DBusConnection conn = DBusConnection.getConnection(DBusConnection.SESSION);
    PurpleInterface po = (PurpleInterface)conn.getRemoteObject("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject");
    FileHandler fh = new FileHandler(po,conn, "agent_file_", ".tmp");
    //conn.addSigHandler(im.pidgin.purple.PurpleInterface.FileSendStart.class, fh);
    //conn.addSigHandler(im.pidgin.purple.PurpleInterface.FileSendComplete.class, fh);
   
    byte[] orgArr = new byte[]{'c','d','w','h','d','l'};
    String path = fh.packInFile(orgArr);
    byte[] bar = fh.unpackFromFile(path);
   
    for (int i=0;i<bar.length;i++)
    {
      assert(bar[i]==orgArr[i]);
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.common.FileHandler

  @Deprecated
  public String read(URI pdURI) throws SOAPException {
    log.fine("DataManager::read(URI pdURI)");
    try{
      PDURI _parsedURI = new PDURI(pdURI);
      FileHandler _encoder = new FileHandler(jcrManager.readContent(_parsedURI.getDataRegistryPath()));
      log.fine("DataManager::read() getting XML document");
      return _encoder.getXmlDocument();
    } catch (ParserConfigurationException _exp) {
      String _message = "DataManager.read() Encoding exception for UTF8??";
      log.fine(_message+": "+_exp.getMessage());
      throw new SOAPException(_message, _exp);
    } catch (PathNotFoundException _exp) {
View Full Code Here

Examples of java.util.logging.FileHandler

      if ( (m_Logger == null) && (!m_LoggerInitFailed) ) {
  if (m_Filename != null) {
    m_Logger = Logger.getLogger(m_Filename);
    Handler fh = null;
    try{      
      fh = new FileHandler(m_Filename, m_Size, m_NumFiles);
      fh.setFormatter(new SimpleFormatter());
      m_Logger.addHandler(fh);     
      m_LoggerInitFailed = false;
    }
    catch(Exception e) {
View Full Code Here

Examples of java.util.logging.FileHandler

                    tempFile.delete();
            }
        }
       
        try {
            handler = new FileHandler(dm.getTempDir() + filename);
            handler.setFormatter(new DriveReportFormatter());
            report.addHandler(handler);
        } catch (Exception e) {
            logger.error(e, e);
        }
View Full Code Here

Examples of java.util.logging.FileHandler

    }
    catch(NumberFormatException nfe){
      // if its not a number
      if(loggingOut.length()!=0){
        try {
            outHandlerList.add(new FileHandler(loggingOut,0,getInt("loggings.out.number",1)));
        } catch (SecurityException e) {
          System.err.println("Security prevents logging into files");
        } catch (IOException e) {
          System.err.println("Can not log in "+loggingOut);
        } catch (IllegalArgumentException e){
View Full Code Here

Examples of java.util.logging.FileHandler

    /**Setup logger*/
   
    log.setLevel(Level.ALL);//Log all events
   
    try {
      FileHandler fileHandler = new FileHandler(ConfigurationManager.LOGS_DIR+File.separator+"JMule%u.log",(int)ConfigurationManager.LOG_FILE_SIZE,ConfigurationManager.LOG_FILES_NUMBER);
     
      fileHandler.setFormatter(new SimpleFormatter());
     
      log.addHandler(fileHandler);
     
    } catch (Throwable e) {
     
View Full Code Here
TOP
Copyright © 2015 www.massapi.com. 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.