com.aelitis.azureus.core.vuzefile
Class VuzeFileImpl

java.lang.Object
  extended by com.aelitis.azureus.core.vuzefile.VuzeFileImpl
All Implemented Interfaces:
VuzeFile

public class VuzeFileImpl
extends Object
implements VuzeFile


Nested Class Summary
protected static class VuzeFileImpl.comp
           
 
Constructor Summary
protected VuzeFileImpl(VuzeFileHandler _handler)
           
protected VuzeFileImpl(VuzeFileHandler _handler, Map map)
           
 
Method Summary
 VuzeFileComponent addComponent(int type, Map content)
           
 byte[] exportToBytes()
           
 String exportToJSON()
           
 Map exportToMap()
           
 VuzeFileComponent[] getComponents()
           
 String getName()
           
 void write(File target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VuzeFileImpl

protected VuzeFileImpl(VuzeFileHandler _handler)

VuzeFileImpl

protected VuzeFileImpl(VuzeFileHandler _handler,
                       Map map)
Method Detail

getName

public String getName()
Specified by:
getName in interface VuzeFile

getComponents

public VuzeFileComponent[] getComponents()
Specified by:
getComponents in interface VuzeFile

addComponent

public VuzeFileComponent addComponent(int type,
                                      Map content)
Specified by:
addComponent in interface VuzeFile

exportToMap

public Map exportToMap()
                throws IOException
Specified by:
exportToMap in interface VuzeFile
Throws:
IOException

exportToBytes

public byte[] exportToBytes()
                     throws IOException
Specified by:
exportToBytes in interface VuzeFile
Throws:
IOException

exportToJSON

public String exportToJSON()
                    throws IOException
Specified by:
exportToJSON in interface VuzeFile
Throws:
IOException

write

public void write(File target)
           throws IOException
Specified by:
write in interface VuzeFile
Throws:
IOException