Home
last modified time | relevance | path

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

123

/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/ojluni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java90 private volatile boolean closed; field in AbstractInterruptibleChannel
110 if (closed) in close()
112 closed = true; in close()
136 return !closed; in isOpen()
158 if (closed) in begin()
160 closed = true; in begin()
202 if (!completed && closed) in end()
/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/ojluni/src/main/java/java/io/
DFileInputStream.java93 private volatile boolean closed; field in FileInputStream
345 if (closed && len > 0) { in read()
477 if (closed) { in skip()
519 if (closed) { in available()
549 if (closed) { in close()
553 if (closed) { in close()
556 closed = true; in close()
626 if (closed) { in getChannel()
DPipedWriter.java48 private boolean closed = false; field in PipedWriter
96 } else if (snk.closedByReader || closed) { in connect()
168 if (sink.closedByReader || closed) { in flush()
185 closed = true; in close()
DFilterOutputStream.java53 private volatile boolean closed; field in FilterOutputStream
170 if (closed) { in close()
174 if (closed) { in close()
177 closed = true; in close()
DFileOutputStream.java109 private volatile boolean closed; field in FileOutputStream
423 if (closed && len > 0) { in write()
456 if (closed) { in close()
460 if (closed) { in close()
463 closed = true; in close()
533 if (closed) { in getChannel()
DOutputStream.java73 private volatile boolean closed; in nullOutputStream()
76 if (closed) { in nullOutputStream()
94 closed = true; in nullOutputStream()
/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()
/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/test/java/io/InputStream/
DTransferTo.java214 boolean closed;
238 if (!closed) {
239 closed = true;
257 boolean closed;
265 closed = true;
270 return closed;
276 boolean closed;
284 closed = true;
289 return closed;
DReadAllBytes.java97 private boolean closed; field in ReadAllBytes.WrapperInputStream
99 @Override public void close() throws IOException { closed = true; in.close(); } in close()
100 boolean isClosed() { return closed; } in isClosed()
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java259 boolean closed;
268 if (!closed) {
269 closed = true;
281 boolean closed;
289 closed = true;
294 return closed;
300 boolean closed;
308 closed = true;
313 return closed;
/libcore/ojluni/src/test/java/util/Properties/
DSaveClose.java44 boolean closed = false; field in SaveClose.O
51 this.closed = true; in close()
62 if (o.closed) in main()
DLoadAndStoreXML.java91 private boolean closed; field in LoadAndStoreXML.TestInputStream
98 return !closed; in isOpen()
105 closed = true; in close()
115 private boolean closed; field in LoadAndStoreXML.TestOutputStream
118 return !closed; in isOpen()
125 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()
DEPollPort.java52 private boolean closed; field in EPollPort
122 if (closed) in implClose()
124 closed = true; in implClose()
146 if (closed) in executeOnHandlerTask()
DAsynchronousFileChannelImpl.java45 protected volatile boolean closed; field in AsynchronousFileChannelImpl
74 return !closed; in isOpen()
84 if (closed) in begin()
167 if (closed) in addToFileLockTable()
/libcore/ojluni/src/main/java/java/util/zip/
DInflaterOutputStream.java58 private boolean closed = false; field in InflaterOutputStream
64 if (closed) { in ensureOpen()
126 if (!closed) { in close()
132 closed = true; in close()
DInflaterInputStream.java73 protected boolean closed = false; field in InflaterInputStream
82 if (closed) { in ensureOpen()
280 if (!closed) { in close()
293 closed = true; in close()
DGZIPInputStream.java55 private boolean closed = false; field in GZIPInputStream
61 if (closed) { in ensureOpen()
152 if (!closed) { in close()
155 closed = true; in close()
DDeflaterOutputStream.java57 private boolean closed = false; field in DeflaterOutputStream
243 if (!closed) { in close()
251 closed = true; in close()
/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()
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeWalker.java62 private boolean closed; field in FileTreeWalker
319 if (closed) in walk()
411 return !closed; in isOpen()
419 if (!closed) { in close()
423 closed = true; in close()

123