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 java.lang.Object
implements VuzeFile


Nested Class Summary
protected static class VuzeFileImpl.comp
           
 
Constructor Summary
protected VuzeFileImpl(VuzeFileHandler _handler)
           
protected VuzeFileImpl(VuzeFileHandler _handler, java.util.Map map)
           
 
Method Summary
 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)
           
 
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,
                       java.util.Map map)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface VuzeFile

getComponents

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

addComponent

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

exportToMap

public java.util.Map exportToMap()
                          throws java.io.IOException
Specified by:
exportToMap in interface VuzeFile
Throws:
java.io.IOException

exportToBytes

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

exportToJSON

public java.lang.String exportToJSON()
                              throws java.io.IOException
Specified by:
exportToJSON in interface VuzeFile
Throws:
java.io.IOException

write

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