com.buglabs.dragonfly.util
Class WSHelper

java.lang.Object
  extended by com.buglabs.dragonfly.util.WSHelper
Direct Known Subclasses:
BugnetWSHelper, BugWSHelper

public class WSHelper
extends java.lang.Object


Constructor Summary
WSHelper()
           
 
Method Summary
static void checkForError(java.lang.String response)
          Check response string from http request for error message.
static org.eclipse.swt.graphics.ImageData getImage(java.net.URL url)
           
static int pipe(java.io.InputStream in, java.io.OutputStream out)
           
static byte[] streamToByteArray(java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSHelper

public WSHelper()
Method Detail

getImage

public static org.eclipse.swt.graphics.ImageData getImage(java.net.URL url)
                                                   throws java.io.IOException
Throws:
java.io.IOException

pipe

public static int pipe(java.io.InputStream in,
                       java.io.OutputStream out)
                throws java.io.IOException
Throws:
java.io.IOException

streamToByteArray

public static byte[] streamToByteArray(java.io.InputStream in)
                                throws java.io.IOException
Throws:
java.io.IOException

checkForError

public static void checkForError(java.lang.String response)
                          throws java.io.IOException
Check response string from http request for error message.

Parameters:
response -
Throws:
java.io.IOException