GoConqr has a new look! Let us know what you think.

Mind map

Arquivos

Daniel Rodrigues Portuguese

Map content

Arquivos

  1. Representação de um arquivo

    • File f = new File("path")
  2. IO

    • Exception
      • - IOException - SisException (entrada) - SosException (saída)
    • Stram
      • FileInputStream
        • - declarar como null - usar try para criar while ((content = fis.read()) != -1) (char) content; } - catch (IOException e) {    throw new SisException(e); }
      • FileOutputStream
        • fos = new FileOutputStream(file); fos.write(content) catch (IOException e) { throw new SosException(e);
    • Writes/Readers
      • FileReader
        • - reader = new FileReader(file); while ((content = fis.read()) != -1) { (char) content; }  # - FileInputStream lê 1 byte - FileReader lê um caractere (até dois bytes)
      • FIleNumberReader
        • Compõe com FileReader - lê a linha reader = new FileReader(file);     lnr = new LineNumberReader(reader);     String linha = lnr.readLine();
  3. Os objetos devem ser Serializable

    • Objetos são serializáveis se todos os seus atributos forem serializáveis. Objetos de fontes distintas não mantém referências entre si.

Information

Description
Mind Map on Arquivos, created by Daniel Rodrigues on 07/03/2018.
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?