Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jcontrol.io
Interface File

All Known Implementing Classes:
  Resource

    public interface File

Provides a set of methods for file-system access.

Author:
  boehme
Available on JControl Devices:

  all

Method Summary
`String` | `getName()` Returns the name of this `File`.
`int` | `length()` Returns the length of this `File`.
`int` | `seek(int offset, boolean absolute)` Sets the read-pointer to a new position.

Method Detail

### getName

    String getName()

  Returns the name of this `File`.

  Returns:
    the name

### length

    int length()

  Returns the length of this `File`.

  Returns:
    the length

### seek

    int seek(int offset,
             boolean absolute)
             throws IOException

  Sets the read-pointer to a new position.

  Parameters:
    `offset` - the new position
    `absolute` - if set `offset` is relative to begin of `FILE` otherwise relative to the current read-pointer position
  Returns:
    the new (absolute) read-pointer
  Throws:
    `IOException` - if the new position is out of range

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD