PrintWriter
classe n'a pas de constructeur qui accepte File, Boolean
Votre meilleur pari est d'enlever le Boolean
, et il suffit de passer le File
.
Voir la liste complète tirée de Oracle
PrintWriter(File file)
Creates a new PrintWriter, without automatic line flushing, with the specified file.
PrintWriter(File file, String csn)
Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.
PrintWriter(OutputStream out)
Creates a new PrintWriter, without automatic line flushing, from an existing OutputStream.
PrintWriter(OutputStream out, boolean autoFlush)
Creates a new PrintWriter from an existing OutputStream.
PrintWriter(String fileName)
Creates a new PrintWriter, without automatic line flushing, with the specified file name.
PrintWriter(String fileName, String csn)
Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.
PrintWriter(Writer out)
Creates a new PrintWriter, without automatic line flushing.
PrintWriter(Writer out, boolean autoFlush)
Creates a new PrintWriter.
Avez-vous envisagé de consulter le Javadoc? Vous ne pouvez pas faire les choses et vous demander pourquoi elles n'existent pas. – EJP
@Tom Copie possible comment? – EJP
@EJP OP _clearly_ veut instancier un 'PrintWriter' qui s'ajoute à une source existante et les réponses lui indiquent comment le faire. – Tom