Example usage for org.apache.commons.compress.utils Lists newArrayList

List of usage examples for org.apache.commons.compress.utils Lists newArrayList

Introduction

In this page you can find the example usage for org.apache.commons.compress.utils Lists newArrayList.

Prototype

public static <E> ArrayList<E> newArrayList(final Iterator<? extends E> iterator) 

Source Link

Document

Creates a new ArrayList filled with the contents of the given iterator .

Usage

From source file:org.apache.tika.parser.pkg.TikaArchiveStreamFactory.java

private static ArrayList<ArchiveStreamProvider> findArchiveStreamProviders() {
    return Lists.newArrayList(serviceLoaderIterator());
}

From source file:org.apache.tika.parser.pkg.TikaCompressorStreamFactory.java

private static ArrayList<CompressorStreamProvider> findCompressorStreamProviders() {
    return Lists.newArrayList(serviceLoaderIterator());
}