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

1234567891011>>

/openjdk9/jdk/src/java.base/share/classes/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...]
/openjdk9/langtools/test/tools/javac/diags/examples/
H A DTryResourceThrowsInterruptedExc.java28 public void close() throws InterruptedException {} method in class:TryResourceThrowsInterruptedException
H A DTryWithResourcesExprNeedsVar.java35 public void close() throws Exception { method in class:CloseableImpl
H A DResourceClosed.java24 // key: compiler.warn.try.explicit.close.call
32 out.close();
H A DUnreportedExceptionImplicitClose.java24 // key: compiler.err.unreported.exception.implicit.close
28 public void close() throws Exception { } method in class:UnreportedExceptionImplicitClose.MyCloseable
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/
H A DDebugCloseable.java26 * An {@link AutoCloseable} whose {@link #close()} does not throw a checked exception.
33 public void close() {
38 void close(); method in interface:DebugCloseable
H A DIndent.java26 * Object used to close a debug {@link Debug#indent() indentation} scope.
51 void close(); method in interface:Indent
/openjdk9/langtools/test/tools/javac/TryWithResources/
H A DTwrLint.java14 r1.close(); // The resource's close
15 r2.close(42); // *Not* the resource's close
35 public void close () { method in class:TwrLint
42 public void close (int arg) { method in class:TwrLint
52 public void close () { method in class:DeprecatedAutoCloseable
H A DTwrAndTypeVariables2Test.java33 public void close() { method in class:TwrAndTypeVariables2Test_01
35 public boolean close(long timeout) { method in class:TwrAndTypeVariables2Test_01
H A DResourceInterface.java47 void close() throws E1; method in interface:ResourceInterface.C1
51 void close() throws E2; method in interface:ResourceInterface.C2
55 void close() throws E2, E1; method in interface:ResourceInterface.C3
/openjdk9/jdk/test/sun/nio/ch/
H A DBasic.java35 p.source().close();
36 p.sink().close();
/openjdk9/corba/src/java.corba/share/classes/com/sun/corba/se/pept/transport/
H A DListenerThread.java34 public void close(); method in interface:ListenerThread
H A DReaderThread.java33 public void close(); method in interface:ReaderThread
/openjdk9/jdk/src/java.base/share/classes/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
/openjdk9/jdk/src/java.base/share/classes/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
/openjdk9/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/
H A DExceptionallyCloseable.java42 * {@link #close()}. Implementation of this interface are
47 * @throws IOException if {@link #close()} fails.
50 close();
53 public static void close(Throwable t, Closeable c) throws IOException { method in interface:ExceptionallyCloseable
57 c.close();
/openjdk9/jdk/test/java/net/Socket/
H A DShutdownBoth.java43 s1.close();
44 s2.close();
45 ss.close();
H A DSetReceiveBufferSize.java49 ss.close();
50 s.close();
51 accepted.close();
/openjdk9/jdk/test/java/net/Socket/setReuseAddress/
H A DRestart.java52 // close server socket and the accepted connection
53 ss.close();
54 s2.close();
58 ss.close();
60 // close the client socket
61 s1.close();
69 if (ss != null) ss.close();
70 if (s1 != null) s1.close();
71 if (s2 != null) s2.close();
/openjdk9/jdk/test/java/net/
H A DB6499348.java45 s.close();
46 ss.close();
47 ds.close();
/openjdk9/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/win32/coff/
H A DCOFFFile.java39 public void close(); method in interface:COFFFile
/openjdk9/jdk/src/java.desktop/share/classes/javax/sound/midi/
H A DReceiver.java63 * {@link MidiDevice#close MidiDevice.close}, the {@code Receiver} is
64 * closed, too. For a detailed description of open/close behaviour see the
70 void close(); method in interface:Receiver
H A DTransmitter.java65 * calling {@link MidiDevice#close MidiDevice.close}, the
67 * open/close behaviour see the class description of
73 void close(); method in interface:Transmitter
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/media/sound/
H A DModelDirector.java46 void close(); method in interface:ModelDirector

Completed in 277 milliseconds

1234567891011>>