山不在高,有金则名

Android JAVA Linux C/C++

JAVA中,文件操作类(File/FileOutputStream等)

File->Object

public File(String path) 
public File(String dirPath, String name)
public File(File dir, String name) 
public long length()
public boolean delete()
public boolean exists() 
public boolean mkdir()
public boolean mkdirs() 
public String getName()
public String getParent()
public File getParentFile()
public boolean renameTo(File newPath)
public boolean canExecute()
public boolean canRead()
public boolean canWrite()
public boolean isDirectory()
public boolean isFile()
public boolean isHidden() 
public long lastModified()
public boolean setLastModified(long time)
public long getTotalSpace()
public long getUsableSpace()
public long getFreeSpace() 

FileOutputStream->OutputStream->Object

public FileOutputStream(File file) throws FileNotFoundException
public FileOutputStream(File file, boolean append) throws FileNotFoundException
public FileOutputStream(FileDescriptor fd)
public FileOutputStream(String path) throws FileNotFoundException
public FileOutputStream(String path, boolean append) throws FileNotFoundException
public final FileDescriptor getFD() throws IOException
public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException 
public void write(int oneByte) throws IOException 
public void close() throws IOException

FileInputStream->InputStream->Object

public FileInputStream(File file) throws FileNotFoundException
public FileInputStream(String path) throws FileNotFoundException 
public FileInputStream(FileDescriptor fd)
public int available() throws IOException 
public final FileDescriptor getFD() throws IOException
public int read() throws IOException
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException
public long skip(long byteCount) throws IOException
public void close() throws IOException


 

阅读更多
个人分类: JAVA
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

JAVA中,文件操作类(File/FileOutputStream等)

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭