Package com._1c.g5.v8.dt.core.streams
Interface IListInStream
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
TextListInStream
interface of reader structured stream
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
close streamvoid
write from sream to filevoid
write from stream to filevoid
get
(IListStreamObject obj) read object having special interfaceIListStreamObject
boolean
reading begin of the list from streamread Numeric valueboolean
read boolean valuebyte[]
getBytes
(int size) read array of byteschar
getChar()
read char valuechar[]
getChars
(int size) read array of charsboolean
getComma()
double
read double valueboolean
reading end of the list from streamfloat
getFloat()
read float valueint
getInt()
read int valuelong
getLong()
read long valueread stringgetUUID()
read UUID valueboolean
detect begin of the list from stream (begin of the list isn't read)boolean
isComma()
boolean
detect end of the list from stream (end of the list isn't read)void
skipAllChar
(char ch) skip allchar == ch
from the streamvoid
skip all spaces from the streamskipAndSaveListContent
(boolean onlyText) skip and save non-read items of listvoid
skip non-read items of list
-
Field Details
-
separators
static final char[] separators
-
-
Method Details
-
skipAllSpaces
void skipAllSpaces()skip all spaces from the stream- Throws:
IOException
-
skipAllChar
void skipAllChar(char ch) skip allchar == ch
from the stream- Throws:
IOException
-
isComma
boolean isComma()- Returns:
- true, if comma was detect (comma isn't read)
-
getComma
boolean getComma()- Returns:
- true, if comma was gotten
-
isBeginOfList
boolean isBeginOfList()detect begin of the list from stream (begin of the list isn't read)- Returns:
- true, if detected
-
getBeginOfList
boolean getBeginOfList()reading begin of the list from stream- Returns:
- true, if begin of the list is read
-
isEndOfList
boolean isEndOfList()detect end of the list from stream (end of the list isn't read)- Returns:
- true, if detected
-
getEndOfList
boolean getEndOfList()reading end of the list from stream- Returns:
- true, if end of the list is read
-
skipListContent
void skipListContent()skip non-read items of list -
skipAndSaveListContent
skip and save non-read items of list- Parameters:
onlyText
- whether need to save onlt text without innter bracers and line endings- Returns:
- saved items
-
getBoolean
boolean getBoolean()read boolean value- Returns:
- boolean
-
getInt
int getInt()read int value- Returns:
- int
-
getLong
long getLong()read long value- Returns:
- long
-
getFloat
float getFloat()read float value- Returns:
- float
-
getDouble
double getDouble()read double value- Returns:
- double
-
getChar
char getChar()read char value- Returns:
- char
-
getUUID
UUID getUUID()read UUID value- Returns:
- UUID
-
getChars
char[] getChars(int size) read array of chars- Parameters:
size
- - number of chars for reading- Returns:
- char[]
-
getBytes
byte[] getBytes(int size) read array of bytes- Parameters:
size
- - number of bytes for reading- Returns:
- byte[]
-
getString
String getString()read string- Returns:
- String
-
getBigDecimal
BigDecimal getBigDecimal()read Numeric value- Returns:
- BigDecimal
-
get
read object having special interfaceIListStreamObject
- Parameters:
value
-
-
get
write from sream to file- Parameters:
file
-
-
get
write from stream to file- Parameters:
file
-
-
close
void close()close stream- Specified by:
close
in interfaceAutoCloseable
-