Searched refs:closed (Results 1 - 18 of 18) sorted by relevance

/libcore/luni/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java38 private volatile boolean closed = false; field in class:AbstractInterruptibleChannel
56 return !closed;
60 * Closes an open channel. If the channel is already closed then this method
64 * If an attempt is made to perform an operation on a closed channel then a
76 if (!closed) {
78 if (!closed) {
79 closed = true;
103 * if this channel is closed by another thread while this method
115 if (!success && closed) {
124 * closed throug
[all...]
/libcore/luni/src/main/native/
H A DNetFd.h32 bool closed = (mFd == -1); local
33 if (closed) {
34 jniThrowException(mEnv, "java/net/SocketException", "Socket closed");
36 return closed;
/libcore/luni/src/main/java/java/util/zip/
H A DInflaterOutputStream.java37 private boolean closed = false; field in class:InflaterOutputStream
91 if (!closed) {
95 closed = true;
109 * @throws IOException if an I/O error occurs, or the stream has been closed
122 * @throws IOException if an I/O error occurs, or the stream has been closed
135 * @throws IOException if an I/O error occurs, or the stream has been closed
160 if (closed) {
H A DDeflaterInputStream.java38 private boolean closed = false; field in class:DeflaterInputStream
93 closed = true;
177 * @throws IOException if this stream is closed or an error occurs
210 if (closed) {
211 throw new IOException("Stream is closed");
H A DInflaterInputStream.java54 boolean closed; field in class:InflaterInputStream
229 * @throws IOException if this stream is closed or an error occurs
248 if (!closed) {
250 closed = true;
288 if (closed) {
289 throw new IOException("Stream is closed");
H A DZipInputStream.java114 if (!closed) {
138 * - resetting fields that manage the entry being closed
388 if (closed) {
389 throw new IOException("Stream is closed");
H A DGZIPInputStream.java130 if (closed) {
131 throw new IOException("Stream is closed");
H A DZipFile.java94 * Delete zip file when closed.
152 * time that the {@code ZipFile} is closed (the contents will remain accessible until
153 * this {@code ZipFile} is closed); it also calls {@code File.deleteOnExit}.
227 throw new IllegalStateException("Zip file closed");
239 * @throws IllegalStateException if this zip file has been closed.
262 * @throws IllegalStateException if this zip file has been closed.
273 * @throws IllegalStateException if this zip file has been closed.
296 * @throws IllegalStateException if this zip file has been closed.
361 * @throws IllegalStateException if this zip file has been closed.
602 if (closed) {
[all...]
/libcore/support/src/test/java/org/apache/harmony/testframework/
H A DCharWrapperTester.java162 fail("expected already closed exception");
172 assertTrue(delegate.closed);
183 assertTrue(delegate.closed);
190 * A custom Writer that respects the closed state. The built-in StringWriter
195 private boolean closed = false; field in class:CharWrapperTester.ClosableStringWriter
199 closed = true;
208 if (closed) {
217 boolean closed = false; field in class:CharWrapperTester.FailOnFlushWriter
221 if (closed) {
222 throw new IOException("Already closed");
242 boolean closed = false; field in class:CharWrapperTester.FailOnCloseWriter
[all...]
H A DWrapperTester.java163 fail("expected already closed exception");
173 assertTrue(delegate.closed);
184 assertTrue(delegate.closed);
192 private boolean closed = false; field in class:WrapperTester.ClosableByteArrayOutputStream
196 closed = true;
201 if (closed) {
210 boolean closed = false; field in class:WrapperTester.FailOnFlushOutputStream
214 if (closed) {
215 throw new IOException("Already closed");
221 closed
235 boolean closed = false; field in class:WrapperTester.FailOnCloseOutputStream
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherOutputStream1Test.java48 private boolean closed = false; field in class:CipherOutputStream1Test.TestOutputStream
51 closed = true;
55 return closed;
H A DCipherInputStream1Test.java44 private boolean closed = false; field in class:CipherInputStream1Test.TestInputStream
51 closed = true;
55 return closed;
/libcore/tzdata/update/src/test/libcore/tzdata/update/
H A DConfigBundleTest.java135 private boolean closed; field in class:ConfigBundleTest.TestInputStream
143 closed = true;
148 assertTrue(closed);
/libcore/luni/src/main/java/java/util/jar/
H A DJarFile.java58 private boolean closed = false; field in class:JarFile
259 * if this {@code JarFile} is closed.
286 * if the jar file is closed.
290 if (closed) {
291 throw new IllegalStateException("JarFile has been closed");
449 closed = true;
H A DStrictJarFile.java55 private boolean closed; field in class:StrictJarFile
164 if (!closed) {
169 closed = true;
/libcore/luni/src/main/java/libcore/net/url/
H A DJarURLConnectionImpl.java60 private boolean closed; field in class:JarURLConnectionImpl
212 if (closed) {
213 throw new IllegalStateException("JarURLConnection InputStream has been closed");
355 closed = true;
/libcore/luni/src/main/java/java/util/
H A DScanner.java108 // Record the status of this scanner. True if the scanner is closed.
109 private boolean closed = false; field in class:Scanner
273 * {@code Closeable}. If the {@code Scanner} has been closed, this method will have
280 if (closed) {
290 closed = true;
315 * if the {@code Scanner} is closed.
406 * if the {@code Scanner} is closed.
441 * if the {@code Scanner} is closed.
507 * if the {@code Scanner} is closed.
523 * if the {@code Scanner} has been closed
[all...]
H A DFormatter.java552 private boolean closed = false; field in class:Formatter
896 if (closed) {
906 * if the {@code Formatter} has been closed.
918 * if the {@code Formatter} has been closed.
932 * if the {@code Formatter} has been closed.
945 * if the {@code Formatter} has been closed.
962 * If the {@code Formatter} has been closed, then calling the this method will have no
966 * {@code Formatter} has been closed will raise a {@code FormatterClosedException}.
969 if (!closed) {
970 closed
[all...]

Completed in 435 milliseconds