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.
      BinDrvWriter put(byte[] bs)
      Write a data block to the output stream.
      BinDrvWriter put(byte[] bs, int off, int len)
      Write a data block 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, byte[] bs)
      Append a data block to the given buffer.
      static void put(java.nio.ByteBuffer bb, byte[] bs, int off, int len)
      Append a data block 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
      • put

        public BinDrvWriter put(byte[] bs,
                                int off,
                                int len)
                         throws java.io.IOException
        Write a data block to the output stream.
        Parameters:
        bs - data to write
        off - start offset in the data
        len - number of bytes to write
        Returns:
        the current writer
        Throws:
        java.io.IOException - in case of IO error
      • put

        public BinDrvWriter put(byte[] bs)
                         throws java.io.IOException
        Write a data block to the output stream.
        Parameters:
        bs - data 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
      • put

        public static void put(java.nio.ByteBuffer bb,
                               byte[] bs,
                               int off,
                               int len)
        Append a data block to the given buffer.
        Parameters:
        bb - destination buffer
        bs - data to write
        off - start offset in the data
        len - number of bytes to write
      • put

        public static void put(java.nio.ByteBuffer bb,
                               byte[] bs)
        Append a data block to the given buffer.
        Parameters:
        bb - destination buffer
        bs - data 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

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.