Searched refs:open (Results 126 - 150 of 366) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DDatagramChannel.java40 * <p> A datagram channel is created by invoking one of the {@link #open open} methods
42 * pre-existing datagram socket. A newly-created datagram channel is open but not
136 * The {@link #open(ProtocolFamily) open} allows the protocol family to be
137 * selected when opening a datagram channel, and should be used to open
145 public static DatagramChannel open() throws IOException { method in class:DatagramChannel
178 public static DatagramChannel open(ProtocolFamily family) throws IOException { method in class:DatagramChannel
240 * is {@link #isOpen open} and connected
/openjdk7/jdk/test/java/nio/channels/AsynchronousChannelGroup/
H A DRestart.java91 AsynchronousServerSocketChannel.open(group)
119 AsynchronousSocketChannel ch = AsynchronousSocketChannel.open();
H A DUnbounded.java46 AsynchronousServerSocketChannel.open()
67 channels[i] = AsynchronousSocketChannel.open();
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DLock.java79 slave.open(file.getPath()).lock();
82 .open(file.toPath(), READ, WRITE);
115 slave.open(file.getPath()).lock();
119 .open(file.toPath(), READ, WRITE);
150 ServerSocketChannel ssc = ServerSocketChannel.open()
173 static final String OPEN_CMD = "open";
209 LockSlaveMirror open(String file) throws IOException { method in class:Lock.LockSlaveMirror
274 SocketChannel sc = SocketChannel.open(new InetSocketAddress(port));
305 throw new RuntimeException("File already open");
306 fc = FileChannel.open(Path
[all...]
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/
H A DRefused.java57 client = DatagramChannel.open();
58 server = DatagramChannel.open();
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DInterruptDeadlock.java87 try (FileChannel fc = FileChannel.open(file, CREATE, TRUNCATE_EXISTING, WRITE)) {
97 try (FileChannel fc = FileChannel.open(file)) {
126 // the channel should not be open at this point
H A DPosition.java55 FileChannel.open(blah, READ) :
68 FileChannel.open(blah, APPEND) :
/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DCloseDuringWrite.java57 try (ServerSocketChannel ssc = ServerSocketChannel.open()) {
66 try (SocketChannel source = SocketChannel.open(sa);
H A DConnect.java60 sc = SocketChannel.open();
63 selector = Selector.open();
H A DWrite.java64 SocketChannel sc = SocketChannel.open();
94 this.ssc = ServerSocketChannel.open().bind(new InetSocketAddress(0));
H A DVectorParams.java67 SocketChannel sc = SocketChannel.open(isa);
80 DatagramChannel dc = DatagramChannel.open();
94 Pipe p = Pipe.open();
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftSynthesizer/
H A DImplicitOpenClose.java27 @summary Test SoftSynthesizer implicit open/close using getReceiver. */
53 // Test single open/close cycle
57 throw new Exception("Synthesizer not open!");
66 throw new Exception("Synthesizer not open!");
69 throw new Exception("Synthesizer not open!");
80 synth.open();
83 throw new Exception("Synthesizer not open!");
94 synth.open();
96 throw new Exception("Synthesizer not open!");
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DAbstractDataLine.java103 public final void open(AudioFormat format, int bufferSize) throws LineUnavailableException { method in class:AbstractDataLine
106 if (Printer.trace) Printer.trace("> AbstractDataLine.open(format, bufferSize) (class: "+getClass().getName());
108 // if the line is not currently open, try to open it with this format and buffer size
111 // $$fb part of fix for 4679187: Clip.open() throws unexpected Exceptions
114 if (Printer.debug) Printer.debug(" need to open the mixer...");
116 //mixer.open(this, format, bufferSize);
117 mixer.open(this);
120 // open the data line. may throw LineUnavailableException.
123 // if we succeeded, set the open stat
152 public final void open(AudioFormat format) throws LineUnavailableException { method in class:AbstractDataLine
408 public final void open() throws LineUnavailableException { method in class:AbstractDataLine
[all...]
H A DAbstractMixer.java73 * if this mixer had been opened manually with open()
91 * Source lines (ports) currently open
97 * Target lines currently open.
287 * This implementation tries to open the mixer with its current format and buffer size settings.
289 public final synchronized void open() throws LineUnavailableException { method in class:AbstractMixer
290 open(true);
294 * This implementation tries to open the mixer with its current format and buffer size settings.
296 final synchronized void open(boolean manual) throws LineUnavailableException { method in class:AbstractMixer
297 if (Printer.trace) Printer.trace(">> AbstractMixer: open()");
300 // if the mixer is not currently open, se
321 final synchronized void open(Line line) throws LineUnavailableException { method in class:AbstractMixer
[all...]
H A DSoftMixingMixer.java73 private boolean open = false; field in class:SoftMixingMixer
299 open = false;
330 return open;
334 public void open() throws LineUnavailableException { method in class:SoftMixingMixer
339 open(null);
342 public void open(SourceDataLine line) throws LineUnavailableException { method in class:SoftMixingMixer
431 line.open(getFormat(), bufferSize);
479 throw new LineUnavailableException("Mixer is already open");
483 open = true;
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsChannelFactory.java62 * Represents the flags from a user-supplied set of open options.
132 * The path of the file to open/create
159 FileDescriptor fdObj = open(pathForWindows, pathToCheck, flags, pSecurityDescriptor);
160 return FileChannelImpl.open(fdObj, pathForWindows, flags.read, flags.write, flags.append, null);
167 * The path of the file to open/create
194 // open file for overlapped I/O
197 fdObj = open(pathForWindows, pathToCheck, flags, pSecurityDescriptor);
205 return WindowsAsynchronousFileChannelImpl.open(fdObj, flags.read, flags.write, pool);
217 * encapsulating the handle to the open file.
219 private static FileDescriptor open(Strin method in class:WindowsChannelFactory
[all...]
/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/
H A DConnect.java68 ssc = SctpServerChannel.open().bind(null);
74 channel = SctpChannel.open();
136 channel = SctpChannel.open();
179 channel = SctpChannel.open();
199 channel = SctpChannel.open();
H A DBind.java79 channel = SctpChannel.open();
102 channel.close(); /* open a new unbound channel for test */
103 channel = SctpChannel.open();
111 channel.close(); /* open a new unbound channel for test */
112 channel = SctpChannel.open();
121 channel.close(); /* open a new unbound channel for test */
122 channel = SctpChannel.open();
152 channel = SctpChannel.open();
283 SctpServerChannel ssc = SctpServerChannel.open();
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DBasic.java75 ssc = ServerSocketChannel.open().bind(new InetSocketAddress(0));
99 try (AsynchronousSocketChannel ch = AsynchronousSocketChannel.open()) {
120 AsynchronousSocketChannel ch = AsynchronousSocketChannel.open();
132 try (AsynchronousSocketChannel ch = AsynchronousSocketChannel.open()) {
177 try (AsynchronousSocketChannel ch = AsynchronousSocketChannel.open()) {
202 AsynchronousSocketChannel ch = AsynchronousSocketChannel.open();
227 try (AsynchronousSocketChannel ch = AsynchronousSocketChannel.open()) {
240 try (AsynchronousSocketChannel ch = AsynchronousSocketChannel.open()) {
258 ch = AsynchronousSocketChannel.open();
279 ch = AsynchronousSocketChannel.open();
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DFileInputStream.java52 /* File Descriptor - handle to the open file */
146 open(name);
196 private native void open(String name) throws FileNotFoundException; method in class:FileInputStream
398 channel = FileChannelImpl.open(fd, path, true, false, this);
H A DFileOutputStream.java40 * this class will fail if the file involved is already open.
221 open(name, append);
272 private native void open(String name, boolean append) method in class:FileOutputStream
432 channel = FileChannelImpl.open(fd, path, false, true, append, this);
/openjdk7/jdk/test/java/nio/channels/Selector/
H A DChangingInterests.java138 ServerSocketChannel.open().bind(new InetSocketAddress(0));
140 final SocketChannel sc = SocketChannel.open();
149 try (Selector sel = Selector.open()) {
H A DKeySets.java63 final Selector sel = Selector.open();
132 DatagramChannel dc = DatagramChannel.open();
139 final Selector sel = Selector.open();
/openjdk7/jdk/src/solaris/native/java/util/
H A DFileSystemPreferences.c57 * Try to open a named lock file.
81 fd = open(fname, O_RDONLY, 0);
84 fd = open(fname, O_WRONLY|O_CREAT, permission);
/openjdk7/jdk/src/windows/classes/sun/nio/ch/
H A DPipeImpl.java90 ssc = ServerSocketChannel.open();
97 sc1 = SocketChannel.open(sa);

Completed in 246 milliseconds

1234567891011>>