Code example for File

Methods: canRead, getName, isFile

0
    public static final String DEFAULT_CHARSET = "ISO-8859-1";
 
    /** Default transfer encoding of file attachments. */ 
    public static final String DEFAULT_TRANSFER_ENCODING = "binary";
 
    /** Log object for this class. */ 
    private static final Log LOG = LogFactory.getLog(FilePart.class);
 
    /** Attachment's file name */ 
    protected static final String FILE_NAME = "; filename=";
 
    /** Attachment's file name as a byte array */ 
    private static final byte[] FILE_NAME_BYTES = 
        EncodingUtils.getAsciiBytes(FILE_NAME);
 
    /** Source of the file part. */ 
    private PartSource source;
 
    /** 
     * FilePart Constructor. 
     *