Class TextListOutStream
java.lang.Object
com._1c.g5.v8.dt.core.streams.impl.TextListOutStream
- All Implemented Interfaces:
IListOutStream,AutoCloseable
implementation of writer structured stream
IListOutStream
all data are written as sequence of chars-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close streamvoidput(boolean value) Boolean is written as a character. true == '1', false == '0'voidput(byte[] value, int size) valueencode to Base64 and wrapped by quotesvoidput(char value) write charvoidput(char[] value, int size) valueWrapped by quotesvoidput(double value) write double valuevoidput(float value) write float valuevoidput(int value) write int valuevoidput(long value) write long valuevoidfileencode to Base64 and wrapped by quotesvoidfileencode to Base64 and wrapped by quotesvoidput(IListStreamObject obj) write object having special interfaceIListStreamObjectvoidvalueWrapped by quotesvoidWrite string.voidput(BigDecimal value) valueis written asdoublevoidUUID is written as a String.voidwrite to begin listvoidputComma()write comma to the streamvoidwrite to end listvoidputSpace()write one space to the stream
-
Constructor Details
-
TextListOutStream
-
-
Method Details
-
getWriter
-
putSpace
public void putSpace()Description copied from interface:IListOutStreamwrite one space to the stream- Specified by:
putSpacein interfaceIListOutStream
-
putComma
public void putComma()Description copied from interface:IListOutStreamwrite comma to the stream- Specified by:
putCommain interfaceIListOutStream
-
putBeginOfList
public void putBeginOfList()Description copied from interface:IListOutStreamwrite to begin list- Specified by:
putBeginOfListin interfaceIListOutStream
-
putEndOfList
public void putEndOfList()Description copied from interface:IListOutStreamwrite to end list- Specified by:
putEndOfListin interfaceIListOutStream
-
put
public void put(boolean value) Boolean is written as a character. true == '1', false == '0'- Specified by:
putin interfaceIListOutStream
-
put
public void put(int value) Description copied from interface:IListOutStreamwrite int value- Specified by:
putin interfaceIListOutStream
-
put
public void put(long value) Description copied from interface:IListOutStreamwrite long value- Specified by:
putin interfaceIListOutStream
-
put
public void put(float value) Description copied from interface:IListOutStreamwrite float value- Specified by:
putin interfaceIListOutStream
-
put
public void put(double value) Description copied from interface:IListOutStreamwrite double value- Specified by:
putin interfaceIListOutStream
-
put
public void put(char value) Description copied from interface:IListOutStreamwrite char- Specified by:
putin interfaceIListOutStream
-
put
UUID is written as a String. Wrapped by quotes- Specified by:
putin interfaceIListOutStream- Parameters:
value-UUID
-
put
public void put(char[] value, int size) valueWrapped by quotes- Specified by:
putin interfaceIListOutStreamsize- number of chars for writing
-
put
public void put(byte[] value, int size) valueencode to Base64 and wrapped by quotes- Specified by:
putin interfaceIListOutStreamsize- number of bytes for writing
-
put
valueWrapped by quotes- Specified by:
putin interfaceIListOutStream
-
put
Description copied from interface:IListOutStreamWrite string.- Specified by:
putin interfaceIListOutStreamwrapInQuotes- whether need to wrap value in quotes
-
put
valueis written asdouble- Specified by:
putin interfaceIListOutStream- Parameters:
value-BigDecimal
-
put
Description copied from interface:IListOutStreamwrite object having special interfaceIListStreamObject- Specified by:
putin interfaceIListOutStream- Parameters:
obj-IListStreamObject
-
put
fileencode to Base64 and wrapped by quotes- Specified by:
putin interfaceIListOutStream
-
put
fileencode to Base64 and wrapped by quotes- Specified by:
putin interfaceIListOutStream- Parameters:
file-FileInEx
-
close
public void close()close stream- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIListOutStream
-