鸿蒙OS开发文档 鸿蒙OS Entry

2024-02-25 开发教程 鸿蒙OS开发文档 匿名 4

Entry

java.lang.Object
|---ohos.global.resource.Entry

public abstract class Entry
extends Object

描述 rawfile 目录中的条目。

Since:

3

嵌套类摘要

修饰符和类型描述
static classEntry.Type表示条目类型。

构造函数摘要

构造函数描述
Entry()

方法总结

修饰符和类型方法描述
abstract StringgetPath()获取Entry的路径。
abstract Entry.TypegetType()获取Entry的类型。
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

构造函数详细信息

Entry

public Entry()

方法详情

getPath

public abstract String getPath()

获取Entry的路径。

返回:

返回Entry的路径。

getType

public abstract Entry.Type getType()

获取Entry的类型。

返回:

返回Entry的类型。