Day17

두윤기·2023년 1월 19일
0
post-custom-banner

File

> File

  • An abstract representation of file and directory pathnames

> constructor

  File f1 = new File(File parent, String child);
  File f2 = new File(String pathname);
  File f3 = new File(String parent, String child);
  File f4 = new File(URI uri);

> method

long .length()

boolean .isFile()

boolean .isDirectory()

boolean .isHidden()

boolean .canRead()

boolean .canWrite()

boolean .createNewFile()

boolean .delete()

boolean .mkdir()

boolean .mkdirs()

Creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories.

boolean renameTo(File dest)

String .getPath()

String .getAbsolutePath()

String .getName()

long .lastModified()

File[] .listFiles(?FileFilter filter)

FileInputStream

FileOutputStream

multi

Buffer

Data Stream

Object

Serializable

  • Marking interface

String Stream

  • String ↔ byte[] 변환, buffer, stream 기능을 한 데 모은 Class 등장

> BufferedWriter

> BufferedReader

profile
programmerD
post-custom-banner

0개의 댓글