本文整理匯總了Java中org.apache.commons.fileupload.util.Streams.checkFileName方法的典型用法代碼示例。如果您正苦於以下問題:Java Streams.checkFileName方法的具體用法?Java Streams.checkFileName怎麽用?Java Streams.checkFileName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.commons.fileupload.util.Streams
的用法示例。
在下文中一共展示了Streams.checkFileName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getName
import org.apache.commons.fileupload.util.Streams; //導入方法依賴的package包/類
@Override
public String getName()
{
return Streams.checkFileName(fileName);
}
示例2: getName
import org.apache.commons.fileupload.util.Streams; //導入方法依賴的package包/類
/**
* Returns the original filename in the client's filesystem.
*
* @return The original filename in the client's filesystem.
* @throws org.apache.commons.fileupload.InvalidFileNameException The file name contains a NUL character,
* which might be an indicator of a security attack. If you intend to
* use the file name anyways, catch the exception and use
* {@link org.apache.commons.fileupload.InvalidFileNameException#getName()}.
*/
public String getName() {
return Streams.checkFileName(fileName);
}
示例3: getName
import org.apache.commons.fileupload.util.Streams; //導入方法依賴的package包/類
/**
* Returns the items file name.
*
* @return File name, if known, or null.
* @throws InvalidFileNameException The file name contains a NUL character,
* which might be an indicator of a security attack. If you intend to
* use the file name anyways, catch the exception and use
* InvalidFileNameException#getName().
*/
public String getName() {
return Streams.checkFileName(name);
}