com.univocity.api.io.WriterProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of univocity-common-api Show documentation
Show all versions of univocity-common-api Show documentation
univocity public API - Common classes and utilites
/*
* Copyright (c) 2013 uniVocity Software Pty Ltd. All rights reserved.
* This file is subject to the terms and conditions defined in file
* 'LICENSE.txt', which is part of this source code package.
*/
package com.univocity.api.io;
import java.io.*;
/**
* Base abstract class to define classes that provide instances of {@link java.io.Writer}.
*
* @author uniVocity Software Pty Ltd - [email protected]
*/
public abstract class WriterProvider implements ResourceProvider {
/**
* Removes any data contained in the resource being written using the instances of {@link java.io.Writer} provided by this class.
*/
public abstract void clearDestination();
/**
* Queries whether or not the resource to be written contains any sort of content.
*
* @return a flag indicating whether or not the underlying resource contains data.
*/
public abstract boolean isEmpty();
}