程序包 proguard.io
类 FileDataEntry
java.lang.Object
proguard.io.FileDataEntry
- 所有已实现的接口:
DataEntry
This
DataEntry represents a file.-
构造器概要
构造器构造器说明FileDataEntry(File file) Creates a new FileDataEntry.FileDataEntry(File directory, File file) Creates a new FileDataEntry. -
方法概要
修饰符和类型方法说明voidCloses the previously retrieved InputStream.getFile()Returns the complete file, including its directory.Returns an input stream for reading the content of this data entry.getName()Returns the name of this data entry.Returns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.Returns the parent of this data entry, ornull if it doesn't have one.longgetSize()Returns the size of this data entry, in bytes, or -1 if unknown.booleanReturns whether the data entry represents a directory.toString()
-
构造器详细资料
-
FileDataEntry
Creates a new FileDataEntry.- 参数:
file- the the absolute or relative location of the file.
-
FileDataEntry
Creates a new FileDataEntry.- 参数:
directory- the base directory for the file.file- the the absolute or relative location of the file.
-
-
方法详细资料
-
getFile
Returns the complete file, including its directory. -
getName
从接口复制的说明:DataEntryReturns the name of this data entry. -
getOriginalName
从接口复制的说明:DataEntryReturns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.- 指定者:
getOriginalName在接口中DataEntry
-
getSize
public long getSize()从接口复制的说明:DataEntryReturns the size of this data entry, in bytes, or -1 if unknown. -
isDirectory
public boolean isDirectory()从接口复制的说明:DataEntryReturns whether the data entry represents a directory.- 指定者:
isDirectory在接口中DataEntry
-
getInputStream
从接口复制的说明:DataEntryReturns an input stream for reading the content of this data entry. The data entry may not represent a directory.- 指定者:
getInputStream在接口中DataEntry- 抛出:
IOException
-
closeInputStream
从接口复制的说明:DataEntryCloses the previously retrieved InputStream.- 指定者:
closeInputStream在接口中DataEntry- 抛出:
IOException
-
getParent
从接口复制的说明:DataEntryReturns the parent of this data entry, ornull if it doesn't have one. -
toString
-