Class TextListOutStream
- java.lang.Object
-
- com._1c.g5.v8.dt.core.streams.impl.TextListOutStream
-
- All Implemented Interfaces:
IListOutStream
,AutoCloseable
public class TextListOutStream extends Object implements IListOutStream
implementation of writer structured streamIListOutStream
all data are written as sequence of chars
-
-
Constructor Summary
Constructors Constructor Description TextListOutStream(OutputStreamWriter stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
close streamOutputStreamWriter
getWriter()
void
put(boolean value)
Boolean is written as a character.void
put(byte[] value, int size)
value
encode to Base64 and wrapped by quotesvoid
put(char value)
write charvoid
put(char[] value, int size)
value
Wrapped by quotesvoid
put(double value)
write double valuevoid
put(float value)
write float valuevoid
put(int value)
write int valuevoid
put(long value)
write long valuevoid
put(IFile file)
file
encode to Base64 and wrapped by quotesvoid
put(IFileEx file)
file
encode to Base64 and wrapped by quotesvoid
put(IListStreamObject obj)
write object having special interfaceIListStreamObject
void
put(String value)
value
Wrapped by quotesvoid
put(String value, boolean wrapInQuotes)
Write string.void
put(BigDecimal value)
value
is written asdouble
void
put(UUID value)
UUID is written as a String.void
putBeginOfList()
write to begin listvoid
putComma()
write comma to the streamvoid
putEndOfList()
write to end listvoid
putSpace()
write one space to the stream
-
-
-
Constructor Detail
-
TextListOutStream
public TextListOutStream(OutputStreamWriter stream)
-
-
Method Detail
-
getWriter
public OutputStreamWriter getWriter()
-
putSpace
public void putSpace()
Description copied from interface:IListOutStream
write one space to the stream- Specified by:
putSpace
in interfaceIListOutStream
-
putComma
public void putComma()
Description copied from interface:IListOutStream
write comma to the stream- Specified by:
putComma
in interfaceIListOutStream
-
putBeginOfList
public void putBeginOfList()
Description copied from interface:IListOutStream
write to begin list- Specified by:
putBeginOfList
in interfaceIListOutStream
-
putEndOfList
public void putEndOfList()
Description copied from interface:IListOutStream
write to end list- Specified by:
putEndOfList
in interfaceIListOutStream
-
put
public void put(boolean value)
Boolean is written as a character. true == '1', false == '0'- Specified by:
put
in interfaceIListOutStream
-
put
public void put(int value)
Description copied from interface:IListOutStream
write int value- Specified by:
put
in interfaceIListOutStream
-
put
public void put(long value)
Description copied from interface:IListOutStream
write long value- Specified by:
put
in interfaceIListOutStream
-
put
public void put(float value)
Description copied from interface:IListOutStream
write float value- Specified by:
put
in interfaceIListOutStream
-
put
public void put(double value)
Description copied from interface:IListOutStream
write double value- Specified by:
put
in interfaceIListOutStream
-
put
public void put(char value)
Description copied from interface:IListOutStream
write char- Specified by:
put
in interfaceIListOutStream
-
put
public void put(UUID value)
UUID is written as a String. Wrapped by quotes- Specified by:
put
in interfaceIListOutStream
- Parameters:
value
-UUID
-
put
public void put(char[] value, int size)
value
Wrapped by quotes- Specified by:
put
in interfaceIListOutStream
size
- number of chars for writing
-
put
public void put(byte[] value, int size)
value
encode to Base64 and wrapped by quotes- Specified by:
put
in interfaceIListOutStream
size
- number of bytes for writing
-
put
public void put(String value)
value
Wrapped by quotes- Specified by:
put
in interfaceIListOutStream
-
put
public void put(String value, boolean wrapInQuotes)
Description copied from interface:IListOutStream
Write string.- Specified by:
put
in interfaceIListOutStream
wrapInQuotes
- whether need to wrap value in quotes
-
put
public void put(BigDecimal value)
value
is written asdouble
- Specified by:
put
in interfaceIListOutStream
- Parameters:
value
-BigDecimal
-
put
public void put(IListStreamObject obj)
Description copied from interface:IListOutStream
write object having special interfaceIListStreamObject
- Specified by:
put
in interfaceIListOutStream
- Parameters:
obj
-IListStreamObject
-
put
public void put(IFile file)
file
encode to Base64 and wrapped by quotes- Specified by:
put
in interfaceIListOutStream
-
put
public void put(IFileEx file)
file
encode to Base64 and wrapped by quotes- Specified by:
put
in interfaceIListOutStream
- Parameters:
file
-FileInEx
-
close
public void close()
close stream- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIListOutStream
-
-