Top Inners Fields Constructors Methods
com.sun.jna.platform.win32

public Class W32FileMonitor

extends FileMonitor
Class Inheritance
Imports
java.io.File, .FileNotFoundException, .IOException, java.util.HashMap, .Map, com.sun.jna.platform.FileMonitor, com.sun.jna.platform.win32.BaseTSD.ULONG_PTRByReference, .WinBase.OVERLAPPED, .WinNT.FILE_NOTIFY_INFORMATION, .WinNT.HANDLE, com.sun.jna.ptr.IntByReference, .PointerByReference, java.util.logging.Level, .Logger

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final int
private boolean
private final Map<File, W32FileMonitor.FileInfo>
private final Map<WinNT.HANDLE, W32FileMonitor.FileInfo>
private static final Logger
private WinNT.HANDLE
private Thread
private static int
Inherited from com.sun.jna.platform.FileMonitor:
FILE_ACCESSEDFILE_ANYFILE_ATTRIBUTES_CHANGEDFILE_CREATEDFILE_DELETEDFILE_MODIFIEDFILE_NAME_CHANGED_NEWFILE_NAME_CHANGED_OLDFILE_RENAMEDFILE_SECURITY_CHANGEDFILE_SIZE_CHANGED

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
convertMask(int mask)

public synchronized void
private void
protected synchronized void
private W32FileMonitor.FileInfo
protected synchronized void
watch(File file, int eventMask, boolean recursive)

Implements abstract com.sun.jna.platform.FileMonitor.watch.

Inherited from com.sun.jna.platform.FileMonitor:
addFileListeneraddWatchaddWatchaddWatchfinalizegetInstancenotifyremoveFileListenerremoveWatch

Field Detail

BUFFER_SIZEback to summary
private static final int BUFFER_SIZE
disposingback to summary
private boolean disposing
fileMapback to summary
private final Map<File, W32FileMonitor.FileInfo> fileMap
handleMapback to summary
private final Map<WinNT.HANDLE, W32FileMonitor.FileInfo> handleMap
LOGback to summary
private static final Logger LOG
portback to summary
private WinNT.HANDLE port
watcherback to summary
private Thread watcher
watcherThreadIDback to summary
private static int watcherThreadID

Constructor Detail

W32FileMonitorback to summary
public W32FileMonitor()

Method Detail

convertMaskback to summary
private int convertMask(int mask)
disposeback to summary
public synchronized void dispose()

Implements abstract com.sun.jna.platform.FileMonitor.dispose.

Annotations
@Override
handleChangesback to summary
private void handleChanges(W32FileMonitor.FileInfo finfo) throws IOException
unwatchback to summary
protected synchronized void unwatch(File file)

Implements abstract com.sun.jna.platform.FileMonitor.unwatch.

Annotations
@Override
waitForChangeback to summary
private W32FileMonitor.FileInfo waitForChange()
watchback to summary
protected synchronized void watch(File file, int eventMask, boolean recursive) throws IOException

Implements abstract com.sun.jna.platform.FileMonitor.watch.

Annotations
@Override
com.sun.jna.platform.win32 back to summary

private Class W32FileMonitor.FileInfo

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final File
public final WinNT.HANDLE
public final WinNT.FILE_NOTIFY_INFORMATION
public final IntByReference
public final int
public final WinBase.OVERLAPPED
public final boolean

Constructor Summary

AccessConstructor and Description
public
FileInfo(File f, WinNT.HANDLE h, int mask, boolean recurse)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileback to summary
public final File file
handleback to summary
public final WinNT.HANDLE handle
infoback to summary
public final WinNT.FILE_NOTIFY_INFORMATION info
infoLengthback to summary
public final IntByReference infoLength
notifyMaskback to summary
public final int notifyMask
overlappedback to summary
public final WinBase.OVERLAPPED overlapped
recursiveback to summary
public final boolean recursive

Constructor Detail

FileInfoback to summary
public FileInfo(File f, WinNT.HANDLE h, int mask, boolean recurse)