Class FileInOutBinFile

  • All Implemented Interfaces:
    IFile, IFileEx

    public class FileInOutBinFile
    extends Object
    implements IFileEx
    implements of IFileEx for read and write bynary data as strings of base64
    • Constructor Detail

      • FileInOutBinFile

        public FileInOutBinFile()
    • Method Detail

      • finalRelease

        public void finalRelease()
      • url

        public String url()
        Description copied from interface: IFile
        file's url - may be empty for non-file based IFile implementations.
        Specified by:
        url in interface IFile
        Returns:
        - url where the file object came from.
      • read

        public int read​(byte[] buffer,
                        int size)
        Description copied from interface: IFile
        reads from the file into a buffer.
        Specified by:
        read in interface IFile
        Parameters:
        buffer - - pointer to a buffer
        size - - requested number of characters to read
        Returns:
        - the actual number of characters read
      • write

        public void write​(byte[] buffer,
                          int size)
        Description copied from interface: IFile
        writes into the file from a buffer
        Specified by:
        write in interface IFile
        Parameters:
        buffer - - pointer to a buffer
        size - - requested number of characters to write
      • seek

        public long seek​(long pos,
                         IFile.SeekOrigin origin)
        Description copied from interface: IFileEx
        sets/returns the file position
        Specified by:
        seek in interface IFileEx
        Parameters:
        pos - - seek offset
        origin - - offset's origin - can be one of SeekOrigin enumeration values
        Returns:
        the new file position
      • setEOF

        public long setEOF()
        Description copied from interface: IFileEx
        truncates/expands file up to the current file position
        Specified by:
        setEOF in interface IFileEx
        Returns:
        - the current file position