BinDrvWriter
- java.lang.Object
-  
  - com.dashoptimization.BinDrvWriter
 
-  
   
 
 public class BinDrvWriter extends java.lang.ObjectA class to generate Mosel's 'bin' data
-  
    
   -  
        Field SummaryModifier and Type Field and Description static intCTRL_CLOSELSTstatic intCTRL_CLOSENDXstatic intCTRL_LABELstatic intCTRL_LASTstatic intCTRL_OPENLSTstatic intCTRL_OPENNDXstatic intCTRL_SKIPstatic intTYP_BOOLstatic intTYP_CTRLstatic intTYP_INTstatic intTYP_INTMstatic intTYP_INTPstatic intTYP_REALstatic intTYP_STRstatic intTYP_VOID
 -  
        Constructor SummaryConstructor 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 SummaryModifier and Type Method and Description BinDrvWriterput(boolean b)Write a Boolean to the output stream.static voidput(java.nio.ByteBuffer bb, boolean b)Append a Boolean to the given buffer.static voidput(java.nio.ByteBuffer bb, double r)Append a real (double) to the given buffer.static voidput(java.nio.ByteBuffer bb, int i)Append an integer to the given buffer.static voidput(java.nio.ByteBuffer bb, long i)Append a long integer to the given buffer.static voidput(java.nio.ByteBuffer bb, java.lang.String s)Append a text string to the given buffer using the UTF-8 encoding.static voidput(java.nio.ByteBuffer bb, java.lang.String s, java.lang.String enc)Append a text string to the given buffer.BinDrvWriterput(double r)Write a real (double) to the output stream.BinDrvWriterput(int i)Write an integer to the output stream.BinDrvWriterput(long i)Write a long integer to the output stream.BinDrvWriterput(java.lang.String s)Write a text string to the output stream.static voidputControl(java.nio.ByteBuffer bb, int c)Append a control code to the given buffer.BinDrvWriterputControl(int c)Write a control code to the output stream.
 
-  
        
-  
    
   -  
        Field Detail-  TYP_INTPpublic static final int TYP_INTP - See Also:
- Constant Field Values
 
 -  TYP_INTMpublic static final int TYP_INTM - See Also:
- Constant Field Values
 
 -  TYP_INTpublic static final int TYP_INT - See Also:
- Constant Field Values
 
 -  TYP_VOIDpublic static final int TYP_VOID - See Also:
- Constant Field Values
 
 -  TYP_REALpublic static final int TYP_REAL - See Also:
- Constant Field Values
 
 -  TYP_STRpublic static final int TYP_STR - See Also:
- Constant Field Values
 
 -  TYP_BOOLpublic static final int TYP_BOOL - See Also:
- Constant Field Values
 
 -  TYP_CTRLpublic static final int TYP_CTRL - See Also:
- Constant Field Values
 
 -  CTRL_SKIPpublic static final int CTRL_SKIP - See Also:
- Constant Field Values
 
 -  CTRL_LABELpublic static final int CTRL_LABEL - See Also:
- Constant Field Values
 
 -  CTRL_OPENLSTpublic static final int CTRL_OPENLST - See Also:
- Constant Field Values
 
 -  CTRL_CLOSELSTpublic static final int CTRL_CLOSELST - See Also:
- Constant Field Values
 
 -  CTRL_OPENNDXpublic static final int CTRL_OPENNDX - See Also:
- Constant Field Values
 
 -  CTRL_CLOSENDXpublic static final int CTRL_CLOSENDX - See Also:
- Constant Field Values
 
 -  CTRL_LASTpublic static final int CTRL_LAST - See Also:
- Constant Field Values
 
 
-  
 -  
        Constructor Detail-  BinDrvWriterpublic 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
 
 -  BinDrvWriterpublic 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-  putpublic 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
 
 -  putpublic 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
 
 -  putpublic 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
 
 -  putpublic 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
 
 -  putpublic 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
 
 -  putControlpublic 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
 
 -  putpublic static void put(java.nio.ByteBuffer bb, int i)Append an integer to the given buffer.- Parameters:
- 
         bb- destination buffer
- 
         i- value to write
 
 -  putpublic 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
 
 -  putpublic 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
 
 -  putpublic static void put(java.nio.ByteBuffer bb, boolean b)Append a Boolean to the given buffer.- Parameters:
- 
         bb- destination buffer
- 
         b- value to write
 
 -  putpublic 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
 
 -  putpublic 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
 
 -  putControlpublic 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
 
 
-  
 
-  
        
 
