org.apache.ws.jaxme.js

Class WriterTarget

Implemented Interfaces:
IndentationTarget

public class WriterTarget
extends java.lang.Object
implements IndentationTarget

An IndentationTarget writing into a given Writer.
Version:
$Id: WriterTarget.java 231785 2004-02-16 23:39:59Z jochen $
Author:
Jochen Wiedmann

Field Summary

static String
INDENTATION_STRING
static String
LINE_SEPARATOR

Constructor Summary

WriterTarget()
WriterTarget(Writer pTarget)

Method Summary

String
asString(JavaQName pQName)
String
getIndentationString()
String
getLineSeparator()
Writer
getTarget()
void
indent(int pLevel)
boolean
isInterface()
void
setIndentationString(String pIndentationString)
void
setLineSeparator(String pLineSeparator)
void
setTarget(Writer pTarget)
void
write()
void
write(String pValue)

Field Details

INDENTATION_STRING

public static final String INDENTATION_STRING

LINE_SEPARATOR

public static final String LINE_SEPARATOR

Constructor Details

WriterTarget

public WriterTarget()

WriterTarget

public WriterTarget(Writer pTarget)

Method Details

asString

public String asString(JavaQName pQName)
Specified by:
asString in interface IndentationTarget

getIndentationString

public String getIndentationString()

getLineSeparator

public String getLineSeparator()

getTarget

public Writer getTarget()

indent

public void indent(int pLevel)
            throws IOException
Specified by:
indent in interface IndentationTarget

isInterface

public boolean isInterface()
Specified by:
isInterface in interface IndentationTarget

setIndentationString

public void setIndentationString(String pIndentationString)

setLineSeparator

public void setLineSeparator(String pLineSeparator)

setTarget

public void setTarget(Writer pTarget)

write

public void write()
            throws IOException
Specified by:
write in interface IndentationTarget

write

public void write(String pValue)
            throws IOException
Specified by:
write in interface IndentationTarget