/openjdk7/jdk/src/share/sample/nio/file/ |
H A D | Copy.java | 41 import java.nio.file.*; 42 import static java.nio.file.StandardCopyOption.*; 43 import java.nio.file.attribute.*; 44 import static java.nio.file.FileVisitResult.*; 55 * Returns {@code true} if okay to overwrite a file ("cp -i") 57 static boolean okayToOverwrite(Path file) { argument 58 String answer = System.console().readLine("overwrite %s (yes/no)? ", file); 63 * Copy source file to target location. If {@code prompt} is true then 65 * parameter determines if file attributes should be copied/preserved. 81 * A {@code FileVisitor} that copies a file 116 visitFile(Path file, BasicFileAttributes attrs) argument 138 visitFileFailed(Path file, IOException exc) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | SolarisUserDefinedFileAttributeView.java | 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 14 * version 2 for more details (a copy is included in the LICENSE file that 28 import java.nio.file.*; 45 private byte[] nameAsBytes(UnixPath file, String name) throws IOException { argument 52 throw new FileSystemException(file.getPathForExceptionMessage(), 59 private final UnixPath file; field in class:SolarisUserDefinedFileAttributeView 62 SolarisUserDefinedFileAttributeView(UnixPath file, boolean followLinks) { argument 63 this.file = file; [all...] |
/openjdk7/langtools/test/tools/javap/ |
H A D | T6879371.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 27 * @summary javap does not close internal default file manager 40 // a test zip file and know that it will be used by 79 void compileTestFile(File classDir, File file) { argument 81 new String[] { "-d", classDir.getPath(), file.getPath() }); 88 for (File file: dir.listFiles()) { 89 if (file.isFile()) { 90 byte[] data = new byte[(int) file.length()]; 91 DataInputStream in = new DataInputStream(new FileInputStream(file)); 94 zipOut.putNextEntry(new ZipEntry(file [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/ |
H A D | ConstantCP.java | 84 * Initialize instance from file data. 87 * @param file Input stream 90 ConstantCP(byte tag, DataInputStream file) throws IOException argument 92 this(tag, file.readUnsignedShort(), file.readUnsignedShort()); 107 * Dump constant field reference to file stream in binary format. 109 * @param file Output file stream 112 public final void dump(DataOutputStream file) throws IOException argument 114 file [all...] |
H A D | ConstantNameAndType.java | 85 * Initialize instance from file data. 87 * @param file Input stream 90 ConstantNameAndType(DataInputStream file) throws IOException argument 92 this((int)file.readUnsignedShort(), (int)file.readUnsignedShort()); 119 * Dump name and signature index to file stream in binary format. 121 * @param file Output file stream 124 public final void dump(DataOutputStream file) throws IOException argument 126 file [all...] |
H A D | ConstantValue.java | 85 * Construct object from file stream. 88 * @param file Input stream 92 ConstantValue(int name_index, int length, DataInputStream file, argument 95 this(name_index, length, (int)file.readUnsignedShort(), constant_pool); 123 * Dump constant value attribute to file stream on binary format. 125 * @param file Output file stream 128 public final void dump(DataOutputStream file) throws IOException argument 130 super.dump(file); 131 file [all...] |
H A D | Deprecated.java | 97 * Construct object from file stream. 100 * @param file Input stream 104 Deprecated(int name_index, int length, DataInputStream file, argument 111 file.readFully(bytes); 128 * Dump source file attribute to file stream in binary format. 130 * @param file Output file stream 133 public final void dump(DataOutputStream file) throws IOException argument 135 super.dump(file); [all...] |
H A D | ExceptionTable.java | 103 * Construct object from file stream. 106 * @param file Input stream 110 ExceptionTable(int name_index, int length, DataInputStream file, argument 115 number_of_exceptions = file.readUnsignedShort(); 119 exception_index_table[i] = file.readUnsignedShort(); 134 * Dump exceptions attribute to file stream in binary format. 136 * @param file Output file stream 139 public final void dump(DataOutputStream file) throws IOException argument 141 super.dump(file); [all...] |
H A D | Field.java | 80 * Construct object from file stream. 81 * @param file Input stream 83 Field(DataInputStream file, ConstantPool constant_pool) argument 86 super(file, constant_pool);
|
H A D | FieldOrMethod.java | 87 * Construct object from file stream. 88 * @param file Input stream 92 protected FieldOrMethod(DataInputStream file, ConstantPool constant_pool) argument 95 this(file.readUnsignedShort(), file.readUnsignedShort(), 96 file.readUnsignedShort(), null, constant_pool); 98 attributes_count = file.readUnsignedShort(); 101 attributes[i] = Attribute.readAttribute(file, constant_pool); 123 * Dump object to file stream on binary format. 125 * @param file Outpu 128 dump(DataOutputStream file) argument [all...] |
H A D | InnerClass.java | 87 * Construct object from file stream. 88 * @param file Input stream 91 InnerClass(DataInputStream file) throws IOException argument 93 this(file.readUnsignedShort(), file.readUnsignedShort(), 94 file.readUnsignedShort(), file.readUnsignedShort()); 123 * Dump inner class attribute to file stream in binary format. 125 * @param file Output file strea 128 dump(DataOutputStream file) argument [all...] |
H A D | InnerClasses.java | 67 * to the source file of this class. 102 * Construct object from file stream. 106 * @param file Input stream 110 InnerClasses(int name_index, int length, DataInputStream file, argument 115 number_of_classes = file.readUnsignedShort(); 119 inner_classes[i] = new InnerClass(file); 132 * Dump source file attribute to file stream in binary format. 134 * @param file Output file strea 137 dump(DataOutputStream file) argument [all...] |
H A D | LineNumber.java | 74 private int line_number; // number in source file 84 * Construct object from file stream. 85 * @param file Input stream 88 LineNumber(DataInputStream file) throws IOException argument 90 this(file.readUnsignedShort(), file.readUnsignedShort()); 95 * @param line_number line number in source file 115 * Dump line number/pc pair to file stream in binary format. 117 * @param file Output file strea 120 dump(DataOutputStream file) argument [all...] |
H A D | LineNumberTable.java | 101 * Construct object from file stream. 104 * @param file Input stream 108 LineNumberTable(int name_index, int length, DataInputStream file, argument 112 line_number_table_length = (file.readUnsignedShort()); 116 line_number_table[i] = new LineNumber(file); 129 * Dump line number table attribute to file stream in binary format. 131 * @param file Output file stream 134 public final void dump(DataOutputStream file) throws IOException argument 136 super.dump(file); [all...] |
H A D | LocalVariableTable.java | 100 * Construct object from file stream. 103 * @param file Input stream 107 LocalVariableTable(int name_index, int length, DataInputStream file, argument 112 local_variable_table_length = (file.readUnsignedShort()); 116 local_variable_table[i] = new LocalVariable(file, constant_pool); 131 * Dump local variable table attribute to file stream in binary format. 133 * @param file Output file stream 136 public final void dump(DataOutputStream file) throws IOException argument 138 super.dump(file); [all...] |
H A D | Method.java | 87 * Construct object from file stream. 88 * @param file Input stream 92 Method(DataInputStream file, ConstantPool constant_pool) argument 95 super(file, constant_pool);
|
H A D | PMGClass.java | 85 * Construct object from file stream. 88 * @param file Input stream 92 PMGClass(int name_index, int length, DataInputStream file, argument 95 this(name_index, length, file.readUnsignedShort(), file.readUnsignedShort(), 125 * Dump source file attribute to file stream in binary format. 127 * @param file Output file stream 130 public final void dump(DataOutputStream file) throw argument [all...] |
H A D | SourceFile.java | 66 * to the source file of this class. At most one SourceFile attribute 86 * Construct object from file stream. 89 * @param file Input stream 93 SourceFile(int name_index, int length, DataInputStream file, argument 96 this(name_index, length, file.readUnsignedShort(), constant_pool); 106 * string will be interpreted as the name of the file from which this 108 * of the directory contqining the file or an absolute path; this 131 * Dump source file attribute to file stream in binary format. 133 * @param file Outpu 136 dump(DataOutputStream file) argument [all...] |
H A D | StackMap.java | 97 * Construct object from file stream. 100 * @param file Input stream 104 StackMap(int name_index, int length, DataInputStream file, argument 109 map_length = file.readUnsignedShort(); 113 map[i] = new StackMapEntry(file, constant_pool); 117 * Dump line number table attribute to file stream in binary format. 119 * @param file Output file stream 122 public final void dump(DataOutputStream file) throws IOException argument 124 super.dump(file); [all...] |
H A D | StackMapType.java | 79 * Construct object from file stream. 80 * @param file Input stream 83 StackMapType(DataInputStream file, ConstantPool constant_pool) throws IOException argument 85 this(file.readByte(), -1, constant_pool); 88 setIndex(file.readShort()); 118 * Dump type entries to file. 120 * @param file Output file stream 123 public final void dump(DataOutputStream file) throws IOException argument 125 file [all...] |
H A D | Synthetic.java | 103 * Construct object from file stream. 106 * @param file Input stream 110 Synthetic(int name_index, int length, DataInputStream file, argument 117 file.readFully(bytes); 132 * Dump source file attribute to file stream in binary format. 134 * @param file Output file stream 137 public final void dump(DataOutputStream file) throws IOException argument 139 super.dump(file); [all...] |
H A D | Unknown.java | 127 * Construct object from file stream. 130 * @param file Input stream 134 Unknown(int name_index, int length, DataInputStream file, argument 142 file.readFully(bytes); 157 * Dump unknown bytes to file stream. 159 * @param file Output file stream 162 public final void dump(DataOutputStream file) throws IOException argument 164 super.dump(file); 166 file [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/ |
H A D | AttributeHTML.java | 65 * Convert found attributes into HTML file. 72 private PrintWriter file; // file to write to field in class:AttributeHTML 84 file = new PrintWriter(new FileOutputStream(dir + class_name + "_attributes.html")); 85 file.println("<HTML><BODY BGCOLOR=\"#C0C0C0\"><TABLE BORDER=0>"); 95 file.println("</TABLE></BODY></HTML>"); 96 file.close(); 113 file.print("<TR BGCOLOR=\"#C0C0C0\"><TD>"); 115 file.print("<TR BGCOLOR=\"#A0A0A0\"><TD>"); 117 file [all...] |
H A D | CodeHTML.java | 66 * Convert code into HTML file. 74 private PrintWriter file; // file to write to field in class:CodeHTML 89 file = new PrintWriter(new FileOutputStream(dir + class_name + "_code.html")); 90 file.println("<HTML><BODY BGCOLOR=\"#C0C0C0\">"); 95 file.println("</BODY></HTML>"); 96 file.close(); 537 file.print("<P><B><FONT COLOR=\"#FF0000\">" + access + "</FONT> " + 543 file.print(Class2HTML.referenceType(args[i])); 545 file [all...] |
H A D | ConstantHTML.java | 66 * Convert constant pool into HTML file. 75 private PrintWriter file; // file to write to field in class:ConstantHTML 88 file = new PrintWriter(new FileOutputStream(dir + class_name + "_cp.html")); 92 file.println("<HTML><BODY BGCOLOR=\"#C0C0C0\"><TABLE BORDER=0>"); 97 file.print("<TR BGCOLOR=\"#C0C0C0\"><TD>"); 99 file.print("<TR BGCOLOR=\"#A0A0A0\"><TD>"); 104 file.print("</TD></TR>\n"); 107 file.println("</TABLE></BODY></HTML>"); 108 file [all...] |