Examples of FileEditor


Examples of com.slytechs.capture.file.editor.FileEditor

      throw new FileNotFoundException("Unable to create new file ["
          + file.getName() + "]");
    }

    PcapFile capture = new PcapFileCapture(FileMode.ReadWrite, filter);
    final FileEditor editor = new FileEditorImpl(file, FileMode.ReadWrite,
        headerReader, order, filter, (RawIteratorBuilder) capture);

    PcapBlockRecordImpl.createBlock(capture, editor);

    editor.close(); // Flush and close

    capture = new PcapFileCapture(file, mode, filter);

    if (logger.isDebugEnabled()) {
      logger.debug(file.getName() + ", mode=" + mode + ", order=" + order
View Full Code Here

Examples of com.slytechs.capture.file.editor.FileEditor

    /*
     * Open up in READONLY MODE since file is empty anyway, nothing to override,
     * we will append memory cache based segments and flush them out.
     */
    final FileEditor editor = new FileEditorImpl(file, FileMode.ReadWrite,
        headerReader, ByteOrder.BIG_ENDIAN, filter,
        (RawIteratorBuilder) capture);

    SnoopBlockRecordImpl.createBlock(capture, editor);

    editor.close(); // Flush and close

    capture = new SnoopFileCapture(file, mode, null);

    return capture;
  }
View Full Code Here

Examples of org.dbwiki.web.ui.printer.FileEditor

                RequestParameter.ParameterURL));
      } else if (request.type().isStyleSheet()) { // Editing the
                            // stylesheet
        contentGenerator.put(
            DatabaseWikiContentGenerator.ContentContent,
            new FileEditor(request, "Edit style sheet"));
      } else if (request.type().isTemplate()) { // Editing the template
        contentGenerator.put(
            DatabaseWikiContentGenerator.ContentContent,
            new FileEditor(request, "Edit template"));
      } else if (request.type().isURLDecoding()) { // Editing the URL
                              // decoding rules
        contentGenerator.put(
            DatabaseWikiContentGenerator.ContentContent,
            new FileEditor(request, "Edit URL decoding rules"));
      } else if (request.type().isSettings()) { // The list of prior
                            // combinations of
                            // config files, can be
                            // used to revert.
        contentGenerator.put(
View Full Code Here

Examples of org.dbwiki.web.ui.printer.FileEditor

    } else if (request.type().isLayout()) {
      contentGenerator.put(DatabaseWikiContentGenerator.ContentContent,
          new LayoutEditor(request));
    } else if (request.type().isStyleSheet()) {
      contentGenerator.put(DatabaseWikiContentGenerator.ContentContent,
          new FileEditor(request, "Edit style sheet"));
    } else if (request.type().isTemplate()) {
      contentGenerator.put(DatabaseWikiContentGenerator.ContentContent,
          new FileEditor(request, "Edit template"));
    } else if (request.type().isURLDecoding()) {
      contentGenerator.put(DatabaseWikiContentGenerator.ContentContent,
          new FileEditor(request, "Edit URL decoding rules"));
    } else if (request.type().isSettings()) {
      contentGenerator.put(DatabaseWikiContentGenerator.ContentContent,
          new SettingsListingPrinter(request));
    } else if (request.type().isPageHistory()) {
      contentGenerator.put(DatabaseWikiContentGenerator.ContentMenu,
View Full Code Here

Examples of org.springframework.beans.propertyeditors.FileEditor

   */
  public void registerCustomEditors(PropertyEditorRegistry registry) {
    ResourceEditor baseEditor = new ResourceEditor(this.resourceLoader);
    registry.registerCustomEditor(Resource.class, baseEditor);
    registry.registerCustomEditor(InputStream.class, new InputStreamEditor(baseEditor));
    registry.registerCustomEditor(File.class, new FileEditor(baseEditor));
    registry.registerCustomEditor(URL.class, new URLEditor(baseEditor));

    ClassLoader classLoader = this.resourceLoader.getClassLoader();
    registry.registerCustomEditor(Class.class, new ClassEditor(classLoader));
    registry.registerCustomEditor(URI.class, new URIEditor(classLoader));
View Full Code Here

Examples of org.springframework.beans.propertyeditors.FileEditor

    ResourceEditor baseEditor = new ResourceEditor(this.resourceLoader, this.propertyResolver);
    doRegisterEditor(registry, Resource.class, baseEditor);
    doRegisterEditor(registry, ContextResource.class, baseEditor);
    doRegisterEditor(registry, InputStream.class, new InputStreamEditor(baseEditor));
    doRegisterEditor(registry, InputSource.class, new InputSourceEditor(baseEditor));
    doRegisterEditor(registry, File.class, new FileEditor(baseEditor));
    doRegisterEditor(registry, URL.class, new URLEditor(baseEditor));

    ClassLoader classLoader = this.resourceLoader.getClassLoader();
    doRegisterEditor(registry, URI.class, new URIEditor(classLoader));
    doRegisterEditor(registry, Class.class, new ClassEditor(classLoader));
View Full Code Here

Examples of org.springframework.beans.propertyeditors.FileEditor

    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Charset.class, new CharsetEditor());
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(Currency.class, new CurrencyEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(InputSource.class, new InputSourceEditor());
    this.defaultEditors.put(Locale.class, new LocaleEditor());
    this.defaultEditors.put(Pattern.class, new PatternEditor());
    this.defaultEditors.put(Properties.class, new PropertiesEditor());
View Full Code Here

Examples of org.springframework.beans.propertyeditors.FileEditor

    // Simple editors, without parameterization capabilities.
    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(Locale.class, new LocaleEditor());
    this.defaultEditors.put(Pattern.class, new PatternEditor());
    this.defaultEditors.put(Properties.class, new PropertiesEditor());
    this.defaultEditors.put(Resource[].class, new ResourceArrayPropertyEditor());
View Full Code Here

Examples of org.springframework.beans.propertyeditors.FileEditor

    ResourceEditor baseEditor = new ResourceEditor(this.resourceLoader, this.propertyResolver);
    doRegisterEditor(registry, Resource.class, baseEditor);
    doRegisterEditor(registry, ContextResource.class, baseEditor);
    doRegisterEditor(registry, InputStream.class, new InputStreamEditor(baseEditor));
    doRegisterEditor(registry, InputSource.class, new InputSourceEditor(baseEditor));
    doRegisterEditor(registry, File.class, new FileEditor(baseEditor));
    doRegisterEditor(registry, URL.class, new URLEditor(baseEditor));

    ClassLoader classLoader = this.resourceLoader.getClassLoader();
    doRegisterEditor(registry, URI.class, new URIEditor(classLoader));
    doRegisterEditor(registry, Class.class, new ClassEditor(classLoader));
View Full Code Here

Examples of org.springframework.beans.propertyeditors.FileEditor

    // The JDK does not contain a default editor for any of these target types.
    this.defaultEditors.put(Charset.class, new CharsetEditor());
    this.defaultEditors.put(Class.class, new ClassEditor());
    this.defaultEditors.put(Class[].class, new ClassArrayEditor());
    this.defaultEditors.put(Currency.class, new CurrencyEditor());
    this.defaultEditors.put(File.class, new FileEditor());
    this.defaultEditors.put(InputStream.class, new InputStreamEditor());
    this.defaultEditors.put(Locale.class, new LocaleEditor());
    this.defaultEditors.put(Pattern.class, new PatternEditor());
    this.defaultEditors.put(Properties.class, new PropertiesEditor());
    this.defaultEditors.put(Resource[].class, new ResourceArrayPropertyEditor());
View Full Code Here
TOP
Copyright © 2018 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.