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

1234567891011>>

/libcore/ojluni/src/main/java/java/lang/
H A DAutoCloseable.java42 * declare concrete implementations of the {@code close} method to
44 * if the close operation cannot fail.
47 * to not have the {@code close} method throw {@link
56 * exception to be suppressed, the {@code AutoCloseable.close}
59 * <p>Note that unlike the {@link java.io.Closeable#close close}
60 * method of {@link java.io.Closeable}, this {@code close} method
62 * calling this {@code close} method more than once may have some
63 * visible side effect, unlike {@code Closeable.close} which is
67 * to make their {@code close} method
71 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
47 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
/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.java98 fos.close();
110 is.close();
119 fos.close();
120 fis.close();
128 is.close();
142 is.close();
152 is.close();
166 is.close();
174 is.close();
188 fis2.close();
[all...]
H A DFileOutputStreamTest.java48 * Tears down the fixture, for example, close a network connection. This
58 fis.close();
61 fos.close();
81 fos.close();
84 fos.close();
85 fis.close();
98 fos.close();
109 fos.close();
112 fos.close();
131 fos.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 DSocketTest.java52 socket.close();
97 client.close();
98 socket.close();
170 theSocket.close();
199 theSocket.close();
200 worker.close();
201 server.close();
209 theSocket.close();
225 theSocket.close();
226 theSocket2.close();
[all...]
H A DServerSocketTest.java76 cs.close();
113 ss.close();
135 s2.close();
141 s1.close();
146 s1.close();
148 s1.close();
162 sconn.close();
164 s.close();
179 sconn.close();
182 s.close();
932 protected void close() throws IOException { method in class:ServerSocketTest.MockSocketImpl
[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.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...]
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DPosterOutputStream.java36 * when close() is called, it is no longer possible to write
98 * After close() has been called, it is no longer possible to write
101 public synchronized void close() throws IOException { method in class:PosterOutputStream
103 super.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...]
/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();

Completed in 722 milliseconds

1234567891011>>