/openjdk7/jdk/src/share/classes/javax/swing/plaf/ |
H A D | FileChooserUI.java | 41 public abstract FileFilter getAcceptAllFileFilter(JFileChooser fc); argument 42 public abstract FileView getFileView(JFileChooser fc); argument 44 public abstract String getApproveButtonText(JFileChooser fc); argument 45 public abstract String getDialogTitle(JFileChooser fc); argument 47 public abstract void rescanCurrentDirectory(JFileChooser fc); argument 48 public abstract void ensureFileIsVisible(JFileChooser fc, File f); argument 57 public JButton getDefaultButton(JFileChooser fc) { argument
|
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | TryLock.java | 60 FileChannel fc = fis.getChannel(); 64 fl = fc.tryLock(0, fc.size(), shared); 66 fl = fc.lock(0, fc.size(), shared); 75 fc.close(); 83 FileChannel fc = fis.getChannel(); 87 fl = fc.tryLock(0, fc.size(), shared); 89 fl = fc [all...] |
H A D | Args.java | 62 final FileChannel fc = new RandomAccessFile(f, "rw").getChannel(); 66 fc.transferFrom(fc, -1, 1); 71 fc.transferFrom(fc, 0, -1); 76 fc.transferTo(-1, 1, fc); 81 fc.transferTo(0, -1, fc); 86 fc [all...] |
H A D | Force.java | 46 FileChannel fc = fis.getChannel(); 47 fc.write(ByteBuffer.wrap(srcData)); 48 fc.force(false); 49 fc.write(ByteBuffer.wrap(srcData)); 50 fc.close(); 58 FileChannel fc = fis.getChannel(); 59 fc.force(true); 60 fc.close();
|
H A D | InterruptDeadlock.java | 43 final FileChannel fc; field in class:InterruptDeadlock.Reader 46 Reader(FileChannel fc) { argument 47 this.fc = fc; 57 int n = fc.read(bb, pos); 60 // fc.size is important here as it is position sensitive 61 if (pos > fc.size()) 75 static Reader startReader(FileChannel fc) { argument 76 Reader r = new Reader(fc); 87 try (FileChannel fc [all...] |
H A D | MapAssertions.java | 39 FileChannel fc = raf.getChannel(); 40 long fileSize = fc.size(); 42 fc.map(FileChannel.MapMode.READ_ONLY, 0l, fileSize); 43 fc.close();
|
H A D | MapReadOnly.java | 38 FileChannel fc = raf.getChannel(); 39 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0L, 40 (int) fc.size()); 48 fc.close();
|
H A D | Transfers.java | 57 private static void writeBytes(byte[] ba, FileChannel fc, argument 61 fc.position(off); 62 if (fc.write(ByteBuffer.wrap(ba, 0, len)) != len) 64 fc.position(0); 68 FileChannel fc, int off, int len) 74 writeBytes(ba, fc, off, len); 77 private static void writeZeroBytes(FileChannel fc, int off, int len) argument 81 writeBytes(ba, fc, off, len); 84 private static void checkBytes(FileChannel fc, int off, int len, argument 89 fc 67 writeRandomBytes(long seed, FileChannel fc, int off, int len) argument 98 checkRandomBytes(FileChannel fc, int off, int len, long seed) argument 108 checkZeroBytes(FileChannel fc, int off, int len) argument 117 dump(FileChannel fc) argument 201 private final FileChannel fc; field in class:Transfers.FileSource 299 private final FileChannel fc; field in class:Transfers.FileTarget 421 testTo(long seed, FileChannel fc, int off, int len, Target tgt) argument 452 testFrom(long seed, Source src, FileChannel fc, int off, int len) argument [all...] |
H A D | Lock.java | 78 FileChannel fc = fis.getChannel(); 82 lock = fc.lock(0, 10, false); 86 FileLock lock2 = fc.lock(5, 10, false); 131 fc.close(); 172 try (FileChannel fc = new FileOutputStream(blah, true).getChannel()) { 173 fc.tryLock().release(); 174 fc.tryLock(0L, 1L, false).release(); 175 fc.lock().release(); 176 fc.lock(0L, 1L, false).release(); 178 try (FileChannel fc [all...] |
H A D | Write.java | 57 FileChannel fc = fos.getChannel(); 58 fc.write(dsts, 2, 1); 79 FileChannel fc = fos.getChannel(); 81 fc.write(srcs, 1, 2); 83 fc.close(); 87 fc = fis.getChannel(); 90 fc.read(bb); 103 fc.close(); 116 FileChannel fc = fos.getChannel(); 118 fc [all...] |
H A D | MapOverEnd.java | 39 FileChannel fc = raf.getChannel(); 40 MappedByteBuffer map = fc.map(FileChannel.MapMode.READ_WRITE, 0, 2048); 41 fc.close();
|
H A D | ReadFull.java | 48 FileChannel fc = fis.getChannel(); 51 long bytesRead = fc.read(dstBuffers) ; 55 fc.close();
|
H A D | Truncate.java | 62 try (FileChannel fc = (i < 50) ? 66 if (fc.size() != testSize) 70 fc.position(position); 73 fc.truncate(newSize); 75 if (fc.size() != newSize) 79 if (fc.position() != newSize) 82 if (fc.position() != position) 96 try (FileChannel fc = (i < 5) ? 102 fc.truncate(newSize); 103 if (fc [all...] |
H A D | ClosedByInterrupt.java | 50 try (FileChannel fc = new FileOutputStream(f).getChannel()) { 52 fc.write(bb); 74 try (FileChannel fc = new RandomAccessFile(f, "rwd").getChannel()) { 80 ReaderWriter task = new ReaderWriter(fc, interruptible); 90 while (fc.isOpen()) { 109 final FileChannel fc; field in class:ClosedByInterrupt.ReaderWriter 113 ReaderWriter(FileChannel fc, boolean interruptible) { argument 114 this.fc = fc; 129 fc [all...] |
H A D | Position.java | 54 try (FileChannel fc = (generator.nextBoolean()) ? 59 fc.position(newPos); 60 if (fc.position() != newPos) 67 try (FileChannel fc = (generator.nextBoolean()) ? 71 if (fc.position() != fc.size()) 74 fc.write(ByteBuffer.wrap(buf));
|
H A D | ScatteringRead.java | 63 FileChannel fc = fis.getChannel(); 67 long bytesRead = fc.read(dstBuffers); 101 FileChannel fc = fis.getChannel(); 103 long bytesRead = fc.read(dstBuffers); 123 FileChannel fc = raf.getChannel(); 124 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, 0, 129 fc.close(); 134 fc = fis.getChannel(); 136 long bytesRead = fc.read(dstBuffers); 140 fc [all...] |
/openjdk7/jdk/test/java/nio/MappedByteBuffer/ |
H A D | Basic.java | 41 FileChannel fc = fos.getChannel(); 42 fc.write(ByteBuffer.wrap(srcData)); 43 fc.close(); 47 fc = fis.getChannel(); 48 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0, 10); 56 mbb = fc.map(FileChannel.MapMode.READ_ONLY, 1, 10); 60 fc.close(); 64 fc = raf.getChannel(); 65 mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0, 10); 68 fc [all...] |
H A D | Truncate.java | 45 final FileChannel fc = new RandomAccessFile(blah, "rw").getChannel(); 46 fc.position(INITIAL_FILE_SIZE).write(ByteBuffer.wrap("THE END".getBytes())); 48 fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); 51 fc.truncate(TRUNCATED_FILE_SIZE); 75 fc.close();
|
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | BigReadWrite.java | 44 FileChannel fc = fos.getChannel(); 48 fc.write(buf); 50 fc.write(buf); 52 fc.write(buf); 58 fc.write(buf); 63 fc.close();
|
/openjdk7/langtools/test/tools/javac/boxing/ |
H A D | T6816548.java | 61 final char fc = '0'; 62 Byte b = fc; 63 Short s = fc; 64 Character c = fc;
|
/openjdk7/jdk/src/share/sample/nio/server/ |
H A D | FileContent.java | 80 private FileChannel fc = null; field in class:FileContent 89 if (fc == null) 90 fc = new RandomAccessFile(fn, "r").getChannel(); 91 length = fc.size(); 96 if (fc == null) 108 position += cio.transferTo(fc, position, length - position); 113 if (fc != null) { 114 fc.close(); 115 fc = null;
|
/openjdk7/jdk/test/java/nio/channels/Channels/ |
H A D | Write.java | 41 FileChannel fc = fos.getChannel(); 42 OutputStream out = Channels.newOutputStream(fc); 48 fc.close();
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/file/ |
H A D | PerfDataBuffer.java | 60 FileChannel fc = new RandomAccessFile(f, mode).getChannel(); 64 bb = fc.map(FileChannel.MapMode.READ_ONLY, 0L, (int)fc.size()); 66 bb = fc.map(FileChannel.MapMode.READ_WRITE, 0L, (int)fc.size()); 71 fc.close(); // doesn't need to remain open
|
/openjdk7/jdk/src/macosx/native/jobjc/src/tests/java/com/apple/jobjc/ |
H A D | BenchFunCall.java | 32 final static FunCall fc = new FunCall(JObjCRuntime.getInstance(), "sin", DoubleCoder.INST, DoubleCoder.INST); field in class:BenchFunCall 50 fc.init(ARGS); 52 fc.invoke(ARGS); 74 FunCall.invoke(fc.cif.cif.bufferPtr, fc.fxnPtr, ARGS.retValPtr, ARGS.buffer.bufferPtr);
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaFileChooserUI.java | 163 protected void installListeners(final JFileChooser fc) { argument 164 doubleClickListener = createDoubleClickListener(fc, fFileList); 167 propertyChangeListener = createPropertyChangeListener(fc); 169 fc.addPropertyChangeListener(propertyChangeListener); 171 if (model != null) fc.addPropertyChangeListener(model); 187 fc.addAncestorListener(ancestorListener); 189 fc.registerKeyboardAction(new CancelSelectionAction(), KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); 190 dragAndDropTarget = new DropTarget(fc, DnDConstants.ACTION_COPY, new DnDHandler(), true); 191 fc.setDropTarget(dragAndDropTarget); 194 protected void uninstallListeners(final JFileChooser fc) { argument 206 installDefaults(final JFileChooser fc) argument 213 installIcons(final JFileChooser fc) argument 225 installStrings(final JFileChooser fc) argument 296 uninstallDefaults(final JFileChooser fc) argument 301 uninstallIcons(final JFileChooser fc) argument 314 uninstallStrings(final JFileChooser fc) argument 362 createPropertyChangeListener(final JFileChooser fc) argument 482 rescanCurrentDirectory(final JFileChooser fc) argument 487 ensureFileIsVisible(final JFileChooser fc, final File f) argument 510 getApproveButton(final JFileChooser fc) argument 514 getApproveButtonMnemonic(final JFileChooser fc) argument 518 getApproveButtonToolTipText(final JFileChooser fc) argument 522 getApproveButtonText(final JFileChooser fc) argument 526 getCancelButtonToolTipText(final JFileChooser fc) argument 537 isSelectableForMode(final JFileChooser fc, final File f) argument 551 createListSelectionListener(final JFileChooser fc) argument 670 createDoubleClickListener(final JFileChooser fc, final JTableExtension list) argument 794 getAcceptAllFileFilter(final JFileChooser fc) argument 798 getFileView(final JFileChooser fc) argument 805 getDialogTitle(final JFileChooser fc) argument 826 makeFile(final JFileChooser fc, final String filename) argument 1124 createDirectoryComboBoxRenderer(final JFileChooser fc) argument 1145 createDirectoryComboBoxModel(final JFileChooser fc) argument 1411 installComponents(final JFileChooser fc) argument 1568 setDefaultButtonForMode(final JFileChooser fc) argument 1578 setFocusForMode(final JFileChooser fc) argument 1586 updateButtonState(final JFileChooser fc) argument 1624 setBottomPanelForMode(final JFileChooser fc) argument 1669 uninstallComponents(final JFileChooser fc) argument 1694 createList(final JFileChooser fc) argument 1857 installPanel(JFileChooser fc, boolean controlButtonsAreShown) argument 1859 updateButtonState(JFileChooser fc, File f) argument 1863 isSelectableInList(final JFileChooser fc, final File f) argument 1869 approveSelection(final JFileChooser fc) argument 1873 getDefaultButton(final JFileChooser fc) argument 1878 getFocusComponent(final JFileChooser fc) argument 1882 getApproveButtonText(final JFileChooser fc) argument 1888 getApproveButtonText(final JFileChooser fc, final String fallbackText) argument 1897 getApproveButtonMnemonic(final JFileChooser fc) argument 1903 getApproveButtonToolTipText(final JFileChooser fc) argument 1907 getApproveButtonToolTipText(final JFileChooser fc, final String fallbackText) argument 1916 getCancelButtonToolTipText(final JFileChooser fc) argument 1931 installPanel(final JFileChooser fc, final boolean controlButtonsAreShown) argument 1941 inOpenDirectoryMode(final JFileChooser fc, final File f) argument 1949 approveSelection(final JFileChooser fc) argument 1967 updateButtonState(final JFileChooser fc, final File f) argument 1982 isSelectableInList(final JFileChooser fc, final File f) argument 1987 getApproveButtonToolTipText(final JFileChooser fc) argument 2007 installPanel(final JFileChooser fc, final boolean controlButtonsAreShown) argument 2015 isSelectableInList(final JFileChooser fc, final File f) argument 2020 approveSelection(final JFileChooser fc) argument 2031 updateButtonState(final JFileChooser fc, final File f) argument 2036 getApproveButtonText(final JFileChooser fc) argument 2041 getApproveButtonMnemonic(final JFileChooser fc) argument 2045 getApproveButtonToolTipText(final JFileChooser fc) argument 2051 getCancelButtonToolTipText(final JFileChooser fc) argument 2066 installPanel(final JFileChooser fc, final boolean controlButtonsAreShown) argument 2073 inOpenDirectoryMode(final JFileChooser fc, final File f) argument 2078 getFocusComponent(final JFileChooser fc) argument 2082 updateButtonState(final JFileChooser fc, final File f) argument 2089 isSelectableInList(final JFileChooser fc, final File f) argument 2093 getApproveButtonText(final JFileChooser fc) argument 2098 getApproveButtonMnemonic(final JFileChooser fc) argument 2102 getApproveButtonToolTipText(final JFileChooser fc) argument 2106 getCancelButtonToolTipText(final JFileChooser fc) argument 2113 installPanel(final JFileChooser fc, final boolean controlButtonsAreShown) argument 2117 getDefaultButton(final JFileChooser fc) argument 2121 updateButtonState(final JFileChooser fc, final File f) argument 2144 installPanel(final JFileChooser fc, final boolean controlButtonsAreShown) argument 2151 getFocusComponent(final JFileChooser fc) argument 2155 getApproveButtonMnemonic(final JFileChooser fc) argument 2159 getApproveButtonToolTipText(final JFileChooser fc) argument 2166 updateButtonState(final JFileChooser fc, final File f) argument 2184 installPanel(final JFileChooser fc, final boolean controlButtonsAreShown) argument 2191 approveSelection(final JFileChooser fc) argument 2201 updateButtonState(final JFileChooser fc, final File f) argument [all...] |