Searched refs:close (Results 1 - 25 of 575) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/lang/
H A DAutoCloseable.java30 * until it is closed. The {@link #close()} method of an {@code AutoCloseable}
59 * declare concrete implementations of the {@code close} method to
61 * if the close operation cannot fail.
63 * <p> Cases where the close operation may fail require careful
67 * close} method is unlikely to be invoked more than once and so
73 * to not have the {@code close} method throw {@link
82 * exception to be suppressed, the {@code AutoCloseable.close}
85 * <p>Note that unlike the {@link java.io.Closeable#close close}
86 * method of {@link java.io.Closeable}, this {@code close} metho
97 void close() throws Exception; method in interface:AutoCloseable
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DCloseable.java32 * The close method is invoked to release resources that the object is
44 * <p> As noted in {@link AutoCloseable#close()}, cases where the
45 * close may fail require careful attention. It is strongly advised
52 public void close() throws IOException; method in interface:Closeable
/libcore/ojluni/src/main/java/java/nio/channels/
H A DInterruptibleChannel.java40 * #close close} method. This will cause the blocked thread to receive an
76 * Channel#close Channel} interface. </p>
80 public void close() throws IOException; method in interface:InterruptibleChannel
H A DChannel.java82 public void close() throws IOException; method in interface:Channel
H A DAsynchronousChannel.java56 * channel's {@link #close close} method is invoked, then the I/O operation
116 void close() throws IOException; method in interface:AsynchronousChannel
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DDataOutputStreamTest.java53 dis.close();
62 os.close();
66 dis.close();
75 os.close();
79 dis.close();
89 os.close();
92 dis.close();
101 os.close();
104 dis.close();
113 os.close();
[all...]
H A DFileWriterTest.java44 fos.close();
47 bw.close();
51 br.close();
64 fileWriter.close();
69 fileWriter.close();
74 fileReader.close();
80 fileWriter.close();
85 fileWriter.close();
90 fileReader.close();
100 fos.close();
[all...]
H A DFileReaderTest.java45 bw.close();
49 br.close();
60 bw.close();
65 br.close();
66 fis.close();
77 bw.close();
81 br.close();
95 * Tears down the fixture, for example, close a network connection. This
100 bw.close();
105 br.close();
[all...]
H A DFileInputStreamTest.java103 fos.close();
115 is.close();
124 fos.close();
125 fis.close();
133 is.close();
147 is.close();
157 is.close();
171 is.close();
179 is.close();
193 fis2.close();
[all...]
H A DOpenRandomFileTest.java42 fos.close();
46 raf.close();
56 raf.close();
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectInputOutputStreamTest.java39 os.close();
51 is.close();
63 os.close();
75 is.close();
87 os.close();
99 is.close();
111 os.close();
123 is.close();
135 os.close();
147 is.close();
[all...]
H A DOldDataInputStreamTest.java45 os.close();
51 dis.close();
64 os.close();
78 dis.close();
95 os.close();
110 dis.close();
125 os.close();
154 os.close();
161 dis.close();
183 os.close();
[all...]
H A DOldDataInputOutputStreamTest.java48 os.close();
60 dis.close();
80 os.close();
92 dis.close();
112 os.close();
124 dis.close();
144 os.close();
156 dis.close();
176 os.close();
188 dis.close();
[all...]
H A DOldDataOutputStreamTest.java56 os.close();
61 dis.close();
75 os.close();
81 dis.close();
122 os.close();
127 dis.close();
140 os.close();
145 dis.close();
160 os.close();
168 dis.close();
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DSSLLoopbackBenchmark.java31 context.close();
32 sockets[0].close();
33 sockets[1].close();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DServerSocketTest.java87 cs.close();
124 ss.close();
146 s2.close();
152 s1.close();
157 s1.close();
159 s1.close();
173 sconn.close();
175 s.close();
194 sconn.close();
197 s.close();
960 protected void close() throws IOException { method in class:ServerSocketTest.MockSocketImpl
[all...]
H A DSocketTest.java54 socket.close();
99 client.close();
100 socket.close();
172 theSocket.close();
201 theSocket.close();
202 worker.close();
203 server.close();
211 theSocket.close();
227 theSocket.close();
228 theSocket2.close();
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DBrokenInputStream.java51 public void close() throws IOException { method in class:BrokenInputStream
52 stream.close();
/libcore/luni/src/test/java/libcore/java/net/
H A DOldUnixSocketTest.java48 pingServer.close();
58 worker.close();
68 clientIn.close();
83 pingClient.close();
84 pingServer.close();
100 theSocket.close();
109 ss.close();
118 socket.close();
H A DOldServerSocketTest.java82 theSocket.close();
83 servSock.close();
84 clientSocket.close();
92 sconn.close();
93 s.close();
120 cs.close();
130 ss.close();
145 sconn.close();
147 s.close();
155 sconn.close();
364 protected void close() throws IOException { method in class:OldServerSocketTest.MockSocketImpl
[all...]
/libcore/support/src/test/java/tests/util/
H A DFieldTestFileGenerator.java60 oos.close();
67 if (fos != null) fos.close();
75 oos.close();
82 if (fos != null) fos.close();
90 oos.close();
97 if (fos != null) fos.close();
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldConnectionTest.java40 conn.close();
42 fail("SQLException is not thrown after close");
48 // Scrolling on a forward only RS not allowed. conn.close() does not wrap up
67 rs.close();
68 st.close();
88 rs.close();
89 st.close();
109 rs.close();
110 st.close();
134 rs.close();
[all...]
H A DOldPreparedStatementTest.java92 st.close();
105 st.close();
136 st.close();
142 ps.close();
155 ps.close();
168 ps.close();
194 ps.close();
213 ps.close();
214 st.close();
227 ps.close();
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DCheckedInputStreamTest.java39 checkInput.close();
54 inEmp.close();
65 checkInput.close();
74 checkInput.close();
93 checkInput.close();
103 checkIn.close();
110 checkInput.close();
121 checkIn.close();
128 checkInput.close();
/libcore/ojluni/src/main/java/sun/net/www/
H A DMeteredStream.java63 * don't close automatically when mark is set and is valid;
64 * cannot reset() after close()
67 close();
92 close();
160 public void close() throws IOException { method in class:MeteredStream
168 in.close();
210 close();
212 pi.close();

Completed in 485 milliseconds

1234567891011>>