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=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..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.IO.FileSystem.Watcher, Version=9.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
-
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=9.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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path, java.lang.String filter) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, CultureNotFoundException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, CultureNotFoundException
-
-
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, NullReferenceException, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, MulticastNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FileNotFoundException, ApplicationException, TaskSchedulerException, OperationCanceledException, FormatException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMulticastNotSupportedExceptionObjectDisposedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionFileNotFoundExceptionApplicationExceptionTaskSchedulerExceptionOperationCanceledExceptionFormatException
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, NullReferenceException, MulticastNotSupportedException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FileNotFoundException, EventSourceException, TaskSchedulerException, OperationCanceledException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionFileNotFoundExceptionEventSourceExceptionTaskSchedulerExceptionOperationCanceledException
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, MulticastNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException, InvalidOperationException, FormatException, FileNotFoundException, EventSourceException, TaskSchedulerException, OperationCanceledException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionMulticastNotSupportedExceptionObjectDisposedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionInvalidOperationExceptionFormatExceptionFileNotFoundExceptionEventSourceExceptionTaskSchedulerExceptionOperationCanceledException
-
BeginInit
public void BeginInit() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullException
-
EndInit
public void EndInit() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NotSupportedException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, ObjectDisposedException, FileNotFoundException, OutOfMemoryException- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionFileNotFoundExceptionOutOfMemoryException
-
getEnableRaisingEvents
public boolean getEnableRaisingEvents() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setEnableRaisingEvents
public void setEnableRaisingEvents(boolean EnableRaisingEvents) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, CultureNotFoundException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, FileNotFoundException, ApplicationException, NullReferenceException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionArgumentNullExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionFileNotFoundExceptionApplicationExceptionNullReferenceException
-
getIncludeSubdirectories
public boolean getIncludeSubdirectories() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIncludeSubdirectories
public void setIncludeSubdirectories(boolean IncludeSubdirectories) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException, InvalidOperationException, FileNotFoundException, ApplicationException, NotSupportedException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionInvalidOperationExceptionFileNotFoundExceptionApplicationExceptionNotSupportedException
-
getInternalBufferSize
public int getInternalBufferSize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setInternalBufferSize
public void setInternalBufferSize(int InternalBufferSize) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException, InvalidOperationException, FileNotFoundException, ApplicationException, NotSupportedException- Throws:
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionInvalidOperationExceptionFileNotFoundExceptionApplicationExceptionNotSupportedException
-
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, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, FileNotFoundException, OutOfMemoryException, ApplicationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionFileNotFoundExceptionOutOfMemoryExceptionApplicationException
-
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, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
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, NotSupportedException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, FormatException, MissingMethodException, TargetInvocationException, ObjectDisposedException, FileNotFoundException, ApplicationException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionFormatExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionFileNotFoundExceptionApplicationException
-
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
-
-