Home
last modified time | relevance | path

Searched refs:closed (Results 1 – 25 of 48) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/net/www/
DMeteredStream.java40 protected boolean closed = false; field in MeteredStream
116 if (closed) { in read()
130 if (closed) { in read()
141 if (closed) { in skip()
164 if (closed) { in close()
170 closed = true; in close()
175 return closed ? 0: in.available(); in available()
179 if (closed) { in mark()
192 if (closed) { in reset()
205 if (closed) { in markSupported()
/libcore/support/src/test/java/org/apache/harmony/testframework/
DWrapperTester.java173 assertTrue(delegate.closed); in wrapperTestCloseThrows()
184 assertTrue(delegate.closed); in wrapperTestCloseThrowsSuppressed()
192 private boolean closed = false; field in WrapperTester.ClosableByteArrayOutputStream
196 closed = true; in close()
201 if (closed) { in write()
210 boolean closed = false; field in WrapperTester.FailOnFlushOutputStream
214 if (closed) { in write()
221 closed = true; in close()
235 boolean closed = false; field in WrapperTester.FailOnCloseOutputStream
239 closed = true; in close()
DCharWrapperTester.java172 assertTrue(delegate.closed); in wrapperTestCloseThrows()
183 assertTrue(delegate.closed); in wrapperTestCloseThrowsSuppressed()
195 private boolean closed = false; field in CharWrapperTester.ClosableStringWriter
199 closed = true; in close()
208 if (closed) { in write()
217 boolean closed = false; field in CharWrapperTester.FailOnFlushWriter
221 if (closed) { in write()
228 closed = true; in close()
242 boolean closed = false; field in CharWrapperTester.FailOnCloseWriter
254 closed = true; in close()
/libcore/luni/src/main/java/libcore/io/
DMemoryMappedFile.java35 private boolean closed; field in MemoryMappedFile
73 if (!closed) { in close()
74 closed = true; in close()
80 return closed; in isClosed()
102 if (closed) { in checkNotClosed()
DClassPathURLStreamHandler.java112 private boolean closed; field in ClassPathURLStreamHandler.ClassPathURLConnection
155 if (closed) { in getInputStream()
171 closed = true; in getInputStream()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchService.java56 private volatile boolean closed; field in AbstractWatchService
79 if (closed) in checkOpen()
127 return !closed; in isOpen()
149 if (closed) in close()
151 closed = true; in close()
/libcore/ojluni/src/main/java/java/io/
DPipedWriter.java48 private boolean closed = false; field in PipedWriter
96 } else if (snk.closedByReader || closed) { in connect()
162 if (sink.closedByReader || closed) { in flush()
179 closed = true; in close()
DFileInputStream.java75 private volatile boolean closed = false; field in FileInputStream
315 if (closed && len > 0) { in read()
353 if (closed) { in skip()
395 if (closed) { in available()
419 if (closed) { in close()
422 closed = true; in close()
DFilterOutputStream.java55 private boolean closed; field in FilterOutputStream
172 if (closed) { in close()
175 closed = true; in close()
DFileOutputStream.java91 private volatile boolean closed = false; field in FileOutputStream
393 if (closed && len > 0) { in write()
419 if (closed) { in close()
422 closed = true; in close()
/libcore/ojluni/src/main/java/java/util/zip/
DInflaterInputStream.java73 protected boolean closed = false; field in InflaterInputStream
82 if (closed) { in ensureOpen()
251 if (!closed) { in close()
256 closed = true; in close()
DInflaterOutputStream.java58 private boolean closed = false; field in InflaterOutputStream
64 if (closed) { in ensureOpen()
126 if (!closed) { in close()
132 closed = true; in close()
DGZIPInputStream.java55 private boolean closed = false; field in GZIPInputStream
61 if (closed) { in ensureOpen()
144 if (!closed) { in close()
147 closed = true; in close()
DDeflaterOutputStream.java58 private boolean closed = false; field in DeflaterOutputStream
238 if (!closed) { in close()
243 closed = true; in close()
DZipInputStream.java56 private boolean closed = false; field in ZipInputStream
67 if (closed) { in ensureOpen()
283 if (!closed) { in close()
285 closed = true; in close()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAbstractPollSelectorImpl.java59 private boolean closed = false; field in AbstractPollSelectorImpl
72 if (closed) in putEventOps()
87 if (closed) in implClose()
89 closed = true; in implClose()
142 if (closed) in implRegister()
DAsynchronousFileChannelImpl.java45 protected volatile boolean closed; field in AsynchronousFileChannelImpl
74 return !closed; in isOpen()
84 if (closed) in begin()
167 if (closed) in addToFileLockTable()
DEPollPort.java52 private boolean closed; field in EPollPort
122 if (closed) in implClose()
124 closed = true; in implClose()
146 if (closed) in executeOnHandlerTask()
/libcore/ojluni/src/main/java/javax/crypto/
DCipherOutputStream.java78 private boolean closed = false; field in CipherOutputStream
204 if (closed) { in close()
208 closed = true; in close()
DCipherInputStream.java94 private boolean closed = false; field in CipherInputStream
321 if (closed) { in close()
325 closed = true; in close()
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeWalker.java62 private boolean closed; field in FileTreeWalker
319 if (closed) in walk()
410 return !closed; in isOpen()
418 if (!closed) { in close()
422 closed = true; in close()
/libcore/ojluni/src/main/java/java/util/
DBase64.java756 private boolean closed = false; field in Base64.EncOutputStream
789 if (closed) in write()
839 if (!closed) { in close()
840 closed = true; in close()
878 private boolean closed = false; field in Base64.DecInputStream
895 if (closed) in read()
988 if (closed) in available()
995 if (!closed) { in close()
996 closed = true; in close()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherInputStream1Test.java44 private boolean closed = false; field in CipherInputStream1Test.TestInputStream
51 closed = true; in close()
55 return closed; in wasClosed()
DCipherOutputStream1Test.java55 private boolean closed = false; field in CipherOutputStream1Test.TestOutputStream
58 closed = true; in close()
62 return closed; in wasClosed()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java105 private boolean closed = false; field in URLClassPath
153 if (closed) { in closeLoaders()
164 closed = true; in closeLoaders()
176 if (closed) in addURL()
488 if (closed) {
513 if (closed) {
818 private boolean closed = false;
869 if (!closed) {
870 closed = true;

12