Package com.biglybt.core.vuzefile
Class VuzeFileImpl
- java.lang.Object
-
- com.biglybt.core.vuzefile.VuzeFileImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
VuzeFileImpl.comp
-
Field Summary
Fields Modifier and Type Field Description private VuzeFileComponent[]
components
private VuzeFileHandler
handler
-
Constructor Summary
Constructors Modifier Constructor Description protected
VuzeFileImpl(VuzeFileHandler _handler)
protected
VuzeFileImpl(VuzeFileHandler _handler, java.util.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VuzeFileComponent
addComponent(int type, java.util.Map content)
byte[]
exportToBytes()
java.lang.String
exportToJSON()
java.util.Map
exportToMap()
VuzeFileComponent[]
getComponents()
java.lang.String
getName()
void
write(java.io.File target)
-
-
-
Field Detail
-
handler
private final VuzeFileHandler handler
-
components
private VuzeFileComponent[] components
-
-
Constructor Detail
-
VuzeFileImpl
protected VuzeFileImpl(VuzeFileHandler _handler)
-
VuzeFileImpl
protected VuzeFileImpl(VuzeFileHandler _handler, java.util.Map map)
-
-
Method Detail
-
getComponents
public VuzeFileComponent[] getComponents()
- Specified by:
getComponents
in interfaceVuzeFile
-
addComponent
public VuzeFileComponent addComponent(int type, java.util.Map content)
- Specified by:
addComponent
in interfaceVuzeFile
-
exportToMap
public java.util.Map exportToMap() throws java.io.IOException
- Specified by:
exportToMap
in interfaceVuzeFile
- Throws:
java.io.IOException
-
exportToBytes
public byte[] exportToBytes() throws java.io.IOException
- Specified by:
exportToBytes
in interfaceVuzeFile
- Throws:
java.io.IOException
-
exportToJSON
public java.lang.String exportToJSON() throws java.io.IOException
- Specified by:
exportToJSON
in interfaceVuzeFile
- Throws:
java.io.IOException
-
-