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

## com.trolltech.qt.core
Class QAbstractFileEngine.Extension

    java.lang.Object
      java.lang.Enum
          com.trolltech.qt.core.QAbstractFileEngine.Extension

All Implemented Interfaces:
  QtEnumerator, java.io.Serializable, java.lang.Comparable

Enclosing class:
  QAbstractFileEngine

    public static final class QAbstractFileEngine.Extension

extends java.lang.Enum
implements QtEnumerator

This enum describes the types of extensions that the file engine can support. Before using these extensions, you must verify that the extension is supported (i.e., call `supportsExtension()`).

See Also:
  Serialized Form

Field Summary
`static QAbstractFileEngine.Extension` | `AtEndExtension` Whether the current file position is at the end of the file or not.
`static QAbstractFileEngine.Extension` | `CustomEnum`
`static QAbstractFileEngine.Extension` | `FastReadLineExtension` Whether the file engine provides a fast implementation for `readLine()` or not.
`static QAbstractFileEngine.Extension` | `MapExtension` Whether the file engine provides the ability to map a file to memory.
`static QAbstractFileEngine.Extension` | `UnMapExtension` Whether the file engine provides the ability to unmap memory that was previously mapped.

Method Summary
`static QAbstractFileEngine.Extension` | `resolve(int value)` Returns the QAbstractFileEngine$Extension constant with the specified `int`.
`int` | `value()` This function should return an integer value for the enum values of the enumeration that implements this interface.
`static QAbstractFileEngine.Extension` | `valueOf(java.lang.String name)`
`static QAbstractFileEngine.Extension[]` | `values()`

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### AtEndExtension

    public static final QAbstractFileEngine.Extension AtEndExtension

  Whether the current file position is at the end of the file or not. This extension allows file engines that implement local buffering to report end-of-file status without having to check the size of the file. It is also useful for sequential files, where the size of the file cannot be used to determine whether or not you have reached the end. This extension returns true if the file is at the end; otherwise it returns false. The input and output arguments to extension() are ignored.

### FastReadLineExtension

    public static final QAbstractFileEngine.Extension FastReadLineExtension

  Whether the file engine provides a fast implementation for `readLine()` or not. If `readLine()` remains unimplemented in the file engine, `QAbstractFileEngine` will provide an implementation based on calling `read()` repeatedly. If `supportsExtension()` returns false for this extension, however, `QIODevice` can provide a faster implementation by making use of its internal buffer. For engines that already provide a fast `readLine()` implementation, returning false for this extension can avoid unnnecessary double-buffering in `QIODevice`.

### MapExtension

    public static final QAbstractFileEngine.Extension MapExtension

  Whether the file engine provides the ability to map a file to memory.

### UnMapExtension

    public static final QAbstractFileEngine.Extension UnMapExtension

  Whether the file engine provides the ability to unmap memory that was previously mapped.

### CustomEnum

    public static final QAbstractFileEngine.Extension CustomEnum

Method Detail

### values

    public static QAbstractFileEngine.Extension[] values()

### valueOf

    public static QAbstractFileEngine.Extension valueOf(java.lang.String name)

### value

    public int value()

  This function should return an integer value for the enum values of the enumeration that implements this interface.

  Specified by:
    `value` in interface `QtEnumerator`

### resolve

    public static QAbstractFileEngine.Extension resolve(int value)

  Returns the QAbstractFileEngine$Extension constant with the specified `int`.

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