Class TextListInStream

    • Method Detail

      • skipAllChar

        public void skipAllChar​(char ch)
        Description copied from interface: IListInStream
        skip all char == ch from the stream
        Specified by:
        skipAllChar in interface IListInStream
      • getComma

        public boolean getComma()
        Specified by:
        getComma in interface IListInStream
        Returns:
        true, if comma was gotten
      • isComma

        public boolean isComma()
        Specified by:
        isComma in interface IListInStream
        Returns:
        true, if comma was detect (comma isn't read)
      • getBeginOfList

        public boolean getBeginOfList()
        Description copied from interface: IListInStream
        reading begin of the list from stream
        Specified by:
        getBeginOfList in interface IListInStream
        Returns:
        true, if begin of the list is read
      • isBeginOfList

        public boolean isBeginOfList()
        Description copied from interface: IListInStream
        detect begin of the list from stream (begin of the list isn't read)
        Specified by:
        isBeginOfList in interface IListInStream
        Returns:
        true, if detected
      • getEndOfList

        public boolean getEndOfList()
        Description copied from interface: IListInStream
        reading end of the list from stream
        Specified by:
        getEndOfList in interface IListInStream
        Returns:
        true, if end of the list is read
      • isEndOfList

        public boolean isEndOfList()
        Description copied from interface: IListInStream
        detect end of the list from stream (end of the list isn't read)
        Specified by:
        isEndOfList in interface IListInStream
        Returns:
        true, if detected
      • skipAndSaveListContent

        public String skipAndSaveListContent​(boolean onlyText)
        Description copied from interface: IListInStream
        skip and save non-read items of list
        Specified by:
        skipAndSaveListContent in interface IListInStream
        Parameters:
        onlyText - whether need to save onlt text without innter bracers and line endings
        Returns:
        saved items
      • getBoolean

        public boolean getBoolean()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getBoolean in interface IListInStream
        Returns:
        boolean
      • getInt

        public int getInt()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getInt in interface IListInStream
        Returns:
        int
      • getLong

        public long getLong()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getLong in interface IListInStream
        Returns:
        long
      • getFloat

        public float getFloat()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getFloat in interface IListInStream
        Returns:
        float
      • getDouble

        public double getDouble()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getDouble in interface IListInStream
        Returns:
        double
      • getChar

        public char getChar()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getChar in interface IListInStream
        Returns:
        char
      • getUUID

        public UUID getUUID()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getUUID in interface IListInStream
        Returns:
        UUID
      • getChars

        public char[] getChars​(int size)
        skip all ' ', '\n' and ',' then read
        Specified by:
        getChars in interface IListInStream
        Parameters:
        size - - number of chars for reading
        Returns:
        char[]
      • getBytes

        public byte[] getBytes​(int size)
        skip all ' ', '\n' and ',' then read
        Specified by:
        getBytes in interface IListInStream
        Parameters:
        size - - number of bytes for reading
        Returns:
        byte[]
      • getString

        public String getString()
        skip all ' ', '\n' and ',' then read
        Specified by:
        getString in interface IListInStream
        Returns:
        String
      • get

        public void get​(IFile file)
        skip all ' ', '\n' and ',' then read. Decode from base64 then write to file
        Specified by:
        get in interface IListInStream
      • get

        public void get​(IFileEx file)
        similar as "get(OutputStream file)"
        Specified by:
        get in interface IListInStream