Index: libjava/classpath/tools/classes/gnu/classpath/tools/gjdoc/ConstructorDocImpl.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: libjava/classpath/lib/java/io/PrintStream.class =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: libjava/java/io/PrintStream.h =================================================================== --- libjava/java/io/PrintStream.h (revision 150100) +++ libjava/java/io/PrintStream.h (working copy) @@ -27,6 +27,10 @@ { public: + PrintStream(::java::io::File *); + PrintStream(::java::io::File *, ::java::lang::String *); + PrintStream(::java::lang::String *); + PrintStream(::java::lang::String *, ::java::lang::String *); PrintStream(::java::io::OutputStream *); PrintStream(::java::io::OutputStream *, jboolean); PrintStream(::java::io::OutputStream *, jboolean, ::java::lang::String *); Index: libjava/java/io/PrintStream.java =================================================================== --- libjava/java/io/PrintStream.java (revision 150100) +++ libjava/java/io/PrintStream.java (working copy) @@ -123,6 +123,74 @@ } /** + * This method initializes a new PrintStream object to write + * to the specified output File. Doesn't autoflush. + * + * @param file The File to write to. + * @throws FileNotFoundException if an error occurs while opening the file. + * + * @since 1.5 + */ + public PrintStream (File file) + throws FileNotFoundException + { + this (new FileOutputStream(file), false); + } + + /** + * This method initializes a new PrintStream object to write + * to the specified output File. Doesn't autoflush. + * + * @param file The File to write to. + * @param encoding The name of the character encoding to use for this + * object. + * @throws FileNotFoundException If an error occurs while opening the file. + * @throws UnsupportedEncodingException If the charset specified by + * encoding is invalid. + * + * @since 1.5 + */ + public PrintStream (File file, String encoding) + throws FileNotFoundException,UnsupportedEncodingException + { + this (new FileOutputStream(file), false, encoding); + } + + /** + * This method initializes a new PrintStream object to write + * to the specified output File. Doesn't autoflush. + * + * @param fileName The name of the File to write to. + * @throws FileNotFoundException if an error occurs while opening the file, + * + * @since 1.5 + */ + public PrintStream (String fileName) + throws FileNotFoundException + { + this (new FileOutputStream(new File(fileName)), false); + } + + /** + * This method initializes a new PrintStream object to write + * to the specified output File. Doesn't autoflush. + * + * @param fileName The name of the File to write to. + * @param encoding The name of the character encoding to use for this + * object. + * @throws FileNotFoundException if an error occurs while opening the file. + * @throws UnsupportedEncodingException If the charset specified by + * encoding is invalid. + * + * @since 1.5 + */ + public PrintStream (String fileName, String encoding) + throws FileNotFoundException,UnsupportedEncodingException + { + this (new FileOutputStream(new File(fileName)), false, encoding); + } + + /** * This method intializes a new PrintStream object to write * to the specified output sink. This constructor also allows "auto-flush" * functionality to be specified where the stream will be flushed after