Class TmxEscapingWriterFactory.EscapeWriter

java.lang.Object
java.io.Writer
org.omegat.util.TmxEscapingWriterFactory.EscapeWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
Enclosing class:
TmxEscapingWriterFactory

public static class TmxEscapingWriterFactory.EscapeWriter extends Writer
  • Constructor Details

    • EscapeWriter

      public EscapeWriter(@NotNull @NotNull Writer delegate)
  • Method Details

    • write

      public void write(@NotNull @org.jetbrains.annotations.NotNull char[] cbuf, int off, int len) throws IOException
      Wrap Writer and escape characters for TEXT output.

      this does not consider it as an attribute value.

      Specified by:
      write in class Writer
      Parameters:
      cbuf - Array of characters
      off - Offset from which to start writing characters
      len - Number of characters to write
      Throws:
      IOException - when underlying writer object raises.
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class Writer
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Writer
      Throws:
      IOException