| Modifier and Type | Class and Description |
|---|---|
| private class | UnixDirectoryStream.
Iterator implementation |
| Modifier and Type | Field and Description |
|---|---|
| private final UnixPath | |
| private final long | |
| private final DirectoryStream. | |
| private volatile boolean | |
| private Iterator | |
| private final ReentrantReadWriteLock |
| Access | Constructor and Description |
|---|---|
| pack-priv | UnixDirectoryStream(UnixPath dir, long dp, DirectoryStream.
Initializes a new instance |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| protected final boolean | |
| pack-priv final UnixPath | |
| protected final boolean | |
| protected final Iterator | |
| public Iterator | iterator()
Implements java. Returns the iterator associated with this |
| protected final Lock | |
| protected final Lock |
| dir | back to summary |
|---|---|
| private final UnixPath dir | |
| dp | back to summary |
|---|---|
| private final long dp | |
| filter | back to summary |
|---|---|
| private final DirectoryStream. | |
| isClosed | back to summary |
|---|---|
| private volatile boolean isClosed | |
| iterator | back to summary |
|---|---|
| private Iterator<Path> iterator | |
| streamLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock streamLock | |
| UnixDirectoryStream | back to summary |
|---|---|
| pack-priv UnixDirectoryStream(UnixPath dir, long dp, DirectoryStream. Initializes a new instance | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| closeImpl | back to summary |
|---|---|
| protected final boolean closeImpl() throws IOException | |
| directory | back to summary |
|---|---|
| pack-priv final UnixPath directory() | |
| isOpen | back to summary |
|---|---|
| protected final boolean isOpen() | |
| iterator | back to summary |
|---|---|
| protected final Iterator | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns the iterator associated with this
| |
| readLock | back to summary |
|---|---|
| protected final Lock readLock() | |
| writeLock | back to summary |
|---|---|
| protected final Lock writeLock() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | |
| private boolean | |
| public synchronized Path | |
| private Path | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| atEof | back to summary |
|---|---|
| private boolean atEof | |
| nextEntry | back to summary |
|---|---|
| private Path nextEntry | |
| UnixDirectoryIterator | back to summary |
|---|---|
| pack-priv UnixDirectoryIterator() | |
| hasNext | back to summary |
|---|---|
| public synchronized boolean hasNext() Implements java. Doc from java. Returns
| |
| isSelfOrParent | back to summary |
|---|---|
| private boolean isSelfOrParent(byte[] nameAsBytes) | |
| next | back to summary |
|---|---|
| public synchronized Path next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| readNextEntry | back to summary |
|---|---|
| private Path readNextEntry() | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |