Package csv

Class MimeTypeInfo

java.lang.Object
csv.MimeTypeInfo

public class MimeTypeInfo
extends java.lang.Object
Contains information about what reader and writer classes are responsible for a specific MIME type.
Author:
RalphSchuster
  • Field Details

  • Constructor Details

    • MimeTypeInfo

      public MimeTypeInfo​(java.lang.String mimeType, java.lang.Class<? extends AbstractStreamTableReader> readerClass, java.lang.Class<? extends AbstractStreamTableWriter> writerClass)
      Constructor.
      Parameters:
      mimeType - MIME type being registered
      readerClass - class responsible for reading such files
      writerClass - class responsible for writing such files
    • MimeTypeInfo

      public MimeTypeInfo​(java.lang.String[] mimeTypes, java.lang.Class<? extends AbstractStreamTableReader> readerClass, java.lang.Class<? extends AbstractStreamTableWriter> writerClass)
      Constructor.
      Parameters:
      mimeTypes - multiple MIME types being registered
      readerClass - class responsible for reading such files
      writerClass - class responsible for writing such files
  • Method Details

    • getMimeTypes

      public java.lang.String[] getMimeTypes()
      Returns the MIME types that this object provides information for.
      Returns:
      the mimeTypes
    • getReaderClass

      public java.lang.Class<? extends AbstractStreamTableReader> getReaderClass()
      Returns the responsible reader class.
      Returns:
      the readerClass
    • getWriterClass

      public java.lang.Class<? extends AbstractStreamTableWriter> getWriterClass()
      Returns the responsible writer class.
      Returns:
      the writerClass