public class InputFileWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_ENCODING |
static String |
AUTO_FORMAT |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getEncoding() |
File |
getFile() |
String |
getFormat() |
String[] |
getSupportedFormat() |
int |
hashCode() |
String |
toString() |
static InputFileWrapper |
valueOf(String absolutePath,
String format,
String[] supportedFormat) |
static InputFileWrapper |
valueOf(String absolutePath,
String format,
String charsetName,
String[] supportedFormat) |
public static final String AUTO_ENCODING
public static final String AUTO_FORMAT
public static InputFileWrapper valueOf(String absolutePath, String format, String[] supportedFormat) throws UnsupportedEncodingException, FileNotFoundException
absolutePath
- for a file or a directory not null.format
- could be nullsupportedFormat
- not nullUnsupportedEncodingException
- if the encoding is unsupported.FileNotFoundException
- if the file for absolutePath is not found.using AUTO_FORMAT
public static InputFileWrapper valueOf(String absolutePath, String format, String charsetName, String[] supportedFormat) throws UnsupportedEncodingException, FileNotFoundException
absolutePath
- for a wanted file or a wanted directory, not null.format
- could be nullcharsetName
- could be nullsupportedFormat
- not nullUnsupportedEncodingException
- if the encoding is unsupported.FileNotFoundException
- if the file for absolutePath is not found.public File getFile()
public String getEncoding()
null
if not specified.public boolean equals(Object o)
public int hashCode()
public String toString()
public String getFormat()
public String[] getSupportedFormat()
Copyright © 2005–2023 The Apache Software Foundation. All rights reserved.