Interface IListInStream

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
TextListInStream

public interface IListInStream extends AutoCloseable
interface of reader structured stream
  • 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 all char == 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 interface IListStreamObject
      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 interface AutoCloseable