📄 storagefolder.java
字号:
package no.auc.one.portableplayer.lms;
import java.io.*;
public class StorageFolder extends Container {
/**
* Contains the combined space, in bytes, used by all the objects held in
* the storage represented by the container. Value -1 is reserved to
* indicate that the space is unknown.
*/
private long storageUsed;
private final static String CLASSTYPE = "object.container.storageFolder";
public String classType() {
return CLASSTYPE;
}
public StorageFolder(int id, int parentId, String title, boolean restricted, long storageUsed) {
super(id, parentId, title, restricted);
System.out.println("classType = " + classType());
this.storageUsed = storageUsed;
}
public StorageFolder(DataInput di) throws IOException {
super(di);
System.out.println("classType = " + classType());
storageUsed = di.readLong();
}
public void serialize(DataOutput dout) throws IOException {
super.serialize(dout);
dout.writeLong(storageUsed);
}
public void serializeXml(PrintStream ps) {
super.serializeXml(ps);
ps.print("<upnp:storageUsed>");
ps.print(storageUsed);
ps.print("</upnp:storageUsed>");
}
public long getStorageUsed() {
return storageUsed;
}
public void setStorageUsed(long storageUsed) {
this.storageUsed = storageUsed;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -