public class IOUtil extends Object
| 构造器和说明 |
|---|
IOUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static File |
copyFile(File page,
File outputDir) |
static void |
deleteAllFiles(File dir) |
static InputStream |
openStreamAtUrl(String uri)
Attempts to open a connection, and a stream, to the URI provided. timeouts will be set for opening the connection
and reading from it. will return the stream, or null if unable to open or read or a timeout occurred.
|
public static File copyFile(File page, File outputDir) throws IOException
IOExceptionpublic static void deleteAllFiles(File dir) throws IOException
IOExceptionpublic static InputStream openStreamAtUrl(String uri)
Copyright © 2019. All Rights Reserved.