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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.FileSystemWatcher
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: Systemstatic 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
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- 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- Throws:
java.lang.Throwable
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path, java.lang.String filter) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OutOfMemoryException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOutOfMemoryException
-
-
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) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MulticastNotSupportedException, ObjectDisposedException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, NotSupportedException, FileNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionMulticastNotSupportedExceptionObjectDisposedExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionPathTooLongExceptionNotSupportedExceptionFileNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNullReferenceException
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, int timeout) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MulticastNotSupportedException, ObjectDisposedException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, OutOfMemoryException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionMulticastNotSupportedExceptionObjectDisposedExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionOutOfMemoryExceptionNullReferenceException
-
BeginInit
public void BeginInit() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
EndInit
public void EndInit() throws java.lang.Throwable, ObjectDisposedException, ArgumentException, SecurityException, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, IndexOutOfRangeException, FileNotFoundException, OutOfMemoryException, NullReferenceException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionSecurityExceptionArgumentNullExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionPathTooLongExceptionIndexOutOfRangeExceptionFileNotFoundExceptionOutOfMemoryExceptionNullReferenceException
-
getEnableRaisingEvents
public boolean getEnableRaisingEvents() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setEnableRaisingEvents
public void setEnableRaisingEvents(boolean EnableRaisingEvents) throws java.lang.Throwable, ObjectDisposedException, ArgumentException, SecurityException, ArgumentNullException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, IndexOutOfRangeException, FileNotFoundException, OutOfMemoryException, NullReferenceException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionSecurityExceptionArgumentNullExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionPathTooLongExceptionIndexOutOfRangeExceptionFileNotFoundExceptionOutOfMemoryExceptionNullReferenceException
-
getIncludeSubdirectories
public boolean getIncludeSubdirectories() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIncludeSubdirectories
public void setIncludeSubdirectories(boolean IncludeSubdirectories) throws java.lang.Throwable, ObjectDisposedException, ArgumentException, SecurityException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, OutOfMemoryException, NullReferenceException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionSecurityExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionOutOfMemoryExceptionNullReferenceException
-
getInternalBufferSize
public int getInternalBufferSize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setInternalBufferSize
public void setInternalBufferSize(int InternalBufferSize) throws java.lang.Throwable, ObjectDisposedException, ArgumentException, SecurityException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, OutOfMemoryException, NullReferenceException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentExceptionSecurityExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionOutOfMemoryExceptionNullReferenceException
-
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, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, SecurityException, PlatformNotSupportedException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, OutOfMemoryException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionSecurityExceptionPlatformNotSupportedExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionOutOfMemoryExceptionNullReferenceException
-
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, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException
-
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, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, NotImplementedException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, SecurityException, PlatformNotSupportedException, OutOfMemoryException, NullReferenceException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionNotImplementedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionNullReferenceException
-
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
-
-