Class PlainTextTemplate

java.lang.Object
net.sf.basedb.clients.web.plugins.PlainTextTemplate
All Implemented Interfaces:
Closeable, AutoCloseable, ExportTemplate

public class PlainTextTemplate
extends Object
implements ExportTemplate
A plain text template that exports data in tab-delimited format.
Version:
2.2
Author:
nicklas
Last modified
$Date: 2019-03-12 10:56:19 +0100 (tis, 12 mars 2019) $
  • Field Details

    • exportStream

      private final Writer exportStream
    • properties

      private final List<ExportedProperty> properties
    • colNum

      private int colNum
    • collectionSeparator

      private String collectionSeparator
    • UNSAFE

      private static final Pattern UNSAFE
  • Constructor Details

    • PlainTextTemplate

      public PlainTextTemplate​(Writer exportStream, List<ExportedProperty> properties, Item itemType)
      Create a new template.
      Parameters:
      exportStream - The stream to write to
      properties - All exported properties
      itemType - The type of items we are exporting
    • PlainTextTemplate

      public PlainTextTemplate​(Writer exportStream, List<ExportedProperty> properties, Item itemType, String collectionSeparator)
      Create a new template.
      Parameters:
      exportStream - The stream to write to
      properties - All exported properties
      itemType - The type of items we are exporting
      collectionSeparator - The character string that is used as separator when joining a collection of values into a single value for an exported column (default is ',').
      Since:
      3.8
  • Method Details