com.ldodds.foaf.thinlet.save
Class NotationThreeExporter

java.lang.Object
  |
  +--com.ldodds.foaf.thinlet.save.NotationThreeExporter
All Implemented Interfaces:
Exporter

public class NotationThreeExporter
extends java.lang.Object
implements Exporter

Author:
ldodds

Constructor Summary
NotationThreeExporter()
          Constructor for NotationThreeExporter.
 
Method Summary
 void end()
          Indicates the end of an export process, allowing the exporter to write any final data to the output.
 void export(Document d)
          Exports a document
 void export(Literal l)
          Exports a literal
 void export(Person p)
          Exports a person
 void export(Resource r)
          Exports a resource
 void setOut(java.io.OutputStream out)
           Set the stream into which objects should be exported.
 void start()
          Indicates the start of an export process, allowing the exporter to write any initial data to the output (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotationThreeExporter

public NotationThreeExporter()
Constructor for NotationThreeExporter.
Method Detail

setOut

public void setOut(java.io.OutputStream out)
Description copied from interface: Exporter

Set the stream into which objects should be exported.

Provides the exporter with an OutputStream into which it should store the Exportable objects its asked to save.

An OutputStream is used rather than a Writer because the output format may be binary. However the Exporter is free to wrap this stream in a Writer for character based output, and equally may decide to add buffering for efficiency.

Specified by:
setOut in interface Exporter
See Also:
Exporter.setOut(OutputStream)

export

public void export(Person p)
            throws java.io.IOException
Description copied from interface: Exporter
Exports a person
Specified by:
export in interface Exporter
See Also:
Exporter.export(Person)

export

public void export(Document d)
            throws java.io.IOException
Description copied from interface: Exporter
Exports a document
Specified by:
export in interface Exporter
See Also:
Exporter.export(Document)

export

public void export(Resource r)
            throws java.io.IOException
Description copied from interface: Exporter
Exports a resource
Specified by:
export in interface Exporter
See Also:
Exporter.export(Resource)

export

public void export(Literal l)
            throws java.io.IOException
Description copied from interface: Exporter
Exports a literal
Specified by:
export in interface Exporter
See Also:
Exporter.export(Literal)

start

public void start()
           throws java.io.IOException
Description copied from interface: Exporter
Indicates the start of an export process, allowing the exporter to write any initial data to the output (e.g. root element of an XML document)
Specified by:
start in interface Exporter
See Also:
Exporter.start()

end

public void end()
         throws java.io.IOException
Description copied from interface: Exporter
Indicates the end of an export process, allowing the exporter to write any final data to the output.
Specified by:
end in interface Exporter
See Also:
Exporter.end()