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.String
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: Systemstatic 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChanged(FileSystemEventHandler handler)
void
addCreated(FileSystemEventHandler handler)
void
addDeleted(FileSystemEventHandler handler)
void
addError(ErrorEventHandler handler)
void
addRenamed(RenamedEventHandler handler)
void
BeginInit()
static FileSystemWatcher
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoFileSystemWatcher
, a cast assert is made to check if types are compatible.void
EndInit()
boolean
getEnableRaisingEvents()
java.lang.String
getFilter()
boolean
getIncludeSubdirectories()
int
getInternalBufferSize()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeNotifyFilters
getNotifyFilter()
java.lang.String
getPath()
ISynchronizeInvoke
getSynchronizingObject()
void
removeChanged(FileSystemEventHandler handler)
void
removeCreated(FileSystemEventHandler handler)
void
removeDeleted(FileSystemEventHandler handler)
void
removeError(ErrorEventHandler handler)
void
removeRenamed(RenamedEventHandler handler)
void
setEnableRaisingEvents(boolean EnableRaisingEvents)
void
setFilter(java.lang.String Filter)
void
setIncludeSubdirectories(boolean IncludeSubdirectories)
void
setInternalBufferSize(int InternalBufferSize)
void
setJCOInstance(JCObject instance)
void
setNotifyFilter(NotifyFilters NotifyFilter)
void
setPath(java.lang.String Path)
void
setSynchronizingObject(ISynchronizeInvoke SynchronizingObject)
WaitForChangedResult
WaitForChanged(WatcherChangeTypes changeType)
WaitForChangedResult
WaitForChanged(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.Throwable
Internal 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.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
ArgumentOutOfRangeException
MissingMethodException
TargetInvocationException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
-
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.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
ArgumentOutOfRangeException
MissingMethodException
TargetInvocationException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
OutOfMemoryException
-
-
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) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MulticastNotSupportedException, ObjectDisposedException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, PlatformNotSupportedException, PathTooLongException, NotSupportedException, FileNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
MulticastNotSupportedException
ObjectDisposedException
SecurityException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotImplementedException
MissingManifestResourceException
PlatformNotSupportedException
PathTooLongException
NotSupportedException
FileNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NullReferenceException
-
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.Throwable
ArgumentException
ArgumentNullException
MulticastNotSupportedException
ObjectDisposedException
SecurityException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
PlatformNotSupportedException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
OutOfMemoryException
NullReferenceException
-
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.Throwable
ObjectDisposedException
ArgumentException
SecurityException
ArgumentNullException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
PlatformNotSupportedException
PathTooLongException
IndexOutOfRangeException
FileNotFoundException
OutOfMemoryException
NullReferenceException
-
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.Throwable
ObjectDisposedException
ArgumentException
SecurityException
ArgumentNullException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
PlatformNotSupportedException
PathTooLongException
IndexOutOfRangeException
FileNotFoundException
OutOfMemoryException
NullReferenceException
-
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.Throwable
ObjectDisposedException
ArgumentException
SecurityException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
PlatformNotSupportedException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
OutOfMemoryException
NullReferenceException
-
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.Throwable
ObjectDisposedException
ArgumentException
SecurityException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
PlatformNotSupportedException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
OutOfMemoryException
NullReferenceException
-
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.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
-
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.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
-
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
-
-