org.restlet.engine.header
Class TagWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.StringWriter
          extended by org.restlet.engine.header.HeaderWriter<Tag>
              extended by org.restlet.engine.header.TagWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class TagWriter
extends HeaderWriter<Tag>

Tag header writer.

Author:
Jerome Louvel

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TagWriter()
           
 
Method Summary
 HeaderWriter<Tag> append(Tag tag)
          Appends a value.
static String write(List<Tag> tags)
          Writes a list of tags.
static String write(Tag tag)
          Writes a tag.
 
Methods inherited from class org.restlet.engine.header.HeaderWriter
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparator, canWrite
 
Methods inherited from class java.io.StringWriter
append, close, flush, getBuffer, toString, write, write, write, write
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagWriter

public TagWriter()
Method Detail

write

public static String write(List<Tag> tags)
Writes a list of tags.

Parameters:
tags - The tags to write.
Returns:
This writer.

write

public static String write(Tag tag)
Writes a tag.

Parameters:
tag - The tag to write.
Returns:
This writer.

append

public HeaderWriter<Tag> append(Tag tag)
Description copied from class: HeaderWriter
Appends a value.

Specified by:
append in class HeaderWriter<Tag>
Parameters:
tag - The value.
Returns:
This writer.


Copyright © 2005-2013 Restlet.