public final class FileUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createDirectories(String outPath) |
static PrintWriter |
createPrintWriter(OutputStream output, String encoding) |
static File |
createTempFile(String path) |
static boolean |
directoryExists(String path) |
static boolean |
fileExists(String path) |
static OutputStream |
getBufferedOutputStream(String filename) |
static String |
getFileName(String file)
Deprecated.
|
static FileOutputStream |
getFileOutputStream(File tempFile) |
static String |
getFontsDir() |
static RandomAccessFile |
getRandomAccessFile(File tempFile) |
static String[] |
listFilesInDirectory(String path, boolean recursive) |
static File[] |
listFilesInDirectoryByFilter(String outPath, FileFilter fileFilter) |
static OutputStream |
wrapWithBufferedOutputStream(OutputStream outputStream) |
public static String getFontsDir()
@Deprecated public static String getFileName(String file)
public static boolean fileExists(String path)
public static boolean directoryExists(String path)
public static File[] listFilesInDirectoryByFilter(String outPath, FileFilter fileFilter)
public static PrintWriter createPrintWriter(OutputStream output, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public static OutputStream getBufferedOutputStream(String filename) throws FileNotFoundException
FileNotFoundException
public static OutputStream wrapWithBufferedOutputStream(OutputStream outputStream)
public static File createTempFile(String path) throws IOException
IOException
public static FileOutputStream getFileOutputStream(File tempFile) throws FileNotFoundException
FileNotFoundException
public static RandomAccessFile getRandomAccessFile(File tempFile) throws FileNotFoundException
FileNotFoundException
public static void createDirectories(String outPath)
Copyright © 1998–2016 iText Group NV. All rights reserved.