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

1234567891011>>

/libcore/luni/src/main/java/java/lang/
H A DAutoCloseable.java21 * are not used any longer. Calling the {@code close} method releases resources
29 * foo.close();
42 * call {@link #close} more than once.
44 void close() throws Exception; method in interface:AutoCloseable
/libcore/luni/src/main/java/java/io/
H A DCloseable.java20 * An {@code AutoCloseable} whose close method may throw an {@link IOException}.
27 * <p>Although only the first call has any effect, it is safe to call close
29 * overridden {@code AutoCloseable.close()}, which may be called at most
32 void close() throws IOException; method in interface:Closeable
H A DObjectInput.java44 public void close() throws IOException; method in interface:ObjectInput
H A DObjectOutput.java34 public void close() throws IOException; method in interface:ObjectOutput
/libcore/luni/src/main/java/java/util/logging/
H A DConsoleHandler.java57 public void close() { method in class:ConsoleHandler
58 super.close(false);
/libcore/luni/src/main/java/java/nio/channels/
H A DInterruptibleChannel.java27 * the channel's {@link #close()} method. The I/O thread will throw an
50 public void close() throws IOException; method in interface:InterruptibleChannel
H A DChannel.java49 * If multiple threads attempt to simultaneously close a channel, then only
56 public void close() throws IOException; method in interface:Channel
/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 DOldFileInputStreamTest.java41 is.close();
48 is.close();
61 fis.close();
74 is.close();
80 is.close();
94 is.close();
126 fis.close();
143 is.close();
157 is.close();
162 is.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/luni/src/test/java/libcore/java/net/
H A DOldUnixSocketTest.java43 pingServer.close();
53 worker.close();
63 clientIn.close();
78 pingClient.close();
79 pingServer.close();
95 theSocket.close();
104 ss.close();
113 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();
373 protected void close() throws IOException { method in class:OldServerSocketTest.MockSocketImpl
[all...]
H A DOldSocketTest.java86 ss.close();
91 s.close();
110 socket.close();
127 s2.close();
135 s1.close();
176 // Test for method void java.net.Socket.close()
177 int sport = startServer("SServer close");
184 s.close();
208 is.close();
209 client.close();
2205 protected void close() throws IOException { method in class:OldSocketTest.MockSocketImpl
[all...]
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
H A DBrokenInputStream.java51 public void close() throws IOException { method in class:BrokenInputStream
52 stream.close();
/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...]
H A DOldResultSetTest.java57 target.close();
58 stForward.close();
72 // res.close() does not wrap up
82 target.close();
89 // statement.close() does not wrap up
100 target.close();
108 * According to the JDBC spec close has to "Releases this ResultSet
115 target.close();
138 s.close();
164 rs1.close();
[all...]
/libcore/luni/src/test/java/libcore/sqlite/
H A DQueryTimeoutTest.java78 connection.close();
89 statement.close();
105 statement.close();
107 resultSet.close();
120 statement.close();
135 resultSet.close();
136 statement.close();
147 statement.close();
163 statement.close();
/libcore/luni/src/test/java/libcore/io/
H A DOsTest.java31 fis.close();
35 s.close();
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherOutputStreamTest.java27 * javax.crypto.CipherOutputStream#close()
33 .getInstance("DES/CBC/PKCS5Padding")).close();
42 .getInstance("DES/CBC/PKCS5Padding")).close();
/libcore/luni/src/test/java/tests/api/java/io/
H A DObjectInputStreamTest.java57 oos.close();
77 oos.close();
83 ois.close();
90 oos.close();
95 ois.close();
100 oos.close();
112 ois.close();
116 // Test for method void java.io.ObjectInputStream.close()
118 oos.close();
124 ois.close();
[all...]
/libcore/include/
H A DScopedFd.h31 close(fd);

Completed in 406 milliseconds

1234567891011>>