Interface IFile

All Known Subinterfaces:
IFileEx
All Known Implementing Classes:
FileInOutBinFile, TestTextListOutStream.TestIFile

public interface IFile
interface of File for ListInStream and ListOutStream
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    read(byte[] buffer, int size)
    reads from the file into a buffer.
    url()
    file's url - may be empty for non-file based IFile implementations.
    void
    write(byte[] buffer, int size)
    writes into the file from a buffer
  • Method Details

    • url

      String url()
      file's url - may be empty for non-file based IFile implementations.
      Returns:
      - url where the file object came from.
    • read

      int read(byte[] buffer, int size)
      reads from the file into a buffer.
      Parameters:
      buffer - - pointer to a buffer
      size - - requested number of characters to read
      Returns:
      - the actual number of characters read
    • write

      void write(byte[] buffer, int size)
      writes into the file from a buffer
      Parameters:
      buffer - - pointer to a buffer
      size - - requested number of characters to write