Home
last modified time | relevance | path

Searched refs:ClosedChannelException (Results 1 – 25 of 45) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DClosedChannelExceptionTest.java18 import java.nio.channels.ClosedChannelException;
33 ClosedChannelException e = new ClosedChannelException(); in test_Constructor()
44 SerializationTest.verifySelf(new ClosedChannelException()); in testSerializationSelf()
52 SerializationTest.verifyGolden(this, new ClosedChannelException()); in testSerializationCompatibility()
DFileChannelTest.java32 import java.nio.channels.ClosedChannelException;
199 } catch (ClosedChannelException expected) { in test_forceJ_closed()
205 } catch (ClosedChannelException expected) { in test_forceJ_closed()
310 } catch (ClosedChannelException expected) { in test_position_Closed()
317 } catch (ClosedChannelException expected) { in test_position_Closed()
324 } catch (ClosedChannelException expected) { in test_position_Closed()
338 } catch (ClosedChannelException expected) { in test_positionJ_Closed()
345 } catch (ClosedChannelException expected) { in test_positionJ_Closed()
352 } catch (ClosedChannelException expected) { in test_positionJ_Closed()
482 } catch (ClosedChannelException e) { in test_size_Closed()
[all …]
DSourceChannelTest.java21 import java.nio.channels.ClosedChannelException;
113 } catch (ClosedChannelException e) { in test_read_LByteBuffer_SourceClosed()
121 } catch (ClosedChannelException e) { in test_read_LByteBuffer_SourceClosed()
145 } catch (ClosedChannelException e) { in test_read_LByteBuffer_SourceClosed()
262 } catch (ClosedChannelException e) { in test_read_$LByteBuffer_SourceClosed()
270 } catch (ClosedChannelException e) { in test_read_$LByteBuffer_SourceClosed()
288 } catch (ClosedChannelException e) { in test_read_$LByteBuffer_SourceClosed()
456 } catch (ClosedChannelException e) { in test_read_$LByteBufferII_SourceClosed()
464 } catch (ClosedChannelException e) { in test_read_$LByteBufferII_SourceClosed()
500 } catch (ClosedChannelException e) { in test_read_$LByteBufferII_SourceClosed()
[all …]
DSelectableChannelTest.java20 import java.nio.channels.ClosedChannelException;
74 throws ClosedChannelException { in register()
DFileLockTest.java23 import java.nio.channels.ClosedChannelException;
182 } catch (ClosedChannelException e) { in test_release()
195 } catch (ClosedChannelException e) { in test_release()
DSinkChannelTest.java23 import java.nio.channels.ClosedChannelException;
174 } catch (ClosedChannelException expected) { in test_write_LByteBuffer_SinkClosed()
254 } catch (ClosedChannelException e) { in test_write_$LByteBuffer_SinkClosed()
272 } catch (ClosedChannelException e) { in test_write_$LByteBuffer_SinkClosed()
390 } catch (ClosedChannelException expected) { in test_write_$LByteBufferII_SinkClosed()
410 } catch (ClosedChannelException e) { in test_write_$LByteBufferII_SinkClosed()
454 } catch (ClosedChannelException e) { in test_write_$LByteBufferII_SinkClosed()
/libcore/ojluni/src/main/java/java/nio/channels/
DClosedChannelException.java43 public class ClosedChannelException class
52 public ClosedChannelException() { } in ClosedChannelException() method in ClosedChannelException
DSelectableChannel.java220 throws ClosedChannelException; in register()
278 throws ClosedChannelException in register()
DAsynchronousCloseException.java42 extends ClosedChannelException
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectableChannel.java193 throws ClosedChannelException in register()
197 throw new ClosedChannelException(); in register()
211 throw new ClosedChannelException(); in register()
289 throw new ClosedChannelException(); in configureBlocking()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketChannelImpl.java43 import java.nio.channels.ClosedChannelException;
190 throw new ClosedChannelException(); in getLocalAddress()
199 throw new ClosedChannelException(); in getRemoteAddress()
215 throw new ClosedChannelException(); in setOption()
248 throw new ClosedChannelException(); in getOption()
295 private boolean ensureReadOpen() throws ClosedChannelException { in ensureReadOpen()
298 throw new ClosedChannelException(); in ensureReadOpen()
308 private void ensureWriteOpen() throws ClosedChannelException { in ensureWriteOpen()
311 throw new ClosedChannelException(); in ensureWriteOpen()
313 throw new ClosedChannelException(); in ensureWriteOpen()
[all …]
DServerSocketChannelImpl.java118 throw new ClosedChannelException(); in getLocalAddress()
135 throw new ClosedChannelException(); in setOption()
169 throw new ClosedChannelException(); in getOption()
214 throw new ClosedChannelException(); in bind()
235 throw new ClosedChannelException(); in accept()
DSimpleAsynchronousFileChannelImpl.java187 Throwable exc = new ClosedChannelException(); in implLock()
254 throw new ClosedChannelException(); in tryLock()
302 Throwable exc = (isOpen()) ? null : new ClosedChannelException(); in implRead()
356 Throwable exc = (isOpen()) ? null : new ClosedChannelException(); in implWrite()
DFileLockImpl.java58 throw new ClosedChannelException(); in release()
DUnixAsynchronousSocketChannelImpl.java279 if (x instanceof ClosedChannelException) in finishConnect()
316 Throwable e = new ClosedChannelException(); in implConnect()
369 if (x instanceof ClosedChannelException) in implConnect()
431 if (x instanceof ClosedChannelException) in finishRead()
562 if (x instanceof ClosedChannelException) in implRead()
626 if (x instanceof ClosedChannelException) in finishWrite()
745 if (x instanceof ClosedChannelException) in implWrite()
DAsynchronousSocketChannelImpl.java118 throw new ClosedChannelException(); in begin()
233 Throwable e = new ClosedChannelException(); in read()
366 Throwable e = new ClosedChannelException(); in write()
449 throw new ClosedChannelException(); in getLocalAddress()
527 throw new ClosedChannelException(); in getRemoteAddress()
DUnixAsynchronousServerSocketChannelImpl.java179 if (x instanceof ClosedChannelException) in onEvent()
276 Throwable e = new ClosedChannelException(); in implAccept()
330 if (x instanceof ClosedChannelException) in implAccept()
DAsynchronousServerSocketChannelImpl.java85 throw new ClosedChannelException(); in begin()
175 throw new ClosedChannelException(); in getLocalAddress()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousSocketChannelTest.java32 import java.nio.channels.ClosedChannelException;
183 } catch (ClosedChannelException expected) {} in test_close()
187 } catch (ClosedChannelException expected) {} in test_close()
198 assertTrue(expected.getCause() instanceof ClosedChannelException); in test_close()
206 } catch (ClosedChannelException expected) {} in test_close()
214 } catch (ClosedChannelException expected) {} in test_close()
222 } catch (ClosedChannelException expected) {} in test_close()
229 assertTrue(expected.getCause() instanceof ClosedChannelException); in test_close()
237 } catch (ClosedChannelException expected) {} in test_close()
244 } catch (ClosedChannelException expected) {} in test_close()
[all …]
DAsynchronousServerSocketChannelTest.java33 import java.nio.channels.ClosedChannelException;
253 assertTrue(expected.getCause() instanceof ClosedChannelException); in test_close()
262 } catch(ClosedChannelException expected) {} in test_close()
267 } catch(ClosedChannelException expected) {} in test_close()
272 } catch(ClosedChannelException expected) {} in test_close()
302 assertTrue(expected.getCause() instanceof ClosedChannelException); in test_future_concurrent_close()
DSocketChannelTest.java36 import java.nio.channels.ClosedChannelException;
96 } catch (ClosedChannelException expected) { in test_56684()
304 } catch (ClosedChannelException expected) { in test_setOption()
335 } catch (ClosedChannelException expected) { in test_bind()
403 } catch (ClosedChannelException expected) { in test_shutdownOutput()
413 } catch (ClosedChannelException expected) { in test_shutdownOutput()
DOldFileChannelTest.java28 import java.nio.channels.ClosedChannelException;
659 } catch (ClosedChannelException e) { in test_writeLByteBuffer_Closed()
667 } catch (ClosedChannelException e) { in test_writeLByteBuffer_Closed()
675 } catch (ClosedChannelException e) { in test_writeLByteBuffer_Closed()
684 } catch (ClosedChannelException e) { in test_writeLByteBuffer_Closed()
691 } catch (ClosedChannelException e) { in test_writeLByteBuffer_Closed()
699 } catch (ClosedChannelException e) { in test_writeLByteBuffer_Closed()
791 } catch (ClosedChannelException e) { in test_write$LByteBuffer_Closed()
799 } catch (ClosedChannelException e) { in test_write$LByteBuffer_Closed()
807 } catch (ClosedChannelException e) { in test_write$LByteBuffer_Closed()
DServerSocketChannelTest.java35 import java.nio.channels.ClosedChannelException;
237 } catch (ClosedChannelException expected) { in bind_socketAddress()
261 } catch (ClosedChannelException expected) { in set_option()
DDatagramChannelTest.java34 import java.nio.channels.ClosedChannelException;
184 } catch (ClosedChannelException expected) { in test_setOption()
222 } catch (ClosedChannelException expected) {} in test_bind()
/libcore/luni/src/test/java/libcore/java/io/
DInterruptedStreamTest.java31 import java.nio.channels.ClosedChannelException;
187 } catch (ClosedChannelException expected) { in testInterruptWritableChannel()

12