Initializing help system before first use

BinDrvWriter

  • java.lang.Object
    • com.dashoptimization.BinDrvWriter


  • public class BinDrvWriter
    extends java.lang.Object
    A class to generate Mosel's 'bin' data
    • Constructor Summary

      Constructor and Description
      BinDrvWriter(java.io.OutputStream outf)
      Create a 'BinDrvWriter' from an OutputStream setting UTF-8 as the encoding.
      BinDrvWriter(java.io.OutputStream outf, java.lang.String enc)
      Create a 'BinDrvWriter' from an OutputStream.
    • Method Summary

      Modifier and Type Method and Description
      BinDrvWriter put(boolean b)
      Write a Boolean to the output stream.
      static void put(java.nio.ByteBuffer bb, boolean b)
      Append a Boolean to the given buffer.
      static void put(java.nio.ByteBuffer bb, double r)
      Append a real (double) to the given buffer.
      static void put(java.nio.ByteBuffer bb, int i)
      Append an integer to the given buffer.
      static void put(java.nio.ByteBuffer bb, long i)
      Append a long integer to the given buffer.
      static void put(java.nio.ByteBuffer bb, java.lang.String s)
      Append a text string to the given buffer using the UTF-8 encoding.
      static void put(java.nio.ByteBuffer bb, java.lang.String s, java.lang.String enc)
      Append a text string to the given buffer.
      BinDrvWriter put(double r)
      Write a real (double) to the output stream.
      BinDrvWriter put(int i)
      Write an integer to the output stream.
      BinDrvWriter put(long i)
      Write a long integer to the output stream.
      BinDrvWriter put(java.lang.String s)
      Write a text string to the output stream.
      static void putControl(java.nio.ByteBuffer bb, int c)
      Append a control code to the given buffer.
      BinDrvWriter putControl(int c)
      Write a control code to the output stream.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinDrvWriter

        public BinDrvWriter(java.io.OutputStream outf,
                            java.lang.String enc)
        Create a 'BinDrvWriter' from an OutputStream.
        Parameters:
        outf - stream to which data is written
        enc - character encoding
      • BinDrvWriter

        public BinDrvWriter(java.io.OutputStream outf)
        Create a 'BinDrvWriter' from an OutputStream setting UTF-8 as the encoding.
        Parameters:
        outf - stream to which data is written
    • Method Detail

      • put

        public BinDrvWriter put(int i)
                         throws java.io.IOException
        Write an integer to the output stream.
        Parameters:
        i - value to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • put

        public BinDrvWriter put(long i)
                         throws java.io.IOException
        Write a long integer to the output stream.
        Parameters:
        i - value to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • put

        public BinDrvWriter put(double r)
                         throws java.io.IOException
        Write a real (double) to the output stream.
        Parameters:
        r - value to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • put

        public BinDrvWriter put(boolean b)
                         throws java.io.IOException
        Write a Boolean to the output stream.
        Parameters:
        b - value to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • put

        public BinDrvWriter put(java.lang.String s)
                         throws java.io.IOException
        Write a text string to the output stream.
        Parameters:
        s - value to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • putControl

        public BinDrvWriter putControl(int c)
                                throws java.io.IOException
        Write a control code to the output stream.
        Parameters:
        c - value to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • put

        public static void put(java.nio.ByteBuffer bb,
                               int i)
        Append an integer to the given buffer.
        Parameters:
        bb - destination buffer
        i - value to write
      • put

        public static void put(java.nio.ByteBuffer bb,
                               long i)
        Append a long integer to the given buffer.
        Parameters:
        bb - destination buffer
        i - value to write
      • put

        public static void put(java.nio.ByteBuffer bb,
                               double r)
        Append a real (double) to the given buffer.
        Parameters:
        bb - destination buffer
        r - value to write
      • put

        public static void put(java.nio.ByteBuffer bb,
                               boolean b)
        Append a Boolean to the given buffer.
        Parameters:
        bb - destination buffer
        b - value to write
      • put

        public static void put(java.nio.ByteBuffer bb,
                               java.lang.String s,
                               java.lang.String enc)
        Append a text string to the given buffer.
        Parameters:
        bb - destination buffer
        s - value to write
        enc - character encoding
      • put

        public static void put(java.nio.ByteBuffer bb,
                               java.lang.String s)
        Append a text string to the given buffer using the UTF-8 encoding.
        Parameters:
        bb - destination buffer
        s - value to write
      • putControl

        public static void putControl(java.nio.ByteBuffer bb,
                                      int c)
        Append a control code to the given buffer.
        Parameters:
        bb - destination buffer
        c - value to write