PrintStream.PrintStream() | Java

 

Descripción

Sintaxis

public PrintStream(File file) throws FileNotFoundException
public PrintStream(File file, String csn) throws FileNotFoundException, UnsupportedEncodingException
public PrintStream(File file, Charset charset) throws IOException
public PrintStream(OutputStream out)
public PrintStream(OutputStream out, boolean autoFlush)
public PrintStream(OutputStream out, boolean autoFlush, String encoding) throws UnsupportedEncodingException
public PrintStream(OutputStream out, boolean autoFlush, Charset charset)
public PrintStream(String fileName) throws FileNotFoundException
public PrintStream(String fileName, String csn) throws FileNotFoundException, UnsupportedEncodingException
public PrintStream(String fileName, Charset charset) throws IOException

Parámetros

  • File file,
  • Charset charset,
  • boolean autoFlush,
  • String csn,
  • OutputStream out,
  • String encoding,
  • String fileName,

Excepciones

UnsupportedEncodingException, SecurityException, FileNotFoundException, IOException

Clase Padre

PrintStream

Ejemplo


Líneas de Código

    Manual Java

    Aprende más sobre Java consultando online o descargando nuestro manual.

    Test Java

    ¿Te atreves a probar tus habilidades y conocimiento en Java con nuestro test?

    Vídeos Java

    Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.