NASA World Wind

gov.nasa.worldwind.data
Class AbstractDataDescriptorWriter

java.lang.Object
  extended by gov.nasa.worldwind.data.AbstractDataDescriptorWriter
All Implemented Interfaces:
DataDescriptorWriter
Direct Known Subclasses:
BasicDataDescriptorWriter, WWDotNetLayerSetWriter

public abstract class AbstractDataDescriptorWriter
extends Object
implements DataDescriptorWriter


Constructor Summary
AbstractDataDescriptorWriter()
           
 
Method Summary
protected abstract  void doWrite(Writer writer, DataDescriptor descriptor)
           
 Object getDestination()
           
protected  Writer openWriter(Object dest)
           
 void setDestination(Object destination)
           
 void write(DataDescriptor descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.data.DataDescriptorWriter
getMimeType, matchesMimeType
 

Constructor Detail

AbstractDataDescriptorWriter

public AbstractDataDescriptorWriter()
Method Detail

doWrite

protected abstract void doWrite(Writer writer,
                                DataDescriptor descriptor)
                         throws IOException
Throws:
IOException

getDestination

public Object getDestination()
Specified by:
getDestination in interface DataDescriptorWriter

openWriter

protected Writer openWriter(Object dest)
                     throws IOException
Throws:
IOException

setDestination

public void setDestination(Object destination)
Specified by:
setDestination in interface DataDescriptorWriter

write

public void write(DataDescriptor descriptor)
           throws IOException
Specified by:
write in interface DataDescriptorWriter
Throws:
IOException

NASA World Wind