com.hp.hpl.jena.n3
Class N3EventPrinter

java.lang.Object
  |
  +--com.hp.hpl.jena.n3.N3EventPrinter
All Implemented Interfaces:
N3ParserEventHandler

public class N3EventPrinter
extends java.lang.Object
implements N3ParserEventHandler

Version:
$Id: N3EventPrinter.java,v 1.2 2002/12/03 14:08:01 andy_seaborne Exp $
Author:
Andy Seaborne

Field Summary
 boolean printStartFinish
           
 
Constructor Summary
N3EventPrinter(java.io.OutputStream _out)
           
N3EventPrinter(java.io.Writer _out)
          Best not to use a PrintWriter, but use an OutputStreamWriter (buffered) with charset "UTF-8".
 
Method Summary
 void directive(int line, antlr.collections.AST directive, antlr.collections.AST[] args, java.lang.String context)
           
 void endDocument()
           
 void endFormula(int line, java.lang.String context)
           
 void error(java.lang.Exception ex, java.lang.String message)
           
static java.lang.String formatSlot(antlr.collections.AST slot)
           
 void quad(int line, antlr.collections.AST subj, antlr.collections.AST prop, antlr.collections.AST obj, java.lang.String context)
           
 void startDocument()
           
 void startFormula(int line, java.lang.String context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

printStartFinish

public boolean printStartFinish
Constructor Detail

N3EventPrinter

public N3EventPrinter(java.io.OutputStream _out)

N3EventPrinter

public N3EventPrinter(java.io.Writer _out)
Best not to use a PrintWriter, but use an OutputStreamWriter (buffered) with charset "UTF-8".

Method Detail

error

public void error(java.lang.Exception ex,
                  java.lang.String message)
Specified by:
error in interface N3ParserEventHandler

startDocument

public void startDocument()
Specified by:
startDocument in interface N3ParserEventHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface N3ParserEventHandler

startFormula

public void startFormula(int line,
                         java.lang.String context)
Specified by:
startFormula in interface N3ParserEventHandler

endFormula

public void endFormula(int line,
                       java.lang.String context)
Specified by:
endFormula in interface N3ParserEventHandler

directive

public void directive(int line,
                      antlr.collections.AST directive,
                      antlr.collections.AST[] args,
                      java.lang.String context)
Specified by:
directive in interface N3ParserEventHandler

quad

public void quad(int line,
                 antlr.collections.AST subj,
                 antlr.collections.AST prop,
                 antlr.collections.AST obj,
                 java.lang.String context)
Specified by:
quad in interface N3ParserEventHandler

formatSlot

public static java.lang.String formatSlot(antlr.collections.AST slot)


Copyright © 2001 Hewlett-Packard. All Rights Reserved.