Package system.io
Class FileSystemWatcher
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.io.FileSystemWatcher
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class FileSystemWatcher extends Component
The base .NET class managing System.IO.FileSystemWatcher, System.IO.FileSystem.Watcher, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.IO.FileSystemWatcher
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.IO.FileSystem.Watcher, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.IO.FileSystem.Watcherstatic java.lang.StringclassNameQualified class name: System.IO.FileSystemWatcherstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description FileSystemWatcher()FileSystemWatcher(java.lang.Object instance)Internal constructor.FileSystemWatcher(java.lang.String path)FileSystemWatcher(java.lang.String path, java.lang.String filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChanged(FileSystemEventHandler handler)voidaddCreated(FileSystemEventHandler handler)voidaddDeleted(FileSystemEventHandler handler)voidaddError(ErrorEventHandler handler)voidaddRenamed(RenamedEventHandler handler)voidBeginInit()static FileSystemWatchercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoFileSystemWatcher, a cast assert is made to check if types are compatible.voidEndInit()booleangetEnableRaisingEvents()java.lang.StringgetFilter()booleangetIncludeSubdirectories()intgetInternalBufferSize()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeNotifyFiltersgetNotifyFilter()java.lang.StringgetPath()ISynchronizeInvokegetSynchronizingObject()voidremoveChanged(FileSystemEventHandler handler)voidremoveCreated(FileSystemEventHandler handler)voidremoveDeleted(FileSystemEventHandler handler)voidremoveError(ErrorEventHandler handler)voidremoveRenamed(RenamedEventHandler handler)voidsetEnableRaisingEvents(boolean EnableRaisingEvents)voidsetFilter(java.lang.String Filter)voidsetIncludeSubdirectories(boolean IncludeSubdirectories)voidsetInternalBufferSize(int InternalBufferSize)voidsetJCOInstance(JCObject instance)voidsetNotifyFilter(NotifyFilters NotifyFilter)voidsetPath(java.lang.String Path)voidsetSynchronizingObject(ISynchronizeInvoke SynchronizingObject)WaitForChangedResultWaitForChanged(WatcherChangeTypes changeType)WaitForChangedResultWaitForChanged(WatcherChangeTypes changeType, int timeout)-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IO.FileSystem.Watcher, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IO.FileSystem.Watcher- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.FileSystemWatcher- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileSystemWatcher
public FileSystemWatcher(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
FileSystemWatcher
public FileSystemWatcher() throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path, java.lang.String filter) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classComponent- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static FileSystemWatcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoFileSystemWatcher, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
FileSystemWatcherinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, int timeout) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, MulticastNotSupportedException, ObjectDisposedException, CultureNotFoundException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, FileNotFoundException, OutOfMemoryException, TaskSchedulerException, OperationCanceledException, NotSupportedException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMulticastNotSupportedExceptionObjectDisposedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionFileNotFoundExceptionOutOfMemoryExceptionTaskSchedulerExceptionOperationCanceledExceptionNotSupportedException
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, MulticastNotSupportedException, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, InvalidOperationException, FormatException, FileNotFoundException, OutOfMemoryException, EventSourceException, TaskSchedulerException, OperationCanceledException, NotSupportedException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionMulticastNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionInvalidOperationExceptionFormatExceptionFileNotFoundExceptionOutOfMemoryExceptionEventSourceExceptionTaskSchedulerExceptionOperationCanceledExceptionNotSupportedException
-
BeginInit
public void BeginInit() throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ObjectDisposedException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionObjectDisposedException
-
EndInit
public void EndInit() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, FileNotFoundException, OutOfMemoryException
-
getEnableRaisingEvents
public boolean getEnableRaisingEvents() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setEnableRaisingEvents
public void setEnableRaisingEvents(boolean EnableRaisingEvents) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, FileNotFoundException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionFileNotFoundExceptionOutOfMemoryException
-
getIncludeSubdirectories
public boolean getIncludeSubdirectories() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIncludeSubdirectories
public void setIncludeSubdirectories(boolean IncludeSubdirectories) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException, FileNotFoundException, OutOfMemoryException
-
getInternalBufferSize
public int getInternalBufferSize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setInternalBufferSize
public void setInternalBufferSize(int InternalBufferSize) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException, FileNotFoundException, OutOfMemoryException
-
getSynchronizingObject
public ISynchronizeInvoke getSynchronizingObject() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSynchronizingObject
public void setSynchronizingObject(ISynchronizeInvoke SynchronizingObject) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNotifyFilter
public NotifyFilters getNotifyFilter() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setNotifyFilter
public void setNotifyFilter(NotifyFilters NotifyFilter) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, PlatformNotSupportedException, FileNotFoundException, OutOfMemoryException, InvalidOperationException
-
getFilter
public java.lang.String getFilter() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setFilter
public void setFilter(java.lang.String Filter) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
-
getPath
public java.lang.String getPath() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPath
public void setPath(java.lang.String Path) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, FileNotFoundException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionExternalExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionFileNotFoundException
-
addError
public void addError(ErrorEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeError
public void removeError(ErrorEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addChanged
public void addChanged(FileSystemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeChanged
public void removeChanged(FileSystemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addCreated
public void addCreated(FileSystemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeCreated
public void removeCreated(FileSystemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addDeleted
public void addDeleted(FileSystemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDeleted
public void removeDeleted(FileSystemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addRenamed
public void addRenamed(RenamedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeRenamed
public void removeRenamed(RenamedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-