Class CsvDirectSerializer

All Implemented Interfaces:
Closeable, AutoCloseable

public final class CsvDirectSerializer extends StandardSerializer
This class serializes items as CSV.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

  • Method Details

    • startOpen

      protected void startOpen(QNm name)
      Description copied from class: Serializer
      Starts an element.
      Overrides:
      startOpen in class Serializer
      Parameters:
      name - element name
    • finishEmpty

      protected void finishEmpty() throws IOException
      Description copied from class: Serializer
      Closes an empty element.
      Overrides:
      finishEmpty in class Serializer
      Throws:
      IOException - I/O exception
    • text

      protected void text(byte[] value, FTPos ftp) throws IOException
      Description copied from class: Serializer
      Serializes a text.
      Overrides:
      text in class Serializer
      Parameters:
      value - value
      ftp - full-text positions, used for visualization highlighting
      Throws:
      IOException - I/O exception
    • finishClose

      protected void finishClose() throws IOException
      Description copied from class: Serializer
      Closes an element.
      Overrides:
      finishClose in class Serializer
      Throws:
      IOException - I/O exception
    • attribute

      protected void attribute(byte[] name, byte[] value, boolean standalone)
      Description copied from class: Serializer
      Serializes an attribute.
      Overrides:
      attribute in class Serializer
      Parameters:
      name - name
      value - value
      standalone - standalone flag
    • atomic

      protected void atomic(Item value) throws IOException
      Description copied from class: Serializer
      Serializes an atomic value.
      Overrides:
      atomic in class StandardSerializer
      Parameters:
      value - item
      Throws:
      IOException - I/O exception