railo.commons.lang
Class ByteNameValuePair

java.lang.Object
  extended by railo.commons.lang.ByteNameValuePair

public final class ByteNameValuePair
extends Object

Name Value Pair


Constructor Summary
ByteNameValuePair(byte[] name, byte[] value, boolean urlEncoded)
          constructor of the class
 
Method Summary
 byte[] getName()
           
 String getName(String encoding)
           
 String getName(String encoding, String defaultValue)
           
 byte[] getValue()
           
 String getValue(String encoding)
           
 String getValue(String encoding, String defaultValue)
           
 boolean isUrlEncoded()
           
 void setName(byte[] name)
           
 void setValue(byte[] value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteNameValuePair

public ByteNameValuePair(byte[] name,
                         byte[] value,
                         boolean urlEncoded)
constructor of the class

Parameters:
name -
value -
Method Detail

getName

public byte[] getName()
Returns:
Returns the name.

getName

public String getName(String encoding)
               throws UnsupportedEncodingException
Parameters:
encoding -
Returns:
Returns the name.
Throws:
UnsupportedEncodingException

getName

public String getName(String encoding,
                      String defaultValue)
Parameters:
encoding -
defaultValue -
Returns:
Returns the name.

setName

public void setName(byte[] name)
Parameters:
name - The name to set.

getValue

public byte[] getValue()
Returns:
Returns the value.

getValue

public String getValue(String encoding)
                throws UnsupportedEncodingException
Parameters:
encoding -
Returns:
Returns the name.
Throws:
UnsupportedEncodingException

getValue

public String getValue(String encoding,
                       String defaultValue)
Parameters:
encoding -
defaultValue -
Returns:
Returns the name.

setValue

public void setValue(byte[] value)
Parameters:
value - The value to set.

isUrlEncoded

public boolean isUrlEncoded()
Returns:
the urlEncoded


Copyright © 2012 Railo