Package com._1c.g5.v8.dt.core.streams
Interface IListInStream
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
TextListInStream
public interface IListInStream extends AutoCloseable
interface of reader structured stream
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IListInStream.ServiceByte
-
Field Summary
Fields Modifier and Type Field Description static char[]
separators
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
close streamvoid
get(IFile file)
write from sream to filevoid
get(IFileEx file)
write from stream to filevoid
get(IListStreamObject obj)
read object having special interfaceIListStreamObject
boolean
getBeginOfList()
reading begin of the list from streamBigDecimal
getBigDecimal()
read Numeric valueboolean
getBoolean()
read boolean valuebyte[]
getBytes(int size)
read array of byteschar
getChar()
read char valuechar[]
getChars(int size)
read array of charsboolean
getComma()
double
getDouble()
read double valueboolean
getEndOfList()
reading end of the list from streamfloat
getFloat()
read float valueint
getInt()
read int valuelong
getLong()
read long valueString
getString()
read stringUUID
getUUID()
read UUID valueboolean
isBeginOfList()
detect begin of the list from stream (begin of the list isn't read)boolean
isComma()
boolean
isEndOfList()
detect end of the list from stream (end of the list isn't read)void
skipAllChar(char ch)
skip allchar == ch
from the streamvoid
skipAllSpaces()
skip all spaces from the streamString
skipAndSaveListContent(boolean onlyText)
skip and save non-read items of listvoid
skipListContent()
skip non-read items of list
-
-
-
Method Detail
-
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
String skipAndSaveListContent(boolean onlyText)
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
void get(IListStreamObject obj)
read object having special interfaceIListStreamObject
- Parameters:
value
-
-
get
void get(IFile file)
write from sream to file- Parameters:
file
-
-
get
void get(IFileEx file)
write from stream to file- Parameters:
file
-
-
close
void close()
close stream- Specified by:
close
in interfaceAutoCloseable
-
-