Class AbstractResourceWriter<T>

java.lang.Object
org.episteme.core.io.AbstractResourceWriter<T>
All Implemented Interfaces:
ResourceIO<T>, ResourceWriter<T>
Direct Known Subclasses:
AbstractLegalDocumentWriter, FASTAWriter, NativeFITSWriter, NativeHDF5TensorWriter, NativeHDF5Writer, NeuralModelWriter, OEISWriter, PDBWriter, VTKWriter

public abstract class AbstractResourceWriter<T> extends Object implements ResourceWriter<T>
Abstract base for resource writers. Provides basic buffering support and I18N metadata.
  • Constructor Details

    • AbstractResourceWriter

      public AbstractResourceWriter()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ResourceIO
      Returns the display name of this resource handler. MUST be implemented with I18N support.
      Specified by:
      getName in interface ResourceIO<T>
      Returns:
      the display name
    • getDescription

      public String getDescription()
      Description copied from interface: ResourceIO
      Returns a short description of this resource handler. MUST be implemented with I18N support.
      Specified by:
      getDescription in interface ResourceIO<T>
      Returns:
      the description
    • getCategory

      public String getCategory()
      Description copied from interface: ResourceIO
      Returns the category for grouping. MUST be implemented with I18N support.
      Specified by:
      getCategory in interface ResourceIO<T>
      Returns:
      the category name
    • getLongDescription

      public String getLongDescription()
      Description copied from interface: ResourceIO
      Returns a long description of this resource handler. MUST be implemented with I18N support.
      Specified by:
      getLongDescription in interface ResourceIO<T>
      Returns:
      the long description
    • createBufferedStream

      protected OutputStream createBufferedStream(OutputStream out)
      Prepares an OutputStream with buffering.