java.lang.Object
org.codelibs.jcifs.smb.impl.NetServerEnumIterator
- All Implemented Interfaces:
AutoCloseable,Iterator<FileEntry>,CloseableIterator<FileEntry>
Iterator for enumerating network servers.
This class provides iteration over network servers discovered
through NetBIOS server enumeration requests.
-
Constructor Summary
ConstructorsConstructorDescriptionNetServerEnumIterator(SmbFile parent, org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, String wildcard, int searchAttributes, ResourceNameFilter filter) Constructs a NetServerEnumIterator for enumerating network servers -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
NetServerEnumIterator
public NetServerEnumIterator(SmbFile parent, org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, String wildcard, int searchAttributes, ResourceNameFilter filter) throws CIFSException Constructs a NetServerEnumIterator for enumerating network servers- Parameters:
parent- the parent SMB fileth- the tree handle to usewildcard- wildcard pattern for filtering serverssearchAttributes- attributes to search forfilter- optional resource name filter- Throws:
CIFSException- if enumeration fails
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<FileEntry>- Throws:
CIFSException- See Also:
-
remove
public void remove()
-