org.yawlfoundation.yawl.procletService.connect
Class EncodeDecode

java.lang.Object
  extended by org.yawlfoundation.yawl.procletService.connect.EncodeDecode

public class EncodeDecode
extends Object

Class of static methods to convert objects to ByteStream compatible representations and back again

Version:
0.6
Author:
Guy Gallasch

Constructor Summary
EncodeDecode()
           
 
Method Summary
static String decodeString(ByteArrayOutputStream toConvert)
          Method to convert a ByteArrayOutputStream to a string
static ByteArrayInputStream encodeString(String toConvert)
          Method to convert a string to a ByteArrayInputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodeDecode

public EncodeDecode()
Method Detail

encodeString

public static ByteArrayInputStream encodeString(String toConvert)
Method to convert a string to a ByteArrayInputStream

Parameters:
toConvert - The string to convert
Returns:
A ByteArrayInputStream representing the string

decodeString

public static String decodeString(ByteArrayOutputStream toConvert)
Method to convert a ByteArrayOutputStream to a string

Parameters:
toConvert - A ByteArrayOutputStream to convert to string
Returns:
String decoded from the ByteArrayOutputStream


Copyright © 2004-2012 The YAWL Foundation.