APIdia Launch Partner
Top Fields Constructors Methods
jdk.nio.zipfs

pack-priv Class ZipDirectoryStream

extends Object
implements DirectoryStream<Path>
Class Inheritance
All Implemented Interfaces
java.nio.file.DirectoryStream, java.lang.Iterable, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, java.nio.file.ClosedDirectoryStreamException, .DirectoryIteratorException, .DirectoryStream, .NotDirectoryException, .Path, java.util.Iterator, .NoSuchElementException

Author
Xueming Shen, Rajendra Gutupalli, Jaya Hangal

Field Summary

Modifier and TypeField and Description
private final ZipPath
private final DirectoryStream.Filter<? super Path>
private volatile boolean
private volatile Iterator<Path>
private final ZipFileSystem

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public synchronized Iterator<Path>
iterator()

Implements java.nio.file.DirectoryStream.iterator.

Returns the iterator associated with this DirectoryStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dirback to summary
private final ZipPath dir
filterback to summary
private final DirectoryStream.Filter<? super Path> filter
isClosedback to summary
private volatile boolean isClosed
itrback to summary
private volatile Iterator<Path> itr
zipfsback to summary
private final ZipFileSystem zipfs

Constructor Detail

ZipDirectoryStreamback to summary
pack-priv ZipDirectoryStream(ZipPath dir, DirectoryStream.Filter<? super Path> filter) throws IOException

Method Detail

closeback to summary
public synchronized void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

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 AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
iteratorback to summary
public synchronized Iterator<Path> iterator()

Implements java.nio.file.DirectoryStream.iterator.

Doc from java.nio.file.DirectoryStream.iterator.

Returns the iterator associated with this DirectoryStream.

Annotations
@Override