java.lang.Object
com.sun.jna.Structure
org.cryptomator.frontend.dokany.internal.structure.DokanyFileInfo
All Implemented Interfaces:
com.sun.jna.Structure.ByReference

public class DokanyFileInfo extends com.sun.jna.Structure implements com.sun.jna.Structure.ByReference
From dokan.h
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    This can be used to carry information between operation.
    byte
    Flag if the file has to be delete during DokanyOperations.Cleanup event.
    long
    Reserved.
    A pointer to DeviceOptions which was passed to NativeMethods.DokanMain(org.cryptomator.frontend.dokany.internal.structure.DeviceOptions, org.cryptomator.frontend.dokany.internal.structure.DokanyOperations).
    byte
    Requesting a directory file.
    byte
    Read or write directly from data source without cache.
    byte
    Read or write is paging IO.
    int
    Process id for the thread that originally requested a given I/O operation.
    byte
    Read or write is synchronous IO.
    byte
    If true, write to the current end of file instead of using the Offset parameter.

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
     
    protected List<String>
     
    final boolean
     
    final boolean
     
    final boolean
     
    final boolean
     
     
    final boolean
     

    Methods inherited from class com.sun.jna.Structure

    allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • Context

      public long Context
      This can be used to carry information between operation. HANDLE This can be whatever type such as WinNT.HANDLE, Structure, IntByReference, Pointer that will help the implementation understand the request context of the event.
    • DokanContext

      public long DokanContext
      Reserved. Used internally by Dokany library. Never modify.
    • DokanOptions

      public DeviceOptions DokanOptions
      A pointer to DeviceOptions which was passed to NativeMethods.DokanMain(org.cryptomator.frontend.dokany.internal.structure.DeviceOptions, org.cryptomator.frontend.dokany.internal.structure.DokanyOperations).
    • ProcessId

      public int ProcessId
      Process id for the thread that originally requested a given I/O operation.
    • IsDirectory

      public byte IsDirectory
      Requesting a directory file. Must be set in DokanyOperations.ZwCreateFile if the file object appears to be a directory.
    • DeleteOnClose

      public byte DeleteOnClose
      Flag if the file has to be delete during DokanyOperations.Cleanup event.
    • PagingIo

      public byte PagingIo
      Read or write is paging IO.
    • SynchronousIo

      public byte SynchronousIo
      Read or write is synchronous IO.
    • Nocache

      public byte Nocache
      Read or write directly from data source without cache.
    • WriteToEndOfFile

      public byte WriteToEndOfFile
      If true, write to the current end of file instead of using the Offset parameter.
  • Constructor Details

    • DokanyFileInfo

      public DokanyFileInfo()
  • Method Details

    • getFieldOrder

      protected List<String> getFieldOrder()
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
    • isDirectory

      public final boolean isDirectory()
    • deleteOnClose

      public final boolean deleteOnClose()
    • pagingIo

      public final boolean pagingIo()
    • synchronousIo

      public final boolean synchronousIo()
    • noCache

      public final boolean noCache()
    • writeToEndOfFile

      public final boolean writeToEndOfFile()
    • toString

      public String toString()
      Overrides:
      toString in class com.sun.jna.Structure