List of usage examples for java.io Closeable interface-usage
From source file org.apache.jackrabbit.oak.plugins.tika.CSVFileBinaryResourceProvider.java
class CSVFileBinaryResourceProvider implements BinaryResourceProvider, Closeable { private static final String BLOB_ID = "blobId"; private static final String LENGTH = "length"; static final CSVFormat FORMAT = CSVFormat.DEFAULT.withCommentMarker('#') .withHeader(BLOB_ID, LENGTH, JCR_MIMETYPE, JCR_ENCODING, JCR_PATH).withNullString("") //Empty string are considered as null .withIgnoreSurroundingSpaces().withSkipHeaderRecord();
From source file org.apache.sqoop.lib.LargeObjectLoader.java
/**
* Contains a set of methods which can read db columns from a ResultSet into
* Java types, and do serialization of these types to/from DataInput/DataOutput
* for use with Hadoop's Writable implementation. This supports null values
* for all types.
*
From source file org.apache.cassandra.io.CompactionIterator.java
public class CompactionIterator extends ReducingIterator<SSTableIdentityIterator, AbstractCompactedRow> implements Closeable, CompactionInfo.Holder { private static Logger logger = LoggerFactory.getLogger(CompactionIterator.class); public static final int FILE_BUFFER_SIZE = 1024 * 1024;
From source file org.apache.jackrabbit.oak.fixture.BlobStoreFixture.java
public abstract class BlobStoreFixture implements Closeable { private final String name; protected final String unique; public BlobStoreFixture(String name) { this.name = name;
From source file org.apache.solr.util.RestTestHarness.java
* Validates an XML "query" response against an array of XPath test strings
*
* @param request the Query to process
* @return null if all good, otherwise the first test that fails.
* @exception Exception any exception in the response.
* @exception java.io.IOException if there is a problem writing the XML
From source file com.esri.geoportal.commons.ags.client.AgsClient.java
* ArcGIS Server client. */ public class AgsClient implements Closeable { private final URL rootUrl; private final CloseableHttpClient httpClient;
From source file com.qwazr.library.freemarker.FreeMarkerTool.java
public class FreeMarkerTool extends AbstractLibrary implements Closeable { @JsonProperty("output_encoding") public final String outputEncoding; @JsonProperty("default_encoding")
From source file org.largecollections.CacheSetWithUnqToString.java
public class CacheSetWithUnqToString<K> implements Set<K>, Closeable, IDb { public static final long serialVersionUID = 10l; private final static Random rnd = new Random(); protected String folder = Constants.DEFAULT_FOLDER; protected int cacheSize = Constants.DEFAULT_CACHE_SIZE;
From source file org.largecollections.CacheSetWithUnqHashCode.java
public class CacheSetWithUnqHashCode<K> implements Set<K>, Closeable, IDb { public static final long serialVersionUID = 10l; private final static Random rnd = new Random(); protected String folder = Constants.DEFAULT_FOLDER; protected int cacheSize = Constants.DEFAULT_CACHE_SIZE;
From source file org.xwiki.filter.xar.internal.output.XARWikiWriter.java
/** * @version $Id: 3ade352c889c04e949c1a67d2b2fa3cc7e790833 $ * @since 6.2M1 */ public class XARWikiWriter implements Closeable { private final String name;