Examples of AsciiBytes


Examples of org.springframework.boot.loader.util.AsciiBytes

  public JarEntryData getJarEntryData(String name) {
    if (name == null) {
      return null;
    }
    return getJarEntryData(new AsciiBytes(name));
  }
View Full Code Here

Examples of org.springframework.boot.loader.util.AsciiBytes

    return createJarFileFromFileEntry(sourceEntry);
  }

  private JarFile createJarFileFromDirectoryEntry(JarEntryData sourceEntry)
      throws IOException {
    final AsciiBytes sourceName = sourceEntry.getName();
    JarEntryFilter filter = new JarEntryFilter() {
      @Override
      public AsciiBytes apply(AsciiBytes name, JarEntryData entryData) {
        if (name.startsWith(sourceName) && !name.equals(sourceName)) {
          return name.substring(sourceName.length());
        }
        return null;
      }
    };
    return new JarFile(this.rootFile, this.pathFromRoot + "!/"
        + sourceEntry.getName().substring(0, sourceName.length() - 1), this.data,
        this.entries, filter);
  }
View Full Code Here

Examples of org.springframework.boot.loader.util.AsciiBytes

    private final AsciiBytes prefix;

    private final ArchiveEntryFilter filter = new ArchiveEntryFilter();

    private PrefixMatchingArchiveFilter(String prefix) {
      this.prefix = new AsciiBytes(prefix);
    }
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.