Package ch.pterrettaz.jmess.core.ReaderHelper

Examples of ch.pterrettaz.jmess.core.ReaderHelper.StreamReader


  @Override
  public Set<Data> extract(final String location, InputStream stream) throws IOException {
    final Set<Data> results = Sets.newHashSet();

    ReaderHelper.readStream(stream, new StreamReader() {
      @Override
      public void read(InputStream stream) throws IOException {
        Properties props = new Properties();
        props.load(stream);
        Enumeration<?> names = props.propertyNames();
View Full Code Here


            zipLocation = potentialFile.getName(); // keep only the filename
        } else {
            zipLocation = location;
        }
        final Set<Data> results = Sets.newHashSet();
        ReaderHelper.readStream(stream, new StreamReader() {
            @Override
            public void read(InputStream stream) throws IOException {
                ZipInputStream zip = new ZipInputStream(stream);
                for (ZipEntry en = null; (en = zip.getNextEntry()) != null;) {
                    if (extractor.canExtract(en.getName())) {
View Full Code Here

TOP

Related Classes of ch.pterrettaz.jmess.core.ReaderHelper.StreamReader

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.