Apache JMeter

org.apache.jmeter.save
Class SaveService

java.lang.Object
  extended byorg.apache.jmeter.save.SaveService

public class SaveService
extends Object

author Mike Stover author Keith Cassell


Field Summary
static String TESTLOG_FORMAT
           
static String TESTPLAN_FORMAT
           
 
Constructor Summary
SaveService()
           
 
Method Summary
static String aliasToClass(String s)
           
static String CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
          Simplify getMessage() output from XStream ConversionException
static String classToAlias(String s)
           
static String getPropertiesVersion()
           
static String getVERSION()
           
static boolean isSaveTestLogFormat20()
           
static boolean isSaveTestPlanFormat20()
           
static boolean isSaveTestPlanFormat22()
           
static Object loadElement(InputStream in)
           
static Object loadElement(Reader in)
          Deprecated. Use loadElement(InputStream in) instead, since that takes the fileEncoding property of SaveService into consideration
static Properties loadProperties()
           
static TestResultWrapper loadTestResults(InputStream reader)
           
static HashTree loadTree(InputStream reader)
           
static void saveElement(Object el, OutputStream out)
           
static void saveElement(Object el, Writer writer)
          Deprecated. Use saveElement(Object el, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration
static void saveSampleResult(SampleResult res, OutputStream out)
           
static void saveSampleResult(SampleResult res, Writer writer)
          Deprecated. Use saveSampleResult(SampleResult res, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration
static void saveTestElement(TestElement elem, OutputStream out)
           
static void saveTestElement(TestElement elem, Writer writer)
          Deprecated. Use saveTestElement(TestElement elem, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration
static void saveTree(HashTree tree, OutputStream out)
           
static void saveTree(HashTree tree, Writer writer)
          Deprecated. Use saveTree(HashTree tree, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TESTPLAN_FORMAT

public static final String TESTPLAN_FORMAT

TESTLOG_FORMAT

public static final String TESTLOG_FORMAT
Constructor Detail

SaveService

public SaveService()
Method Detail

loadProperties

public static Properties loadProperties()
                                 throws IOException
Throws:
IOException

aliasToClass

public static String aliasToClass(String s)

classToAlias

public static String classToAlias(String s)

saveTree

public static void saveTree(HashTree tree,
                            OutputStream out)
                     throws Exception
Throws:
Exception

saveTree

public static void saveTree(HashTree tree,
                            Writer writer)
                     throws Exception
Deprecated. Use saveTree(HashTree tree, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration

Throws:
Exception

saveElement

public static void saveElement(Object el,
                               OutputStream out)
                        throws Exception
Throws:
Exception

saveElement

public static void saveElement(Object el,
                               Writer writer)
                        throws Exception
Deprecated. Use saveElement(Object el, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration

Throws:
Exception

loadElement

public static Object loadElement(InputStream in)
                          throws Exception
Throws:
Exception

loadElement

public static Object loadElement(Reader in)
                          throws Exception
Deprecated. Use loadElement(InputStream in) instead, since that takes the fileEncoding property of SaveService into consideration

Throws:
Exception

saveSampleResult

public static void saveSampleResult(SampleResult res,
                                    OutputStream out)
                             throws Exception
Throws:
Exception

saveSampleResult

public static void saveSampleResult(SampleResult res,
                                    Writer writer)
                             throws Exception
Deprecated. Use saveSampleResult(SampleResult res, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration

Throws:
Exception

saveTestElement

public static void saveTestElement(TestElement elem,
                                   OutputStream out)
                            throws Exception
Throws:
Exception

saveTestElement

public static void saveTestElement(TestElement elem,
                                   Writer writer)
                            throws Exception
Deprecated. Use saveTestElement(TestElement elem, OutputStream out) instead, which takes the fileEncoding property of SaveService into consideration

Throws:
Exception

loadTestResults

public static TestResultWrapper loadTestResults(InputStream reader)
                                         throws Exception
Throws:
Exception

loadTree

public static HashTree loadTree(InputStream reader)
                         throws Exception
Throws:
Exception

isSaveTestPlanFormat20

public static boolean isSaveTestPlanFormat20()

isSaveTestLogFormat20

public static boolean isSaveTestLogFormat20()

isSaveTestPlanFormat22

public static boolean isSaveTestPlanFormat22()

CEtoString

public static String CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
Simplify getMessage() output from XStream ConversionException

Parameters:
ce - - ConversionException to analyse
Returns:
string with details of error

getPropertiesVersion

public static String getPropertiesVersion()

getVERSION

public static String getVERSION()

Apache JMeter

Copyright © 1998-2007 Apache Software Foundation. All Rights Reserved.