org.restlet.engine.header
Class MethodWriter

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

public class MethodWriter
extends HeaderWriter<Method>

Method header writer.

Author:
Jerome Louvel

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MethodWriter()
           
 
Method Summary
 MethodWriter append(Method method)
          Appends a value.
static String write(Set<Method> methods)
          Writes a set of methods with a comma separator.
 
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

MethodWriter

public MethodWriter()
Method Detail

write

public static String write(Set<Method> methods)
Writes a set of methods with a comma separator.

Parameters:
methods - The set of methods.
Returns:
The formatted set of methods.

append

public MethodWriter append(Method method)
Description copied from class: HeaderWriter
Appends a value.

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


Copyright © 2005-2013 Restlet.