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=8.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.String
assemblyFullName
Fully assembly qualified name: System.IO.FileSystem.Watcher, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.IO.FileSystem.Watcherstatic java.lang.String
className
Qualified class name: System.IO.FileSystemWatcherstatic JCType
classType
The 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=8.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.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
FileSystemWatcher
public FileSystemWatcher() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path, java.lang.String filter) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, CultureNotFoundException
-
FileSystemWatcher
public FileSystemWatcher(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, CultureNotFoundException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classComponent
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static FileSystemWatcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoFileSystemWatcher
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
FileSystemWatcher
instance- 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, ArgumentOutOfRangeException, MulticastNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, CultureNotFoundException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FileNotFoundException, ApplicationException, TaskSchedulerException, OperationCanceledException, FormatException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
MulticastNotSupportedException
ObjectDisposedException
IndexOutOfRangeException
CultureNotFoundException
OutOfMemoryException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FileNotFoundException
ApplicationException
TaskSchedulerException
OperationCanceledException
FormatException
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, MulticastNotSupportedException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FileNotFoundException, EventSourceException, TaskSchedulerException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
MulticastNotSupportedException
OutOfMemoryException
MissingMethodException
TargetInvocationException
FileNotFoundException
EventSourceException
TaskSchedulerException
OperationCanceledException
-
WaitForChanged
public WaitForChangedResult WaitForChanged(WatcherChangeTypes changeType) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, MulticastNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException, InvalidOperationException, FormatException, FileNotFoundException, EventSourceException, TaskSchedulerException, OperationCanceledException, NotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentException
ArgumentOutOfRangeException
MulticastNotSupportedException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
MissingMethodException
TargetInvocationException
InvalidOperationException
FormatException
FileNotFoundException
EventSourceException
TaskSchedulerException
OperationCanceledException
NotSupportedException
-
BeginInit
public void BeginInit() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
-
EndInit
public void EndInit() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, FileNotFoundException, OutOfMemoryException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
CultureNotFoundException
InvalidOperationException
ArgumentOutOfRangeException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
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, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, CultureNotFoundException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException, FileNotFoundException, ApplicationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
IndexOutOfRangeException
CultureNotFoundException
ArgumentNullException
PlatformNotSupportedException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FormatException
FileNotFoundException
ApplicationException
-
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, InvalidOperationException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FileNotFoundException, ApplicationException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentException
CultureNotFoundException
ArgumentOutOfRangeException
InvalidOperationException
OutOfMemoryException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FileNotFoundException
ApplicationException
-
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, InvalidOperationException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FileNotFoundException, ApplicationException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentException
CultureNotFoundException
ArgumentOutOfRangeException
InvalidOperationException
OutOfMemoryException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FileNotFoundException
ApplicationException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FileNotFoundException, OutOfMemoryException, ApplicationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FileNotFoundException
OutOfMemoryException
ApplicationException
-
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, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, FormatException, MissingMethodException, TargetInvocationException, ObjectDisposedException, FileNotFoundException, ApplicationException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
CultureNotFoundException
PlatformNotSupportedException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
OutOfMemoryException
ExternalException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
FormatException
MissingMethodException
TargetInvocationException
ObjectDisposedException
FileNotFoundException
ApplicationException
-
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
-
-