Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

accumulate(String, Object) - Method in class com.purplehillsbooks.json.JSONObject
Accumulate values under a key.
addAll(JSONArray) - Method in class com.purplehillsbooks.json.JSONArray
Add all the elements from one JSONArray into the array this is called on.
addChild(String, Class<T>) - Method in class com.purplehillsbooks.xml.Mel
Creates a child element of your own class that extends the Mel class
addChild(String) - Method in class com.purplehillsbooks.xml.Mel
Creates a child element of the Mel class.
addContainer(String) - Method in class com.purplehillsbooks.xml.Schema
Deprecated.
 
addData(String) - Method in class com.purplehillsbooks.xml.Schema
Deprecated.
 
addPartial(byte[], int, int) - Method in class com.purplehillsbooks.streams.MemFile
copies the specified number of bytes from the byte array and adds it to the file.
addResult(String) - Method in class com.purplehillsbooks.xml.ValidationResults
Deprecated.
addRoot(String) - Method in class com.purplehillsbooks.xml.Schema
Deprecated.
addVectorValue(String, String) - Method in class com.purplehillsbooks.xml.Mel
If a containing tag has multiple child value tags you append a value to that set of values.
adopt(byte[]) - Method in class com.purplehillsbooks.streams.MemFile
Takes the byte array and adds it to the file.
ambiguousCases - Variable in class com.purplehillsbooks.xml.SchemaGen
Deprecated.
 
appBaseUrl() - Method in class com.purplehillsbooks.web.WebRequest
This is the base URL for the application, which means it has the protocol, server, port, and application name in the path.
append(String, Object) - Method in class com.purplehillsbooks.json.JSONObject
Append values to the array under a key.
args - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
array() - Method in class com.purplehillsbooks.json.JSONWriter
Begin appending a new array.
assureValidXMLChars(String) - Static method in class com.purplehillsbooks.xml.Mel
 
attributeEquals(String, String) - Method in class com.purplehillsbooks.xml.Mel
Retrieves an attribute value from a tag, and compares it to a given value, returning true if they are equal.
available() - Method in class com.purplehillsbooks.streams.UUDecoderStream
 

B

back() - Method in class com.purplehillsbooks.json.JSONTokener
Back up one character.
Base64 - Class in com.purplehillsbooks.streams
You always need a Base64 encoder and decoder, but for some reason Java does not introduce it until version 1.8, and even so there are many incompatible libraries out there.
Base64() - Constructor for class com.purplehillsbooks.streams.Base64
 

C

caseDetails - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
category - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
checkFileDoesNotChange() - Method in class com.purplehillsbooks.testcase.FileLockThread
This test gets a lock and holds it for a long time, reading the file at the beginning and the end and assuring that nothing changed.
checkSchema(JSONObject, JSONObject) - Method in class com.purplehillsbooks.json.JSONSchema
 
childIsPlural(String) - Method in class com.purplehillsbooks.xml.SchemaDef
Deprecated.
clear() - Method in class com.purplehillsbooks.streams.MemFile
Gets rid of all stored contents and clears out memory ready to receive new content.
clearResultSet() - Static method in class com.purplehillsbooks.testframe.TestRecorderText
 
close() - Method in class com.purplehillsbooks.streams.HTMLWriter
 
close() - Method in class com.purplehillsbooks.streams.JavaScriptWriter
 
close() - Method in class com.purplehillsbooks.streams.NullWriter
 
close() - Method in class com.purplehillsbooks.streams.ReaderUTF8InputStream
Closes the Stringreader.
close() - Method in class com.purplehillsbooks.streams.WriterUTF8OutputStream
Closes the wrapped OutputStream and terminates output.
closeLoop(String) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
closeLoop(String) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
When a loop is finished, this is called so that the id can be freed up and references to this id value will no longer work.
ClusterJSONFile - Class in com.purplehillsbooks.json
Deprecated.
use LockableJSONFile instead
ClusterJSONFile(File) - Constructor for class com.purplehillsbooks.json.ClusterJSONFile
Deprecated.
 
com.purplehillsbooks.json - package com.purplehillsbooks.json
 
com.purplehillsbooks.streams - package com.purplehillsbooks.streams
 
com.purplehillsbooks.temps - package com.purplehillsbooks.temps
 
com.purplehillsbooks.testcase - package com.purplehillsbooks.testcase
 
com.purplehillsbooks.testframe - package com.purplehillsbooks.testframe
 
com.purplehillsbooks.web - package com.purplehillsbooks.web
 
com.purplehillsbooks.xml - package com.purplehillsbooks.xml
 
compareFiles(File, String) - Method in class com.purplehillsbooks.testcase.Test1
 
compareGeneratedTextFile(String, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
compareString(TestRecorder, String, String, String) - Method in class com.purplehillsbooks.testcase.TestExceptions
 
compareStringIgnoringCR(String, String) - Static method in class com.purplehillsbooks.testcase.TestAbstract
 
construct(Class<T>, Document, Element) - Static method in class com.purplehillsbooks.xml.Mel
Constructs an instance of an extended class.
constructHandler(WebRequest) - Method in class com.purplehillsbooks.web.JSONServlet
This is the first method you must override to return your own private handler class that actually figures out what to do with the passed in JSON objects, and what JSON Objects to return.
constructSessionManager(ServletContext) - Method in class com.purplehillsbooks.web.JSONServlet
This is the second method you must override to return your own private handler class that actually figures out what to do with the passed in JSON objects, and what JSON Objects to return.
consumePathToken() - Method in class com.purplehillsbooks.web.WebRequest
 
containsMessage(Throwable, String) - Static method in exception com.purplehillsbooks.json.JSONException
When an exception is caught, you will want to test whether the exception, or any of the causing exceptions contains a particular string fragment.
convertClass(Class<T>) - Method in class com.purplehillsbooks.xml.Mel
Constructs an instance of an extended class.
convertDomToJSON(Document) - Static method in class com.purplehillsbooks.json.Dom2JSON
Pass in a DOM Document, and you get a JSON object that represents the entire contents.
convertDomToJSON(Document, Hashtable<String, Integer>) - Static method in class com.purplehillsbooks.json.Dom2JSON
Pass in a DOM Document, and you get a JSON object that represents the entire contents.
convertElementToJSON(Element) - Static method in class com.purplehillsbooks.json.Dom2JSON
Pass in an element and make a stand alone JSON structure for this one element.
convertElementToJSON(Element, Hashtable<String, Integer>) - Static method in class com.purplehillsbooks.json.Dom2JSON
Pass in an element and make a stand alone JSON structure for this one element.
convertInputStreamToDocument(InputStream) - Static method in class com.purplehillsbooks.xml.Mel
 
convertJSONToException(JSONObject) - Static method in exception com.purplehillsbooks.json.JSONException
Given a JSON representation of an exception, this re-constructs the Exception chain (linked cause exceptions) and returns the Exception object.
convertModelExceptionToJSON(Throwable, String) - Static method in class com.purplehillsbooks.web.JSONServlet
this converts to JSON and includes some special rules for IBPM Model exceptions
convertToJSON(Throwable, String) - Static method in exception com.purplehillsbooks.json.JSONException
In any kind of JSON protocol, you need to return an exception back to the caller.
copyFileToFile(File, File) - Static method in class com.purplehillsbooks.streams.StreamHelper
This is a convenience routine to copy the contents of one file to another file.
copyFileToOutput(File, OutputStream) - Static method in class com.purplehillsbooks.streams.StreamHelper
Given an output stream, copyFileToOutput will read the contents of a file and stream those contents to the output stream until the entire file is sent.
copyFileToWriter(File, Writer, String) - Static method in class com.purplehillsbooks.streams.StreamHelper
Given an output Writer object, copyFileToWriter will read the contents of a file converting bytes to characters according to specified encoding, and stream those characters to the Reader until the entire file is sent.
copyInputToOutput(InputStream, OutputStream) - Static method in class com.purplehillsbooks.streams.StreamHelper
copyInputToOutput will read bytes from the input stream, and send them to the output stream until the input stream is exhausted.
copyReaderToFile(Reader, File, String) - Static method in class com.purplehillsbooks.streams.StreamHelper
copyReaderToUTF8File will read the input Reader to the end, and write the contents to the designated file using specified encoding, overwriting any existing file that might be there.
copyReaderToUTF8File(Reader, File) - Static method in class com.purplehillsbooks.streams.StreamHelper
copyReaderToUTF8File will read the input Reader to the end, and write the contents to the designated file using UTF-8 encoding, overwriting any existing file that might be there.
copyReaderToWriter(Reader, Writer) - Static method in class com.purplehillsbooks.streams.StreamHelper
copyReaderToWriter will read character from the Reader, and send them to the Writer until the Reader is exhausted.
copyStreamToFile(InputStream, File) - Static method in class com.purplehillsbooks.streams.StreamHelper
copyStreamToFile will read the input stream to the end, and write the contents to the designated file.
copyUTF8FileToWriter(File, Writer) - Static method in class com.purplehillsbooks.streams.StreamHelper
Given an output Writer object, copyUTF8FileToWriter will read the contents of a file converting bytes to characters according to UTF-8 encoding, and stream those characters to the Reader until the entire file is sent.
createDelta(JSONObject, JSONObject) - Method in class com.purplehillsbooks.json.JSONDelta
Creates a JSONObject that represents the delta of the two JSON objects passed in.
createDiff(JSONObject, JSONObject) - Method in class com.purplehillsbooks.json.JSONDiff
Creates a table that represents the difference of the two JSON objects passed in.
createDocument(String) - Static method in class com.purplehillsbooks.xml.Mel
This method creates a new Document Object.
createEmpty(String, Class<T>) - Static method in class com.purplehillsbooks.xml.Mel
Use this to create a brand new base of the tree of the file.
CSVHelper - Class in com.purplehillsbooks.streams
Helps to read and write a CSV file, all methods are static writeLine: Converts list of String values into a line of a CSV file parseLine: read a line from a LineNumberReader and return the list of Strings That should be all you need.
CSVHelper() - Constructor for class com.purplehillsbooks.streams.CSVHelper
 

D

debugDump(Writer) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
debugDump(Writer) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
Produce an output which represents all of the tokens that can be used in the current template given the specific context.
declareAttribute(String) - Method in class com.purplehillsbooks.xml.SchemaDef
Deprecated.
declareChild(String) - Method in class com.purplehillsbooks.xml.SchemaDef
Deprecated.
declareChild(String, boolean) - Method in class com.purplehillsbooks.xml.SchemaDef
Deprecated.
decode(StringBuffer, String) - Static method in class com.purplehillsbooks.streams.JavaScriptWriter
Takes a single JavaScript literal and converts it back to a String value.
decodeBuffer(String) - Static method in class com.purplehillsbooks.streams.Base64
Deciphers the passed encoded string.
dehexchar(char) - Static method in class com.purplehillsbooks.json.JSONTokener
Get the hex value of a character (base16).
deleteFromRemote(URL) - Method in class com.purplehillsbooks.web.WebClient
Delete a JSONObject from the server.
deparenthesize(Writer, String) - Static method in class com.purplehillsbooks.testframe.TestDriver
Formats an exception message in order to print out a cascaded exception correctly.
destroy() - Method in class com.purplehillsbooks.web.JSONServlet
 
die() - Method in class com.purplehillsbooks.testcase.FileLockThread
 
disableSSLCertValidation() - Static method in class com.purplehillsbooks.streams.SSLPatch
a call to disableSSLCertValidation will disable certificate validation for SSL connection made after this call.
Dom2JSON - Class in com.purplehillsbooks.json
This class contains routines to convert a standard XML DOM into a JSON structure.
Dom2JSON() - Constructor for class com.purplehillsbooks.json.Dom2JSON
 
doubleToString(double) - Static method in class com.purplehillsbooks.json.JSONObject
Produce a string from a double.
DriveTests(TestRecorderText, String[]) - Static method in class com.purplehillsbooks.testframe.TestDriver
DriveTestsWithRecorder - allows an external program to create a test recorder and pass it to this, but otherwise drive the tests in the same manner.
duration - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 

E

elementIsSimple(Element, Integer) - Static method in class com.purplehillsbooks.json.Dom2JSON
determines whether this element is simple or not.
eliminateCData() - Method in class com.purplehillsbooks.xml.Mel
 
encode(byte[]) - Static method in class com.purplehillsbooks.streams.Base64
Encodes by byte array.
encode(Writer, String) - Static method in class com.purplehillsbooks.streams.JavaScriptWriter
Encodes a single String value to a JavaScript literal expression.
encodeToString(String) - Static method in class com.purplehillsbooks.streams.JavaScriptWriter
THIS IS NOT EFFICIENT.
end() - Method in class com.purplehillsbooks.json.JSONTokener
 
endArray() - Method in class com.purplehillsbooks.json.JSONWriter
End an array.
endObject() - Method in class com.purplehillsbooks.json.JSONWriter
End an object.
errorLimit - Variable in class com.purplehillsbooks.json.JSONSchema
during validation, errors will be collected up to this limit, and the validation will return when the limit is reached.
exists() - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
exists() - Method in class com.purplehillsbooks.json.LockableJSONFile
Test to see if the target file exists.
existTest(URL) - Method in class com.purplehillsbooks.web.WebClient
Performs a HEAD operation to test if something exists or not.

F

failedCount() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
failureMessage - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
fatalCount() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
fatalException - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
FileLockSimple - Class in com.purplehillsbooks.testcase
 
FileLockSimple() - Constructor for class com.purplehillsbooks.testcase.FileLockSimple
 
FileLockTest - Class in com.purplehillsbooks.testcase
 
FileLockTest() - Constructor for class com.purplehillsbooks.testcase.FileLockTest
 
FileLockThread - Class in com.purplehillsbooks.testcase
Simple test of file locking
FileLockThread(String, JSONObject) - Constructor for class com.purplehillsbooks.testcase.FileLockThread
 
FileSchemaLibrary - Class in com.purplehillsbooks.json
Given a file folder, when asked for a schema XYZ this class will read a file 'Schema-XYZ.json' and return the JSONObject to the caller.
FileSchemaLibrary(File) - Constructor for class com.purplehillsbooks.json.FileSchemaLibrary
 
fillWithFile(File) - Method in class com.purplehillsbooks.streams.MemFile
Reads all bytes from File and stored the entire contents in memory.
fillWithInputStream(InputStream) - Method in class com.purplehillsbooks.streams.MemFile
Reads all bytes from the passed in InputStream and stored the entire contents in memory.
fillWithReader(Reader) - Method in class com.purplehillsbooks.streams.MemFile
Reads all character from the passed in Reader and stores the entire contents in memory.
findChild(String, String, String, Class<T>) - Method in class com.purplehillsbooks.xml.Mel
Returns a child object of specific class with a specified name, attribute, and value
findOrCreate(HttpServletRequest, HttpServletResponse, Writer) - Static method in class com.purplehillsbooks.web.WebRequest
This factory method is used within a JSP file where the Writer has already been grabbed from the Response object which only allows the writer to be gotten once.
finishAmbiguousCases(Schema) - Method in class com.purplehillsbooks.xml.SchemaGen
Deprecated.
finishOpRecord(FileLockThread.OpRecord, Exception) - Method in class com.purplehillsbooks.testcase.FileLockThread
 
flush() - Method in class com.purplehillsbooks.streams.HTMLWriter
 
flush() - Method in class com.purplehillsbooks.streams.JavaScriptWriter
 
flush() - Method in class com.purplehillsbooks.streams.NullWriter
 
flush() - Method in class com.purplehillsbooks.streams.WriterUTF8OutputStream
Flush.
formatString(String, String[]) - Static method in exception com.purplehillsbooks.json.JSONException
 

G

generateFor(Mel) - Static method in class com.purplehillsbooks.xml.SchemaGen
Deprecated.
generateForChildren(Schema, Element) - Method in class com.purplehillsbooks.xml.SchemaGen
Deprecated.
generateSchema(JSONObject) - Static method in class com.purplehillsbooks.json.JSONSchema
Generates a schema object from the given instance.
genSchemaSimpleStd(Object) - Static method in class com.purplehillsbooks.json.JSONSchema
 
get(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the object value associated with an index.
get(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the value object associated with a key.
getAllAttributeNames() - Method in class com.purplehillsbooks.xml.Mel
 
getAllChildren() - Method in class com.purplehillsbooks.xml.Mel
getAllChildren will return a vector of Mels, one for each existing child element, as well as one for each existing data value.
getAllHostVerifier() - Static method in class com.purplehillsbooks.streams.SSLPatch
Returns a hostname verifiers that always returns true, always positively verifies a host.
getAppDataFolder() - Method in class com.purplehillsbooks.web.SessionManager
 
getAttribute(String) - Method in class com.purplehillsbooks.xml.Mel
If a containing tag has an attribute, getAttribute will return the string value of that attribute.
getAttributeLong(String) - Method in class com.purplehillsbooks.xml.Mel
If a containing tag has an attribute, and that attribute contains an integer string value, then getAttribute will return the long value of that attribute.
getAuthUserId() - Method in class com.purplehillsbooks.web.WebRequest
During the course of this session, if setAuthUserId has been called, then this will return the value that was given at that time.
getBoolean(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the boolean value associated with an index.
getBoolean(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the boolean value associated with a key.
getChild(String, int) - Method in class com.purplehillsbooks.xml.Mel
Returns a child Mel object with a specified name.
getChild(String, int, Class<T>) - Method in class com.purplehillsbooks.xml.Mel
Returns a child object of the specified class with a specified name.
getChildren(String) - Method in class com.purplehillsbooks.xml.Mel
 
getChildren(String, Class<T>) - Method in class com.purplehillsbooks.xml.Mel
 
getCommandLineArgs() - Method in interface com.purplehillsbooks.testframe.TestRecorder
The command line arguments to the main routine are stored in the TestRecorder.
getCommandLineArgs() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
getConfigSetting(String) - Method in class com.purplehillsbooks.web.SessionManager
 
getConfigSetting(String) - Method in class com.purplehillsbooks.web.WebRequest
 
getConfigSettings() - Method in class com.purplehillsbooks.web.SessionManager
 
getData1Stream() - Static method in class com.purplehillsbooks.testcase.Test1
 
getData2Stream() - Static method in class com.purplehillsbooks.testcase.Test1
 
getDataValue() - Method in class com.purplehillsbooks.xml.Mel
If you call "getAllChildren" you will get Mels that represent containers, as well as ones that represent data.
getDocument() - Method in class com.purplehillsbooks.xml.Mel
 
getDouble(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the double value associated with an index.
getDouble(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the double value associated with a key.
getDummyTrustManager() - Static method in class com.purplehillsbooks.streams.SSLPatch
Java proides a standard "trust manager" interface.
getElement() - Method in class com.purplehillsbooks.xml.Mel
Avoid using this, but provided for interfacing to external libraries
getElementObj(Element, Hashtable<String, Integer>) - Static method in class com.purplehillsbooks.json.Dom2JSON
Gets the content of the element as an object that includes members for each of the attributes, and for each of the sub elements.
getElementText(Element) - Static method in class com.purplehillsbooks.json.Dom2JSON
Returns the string contents of a simple element.
getErrorList() - Method in class com.purplehillsbooks.json.JSONSchema
if the schema validation returns false, then you can ask for a detailed list of what went wrong with this method.
getFormattedMessage() - Method in exception com.purplehillsbooks.json.JSONException
 
getFormattedMessage() - Method in interface com.purplehillsbooks.json.TemplatizedMessage
 
getFormattedString() - Method in class com.purplehillsbooks.xml.Mel
You really don't want to ever have XML in a string.
getFromRemote(URL) - Method in class com.purplehillsbooks.web.WebClient
Get a JSONObject back from the server.
getFullMessage(Throwable) - Static method in exception com.purplehillsbooks.json.JSONException
Walks through a chain of exception objects, from the first, to each "cause" in turn, creating a single combined string message from all the exception objects in the chain, with newline characters between each exception message.
getInputStream() - Method in class com.purplehillsbooks.streams.MemFile
Returns an input stream which may be read from in order to read the contents of the memory file.
getInt(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the int value associated with an index.
getInt(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the int value associated with a key.
getJSON() - Method in class com.purplehillsbooks.testframe.TestResultRecord
 
getJSONArray(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the JSONArray value associated with a key.
getJSONObject(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the JSONObject value associated with a key.
getJSONObjectList() - Method in class com.purplehillsbooks.json.JSONArray
A convenience routine for use with native Java iterations.
getJSONObjectSet() - Method in class com.purplehillsbooks.json.JSONArray
Returns the entire JSONArray as a list of JSONObjects.
getLong(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the long value associated with an index.
getLong(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the long value associated with a key.
getMode() - Method in class com.purplehillsbooks.streams.UUDecoderStream
Get the "mode" field from the prefix.
getName() - Method in class com.purplehillsbooks.streams.UUDecoderStream
Get the "name" field from the prefix.
getName() - Method in class com.purplehillsbooks.xml.Mel
The name of the data element that this object represents.
getNames(JSONObject) - Static method in class com.purplehillsbooks.json.JSONObject
Get an array of field names from a JSONObject.
getNames(Object) - Static method in class com.purplehillsbooks.json.JSONObject
Get an array of field names from an Object.
getOutputStream() - Method in class com.purplehillsbooks.streams.MemFile
Returns an output stream which may be written to in order to fill the memory file.
getParameters() - Method in exception com.purplehillsbooks.json.JSONException
 
getParameters() - Method in interface com.purplehillsbooks.json.TemplatizedMessage
 
getPostedObject() - Method in class com.purplehillsbooks.web.WebRequest
 
getPrefix() - Method in class com.purplehillsbooks.xml.Mel
This returns the namespace prefix, if there is one.
getProperty(String, String) - Method in interface com.purplehillsbooks.testframe.TestRecorder
A configuration file 'test.conf' is read automatically and is represented in the TestRecorder as a Properties object.
getProperty(String, String) - Method in class com.purplehillsbooks.testframe.TestRecorderText
Read a property from the global properties file.
getProps() - Method in interface com.purplehillsbooks.testframe.TestRecorder
Tests generally should not use this method but rather should use the convenient routines getProperty and getRequiredProperty,
getProps() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
getRawChildren(Element, StringBuffer, String) - Static method in class com.purplehillsbooks.xml.Mel
 
getRawDOM() - Method in class com.purplehillsbooks.xml.Mel
 
getReader() - Method in class com.purplehillsbooks.streams.MemFile
Returns a Reader which may be read from in order to read the contents of the memory file, assuming that the file is in UTF-8 encoding.
getRequiredProperty(String) - Method in interface com.purplehillsbooks.testframe.TestRecorder
A configuration file 'test.conf' is read automatically and is represented in the TestRecorder as a Properties object.
getRequiredProperty(String) - Method in class com.purplehillsbooks.testframe.TestRecorderText
Read a property from the global properties file.
getResults() - Static method in class com.purplehillsbooks.testframe.TestRecorderText
 
getScalar(String) - Method in class com.purplehillsbooks.xml.Mel
If a containing tag has a child value tag getScalar will find that tag, and return the string value.
getSchema(String) - Method in class com.purplehillsbooks.json.FileSchemaLibrary
 
getSchema(String) - Method in interface com.purplehillsbooks.json.SchemaLibrary
Given the name of a schema, this returns the JSONObject for that schema The name would be used in a #ref attribute of one schema, in order to refer to fragment of a schema returned by the library.
getSessionManagerSingleton(ServletContext) - Static method in class com.purplehillsbooks.web.SessionManager
 
getSessionProperty(String) - Method in class com.purplehillsbooks.web.WebRequest
 
getStdTemplate() - Method in exception com.purplehillsbooks.json.JSONException
 
getStdTemplate() - Method in interface com.purplehillsbooks.json.TemplatizedMessage
Get a message template with the form of "Problem {0} found in {1}" Parameters are zero based Parameters are in curly braces
getString(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the string associated with an index.
getString(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the string associated with a key.
getStringList() - Method in class com.purplehillsbooks.json.JSONArray
A convenience routine for use with native Java iterations.
getSurrogate(File) - Static method in class com.purplehillsbooks.json.LockableJSONFile
Get a lock file surrogate object, that is an object that represents the file being locked / read / written.
getTestDir() - Method in interface com.purplehillsbooks.testframe.TestRecorder
getTestDir returns the path to the folder that contains all the test files.
getTestDir() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
getTraceExceptionFormat(JSONObject) - Static method in exception com.purplehillsbooks.json.JSONException
If you have already converted to a JSONOBject, you can use this method to get a standard trace of that object to the output writer.
getVector(String) - Method in class com.purplehillsbooks.xml.Mel
If a containing tag has multiple child value tags you can access all the values at once, retrieving a vector of string values.
getWriter() - Method in class com.purplehillsbooks.streams.MemFile
Returns a Writer which may be written to in order to fill the memory file.

H

handleRequest() - Method in class com.purplehillsbooks.web.JSONHandler
This is the critical method to override for your specific server and it must return on of three things 1.
has(String) - Method in class com.purplehillsbooks.json.JSONObject
Determine if the JSONObject contains a value at a specific key.
HINT_OBJECT - Static variable in class com.purplehillsbooks.json.Dom2JSON
HINT_OBJECT (2) means it is an object even if no attributes or sub-elements appear, still always treat this as an object and return an object whether empty or not.
HINT_OBJECT_ARRAY - Static variable in class com.purplehillsbooks.json.Dom2JSON
HINT_OBJECT_ARRAY (3) means that this can can appear multiple times in the context, and that each time it is expected to have something complicated in it, so assocait the name with an array, and put the contents into object in that array.
HINT_SIMPLE - Static variable in class com.purplehillsbooks.json.Dom2JSON
HINT_SIMPLE (0) means it is a simple value, just take whatever string is found in the XML, and associate it with the attribute name as a string.
HINT_SIMPLE_ARRAY - Static variable in class com.purplehillsbooks.json.Dom2JSON
HINT_SIMPLE_ARRAY (1) means this element will appear multiple times in the current context and make an array of simple values, that is, and associate this name with an array that is then filled with simple string values Used in the hint hashtable parameter of convertDomToJSON and convertElementToJSON.
HTMLWriter - Class in com.purplehillsbooks.streams
This class is for encoding values in order to make make text appear in an HTML page.
HTMLWriter(Writer) - Constructor for class com.purplehillsbooks.streams.HTMLWriter
 

I

ifValue(String) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
ifValue(String) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
Looks at the value specified, and returns boolean scalar: true means for a scalar that there is a value there, and that the value is not 0, false, or null.
increment(String) - Method in class com.purplehillsbooks.json.JSONObject
Increment a property of a JSONObject.
incrementLocalJSON() - Method in class com.purplehillsbooks.testcase.FileLockThread
 
incrementOneValue(JSONObject, String) - Method in class com.purplehillsbooks.testcase.FileLockThread
 
init(ServletConfig) - Method in class com.purplehillsbooks.web.JSONServlet
 
initForTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
initializeFile(JSONObject) - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
initLoop(String, String) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
initLoop(String, String) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
A loop has an identifier which functions as the iterated data item, and a token which refers to the array that you are iterating over.
isContainer() - Method in class com.purplehillsbooks.xml.Mel
Generally a Mel is a container, meaning it can have children which are either more Mel or data values.
isContainer() - Method in class com.purplehillsbooks.xml.SchemaDef
Deprecated.
 
isDelete() - Method in class com.purplehillsbooks.web.WebRequest
 
isGet() - Method in class com.purplehillsbooks.web.WebRequest
 
isLocked() - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
isLocked() - Method in class com.purplehillsbooks.json.LockableJSONFile
Tells whether the calling program/thead is holding the lock.
isNull(int) - Method in class com.purplehillsbooks.json.JSONArray
Determine if the value is null.
isNull(String) - Method in class com.purplehillsbooks.json.JSONObject
Determine if the value associated with the key is null or if there is no value.
isOptions() - Method in class com.purplehillsbooks.web.WebRequest
 
isPost() - Method in class com.purplehillsbooks.web.WebRequest
 
isPut() - Method in class com.purplehillsbooks.web.WebRequest
 
isVerbose() - Method in interface com.purplehillsbooks.testframe.TestRecorder
Returns the value of the 'verbose' configuration parameter.
isVerbose() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 

J

JavaScriptWriter - Class in com.purplehillsbooks.streams
This class is for encoding values in order to make Java or JavaScript literal expressions.
JavaScriptWriter(Writer) - Constructor for class com.purplehillsbooks.streams.JavaScriptWriter
 
join(String) - Method in class com.purplehillsbooks.json.JSONArray
Make a string from the contents of this JSONArray.
JSONArray - Class in com.purplehillsbooks.json
A JSONArray is an ordered sequence of values.
JSONArray() - Constructor for class com.purplehillsbooks.json.JSONArray
Construct an empty JSONArray.
JSONArray(JSONTokener) - Constructor for class com.purplehillsbooks.json.JSONArray
Construct a JSONArray from a JSONTokener.
JSONArray(String) - Constructor for class com.purplehillsbooks.json.JSONArray
Construct a JSONArray from a source JSON text.
JSONArray(Collection<Object>) - Constructor for class com.purplehillsbooks.json.JSONArray
Construct a JSONArray from a Collection.
JSONArray(Object) - Constructor for class com.purplehillsbooks.json.JSONArray
Construct a JSONArray from an array
JSONDelta - Class in com.purplehillsbooks.json
The purpose of this class is to produce a "DELTA" comparison of two JSON files.
JSONDelta() - Constructor for class com.purplehillsbooks.json.JSONDelta
 
JSONDiff - Class in com.purplehillsbooks.json
The purpose of this class is to produce a "DIFF" comparison of two JSON files.
JSONDiff(boolean) - Constructor for class com.purplehillsbooks.json.JSONDiff
The boolean parameter on the constructor defines whether to include all the lines, or just the lines that are different.
JSONException - Exception in com.purplehillsbooks.json
JSONException is mainly a class that has a few helpful methods for handling exceptions, such as: to get the full message of a chain of exceptions, to test if a particular message is anywhere in a chain, to convert an exception to JSON in a standard way to trace an exception to the output stream in a standard way.
JSONException(String) - Constructor for exception com.purplehillsbooks.json.JSONException
Constructs a JSONException with an explanatory message.
JSONException(String, Throwable) - Constructor for exception com.purplehillsbooks.json.JSONException
Constructs a JSONException with an explanatory message.
JSONException(String, Object...) - Constructor for exception com.purplehillsbooks.json.JSONException
Construct the exception with a template by using variable parameters Use a template like this:
JSONException(String, Throwable, Object...) - Constructor for exception com.purplehillsbooks.json.JSONException
Construct the exception with a template by using variable parameters with a pattern like this:
JSONFormatter - Class in com.purplehillsbooks.json
The purpose of this class is to provide a command line that will read a JSON file, clean it up, and write it out again in canonical form.
JSONFormatter() - Constructor for class com.purplehillsbooks.json.JSONFormatter
 
JSONHandler - Class in com.purplehillsbooks.web
This handler is instantiated for every request, so that it can hold onto those values as data members, and not have to pass through all the methods.
JSONHandler(WebRequest, SessionManager) - Constructor for class com.purplehillsbooks.web.JSONHandler
Your class that extends JSONHandler will be constructed for every web request.
JSONObject - Class in com.purplehillsbooks.json
A JSONObject is an collection of name/value pairs.
JSONObject() - Constructor for class com.purplehillsbooks.json.JSONObject
Construct an empty JSONObject.
JSONObject(JSONObject, String[]) - Constructor for class com.purplehillsbooks.json.JSONObject
Construct a JSONObject from a subset of another JSONObject.
JSONObject(JSONTokener) - Constructor for class com.purplehillsbooks.json.JSONObject
Construct a JSONObject from a JSONTokener.
JSONObject(Object) - Constructor for class com.purplehillsbooks.json.JSONObject
Construct a JSONObject from an Object using bean getters.
JSONObject(String) - Constructor for class com.purplehillsbooks.json.JSONObject
Deprecated.
don't use this, use the JSONTokener instead. The JSON stream should never be a string, but instead should always be a Stream. It is always more efficient to stream the JSON representation in and out. Never use a string for this.
JSONSchema - Class in com.purplehillsbooks.json
The JSONSChema class has a static method for creating a schema object, and can be instantiated to perform schema validations.
JSONSchema() - Constructor for class com.purplehillsbooks.json.JSONSchema
 
JSONServlet - Class in com.purplehillsbooks.web
JSONServlet is an abstract base class for a standard Java J2EE servlet that sends and receives JSON formatted data.
JSONServlet() - Constructor for class com.purplehillsbooks.web.JSONServlet
 
JSONString - Interface in com.purplehillsbooks.json
The JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).
JSONTest - Class in com.purplehillsbooks.testcase
 
JSONTest() - Constructor for class com.purplehillsbooks.testcase.JSONTest
 
JSONTokener - Class in com.purplehillsbooks.json
A JSONTokener takes a source stream and parses it for the JSONObject / JSONArray.
JSONTokener(Reader) - Constructor for class com.purplehillsbooks.json.JSONTokener
Construct a JSONTokener from a Reader.
JSONTokener(InputStream) - Constructor for class com.purplehillsbooks.json.JSONTokener
Construct a JSONTokener from an InputStream.
JSONTokener(String) - Constructor for class com.purplehillsbooks.json.JSONTokener
Construct a JSONTokener from a string.
JSONWriter - Class in com.purplehillsbooks.json
JSONWriter provides a quick and convenient way of producing JSON text.
JSONWriter(Writer) - Constructor for class com.purplehillsbooks.json.JSONWriter
Make a fresh JSONWriter.

K

key(String) - Method in class com.purplehillsbooks.json.JSONWriter
Append a key.
keys() - Method in class com.purplehillsbooks.json.JSONObject
Deprecated.
use keySet instead because iterators are old fashioned
keySet() - Method in class com.purplehillsbooks.json.JSONObject
 

L

lastException - Variable in class com.purplehillsbooks.testcase.FileLockThread
 
length() - Method in class com.purplehillsbooks.json.JSONArray
Get the number of elements in the JSONArray, included nulls.
length() - Method in class com.purplehillsbooks.json.JSONObject
Get the number of keys stored in the JSONObject.
lock() - Method in class com.purplehillsbooks.json.LockableJSONFile
This is the basic lock command and wait until the target file is there.
LockableJSONFile - Class in com.purplehillsbooks.json
For use when you have a file being shared across a cluster of servers in order to assure that only one node of the cluster has access to the file at a time.
lockAndRead() - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
lockReadUnlock() - Method in class com.purplehillsbooks.json.LockableJSONFile
The easiest way to safely read a file.
log(String) - Method in interface com.purplehillsbooks.testframe.TestRecorder
Writes the specified string to the log file, only when verbose == true.
log(String) - Method in class com.purplehillsbooks.testframe.TestRecorderText
Writes the specified string to the log file, only when verbose == true.
lookUpDefinition(String) - Method in class com.purplehillsbooks.xml.Schema
Deprecated.
 

M

main(String[]) - Static method in class com.purplehillsbooks.json.JSONDelta
The main routine can be called as a command-line command where you pass the names of JSON files.
main(String[]) - Static method in class com.purplehillsbooks.json.JSONDiff
The main routine can be called as a command-line command where you pass the names of JSON files.
main(String[]) - Static method in class com.purplehillsbooks.json.JSONFormatter
The purpose of this class is to provide a command line that will read a JSON file, clean it up, and write it out again in canonical form.
main(String[]) - Static method in class com.purplehillsbooks.testcase.FileLockSimple
Application Main
main(String[]) - Static method in class com.purplehillsbooks.testcase.FileLockTest
Application Main
main(String[]) - Static method in class com.purplehillsbooks.testcase.JSONTest
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.MemFileTester
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.Test1
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.Test2
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.TestExceptions
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.TestJSONDiff
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.TestJSONSchema
 
main(String[]) - Static method in class com.purplehillsbooks.testcase.TestTemplates
 
main(String[]) - Static method in class com.purplehillsbooks.testframe.TestDriver
This program can be used with these parameters: TestDriver myTestList.txt param param param TestDriver myTest.class param param param The parameter is the name of a text file that contains the list of command lines: the first token on the line must be the test class, and the rest of the parameters work like command line parameters, only note: each parameter must be separated by exactly one space, and there is no support for quote symbols to allow spaces within a parameter.
main(String[]) - Static method in class com.purplehillsbooks.testframe.TestRunner
 
mark(int) - Method in class com.purplehillsbooks.streams.ReaderUTF8InputStream
Marks the read limit of the StringReader.
markFailed(String, String) - Method in interface com.purplehillsbooks.testframe.TestRecorder
When a simple test fails, for example a simple calculation performed, and the result does not matched the expected result, then this is called to indicate that the test failed.
markFailed(String, String) - Method in class com.purplehillsbooks.testframe.TestRecorderText
When a simple test fails, for example a simple calculation performed, and the result does not matched the expected result, then this is called to indicate that the test failed.
markFatalError(Exception) - Method in interface com.purplehillsbooks.testframe.TestRecorder
A "fatal error" is an error that is so bad that subsequent tests were skipped.
markFatalError(Exception) - Method in class com.purplehillsbooks.testframe.TestRecorderText
A "fatal error" is an error that is so bad that subsequent tests were skipped.
markPassed(String) - Method in interface com.purplehillsbooks.testframe.TestRecorder
When a simple test passes, for example a simple calculation performed, and the result matched the expected result, then this is called to indicate that the test has succeeded.
markPassed(String) - Method in class com.purplehillsbooks.testframe.TestRecorderText
When a simple test passes, for example a simple calculation performed, and the result matched the expected result, then this is called to indicate that the test has succeeded.
markSupported() - Method in class com.purplehillsbooks.streams.ReaderUTF8InputStream
 
markSupported() - Method in class com.purplehillsbooks.streams.UUDecoderStream
 
MAXIMUM_PARAM_LENGTH - Static variable in exception com.purplehillsbooks.json.JSONException
 
Mel - Class in com.purplehillsbooks.xml
Mel = Mendocino Element The purpose of this class is to be a base class to classes which are designed to be interfaced to DOM trees.
Mel(Document, Element) - Constructor for class com.purplehillsbooks.xml.Mel
Standard constructor for a Mel on an existing XML tree.
MemFile - Class in com.purplehillsbooks.streams
Holds a stream of bytes in memory.
MemFile() - Constructor for class com.purplehillsbooks.streams.MemFile
 
MemFileTester - Class in com.purplehillsbooks.testcase
Test class for the Mem File object Author: Keith Swenson Copyright: Keith Swenson, all rights reserved License: This code is made available under the GNU Lesser GPL license.
MemFileTester() - Constructor for class com.purplehillsbooks.testcase.MemFileTester
 
mode - Variable in class com.purplehillsbooks.json.JSONWriter
The current mode.
more() - Method in class com.purplehillsbooks.json.JSONTokener
Determine if the source string still contains characters that next() can consume.

N

names() - Method in class com.purplehillsbooks.json.JSONObject
Produce a JSONArray containing the names of the elements of this JSONObject.
next() - Method in class com.purplehillsbooks.json.JSONTokener
Get the next character in the source string.
next(char) - Method in class com.purplehillsbooks.json.JSONTokener
Consume the next character, and check that it matches a specified character.
next(int) - Method in class com.purplehillsbooks.json.JSONTokener
Get the next n characters.
nextClean() - Method in class com.purplehillsbooks.json.JSONTokener
Get the next char in the string, skipping whitespace.
nextString(char) - Method in class com.purplehillsbooks.json.JSONTokener
Return the characters up to the next close quote character.
nextTo(char) - Method in class com.purplehillsbooks.json.JSONTokener
Get the text up but not including the specified character or the end of line, whichever comes first.
nextTo(String) - Method in class com.purplehillsbooks.json.JSONTokener
Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.
nextValue() - Method in class com.purplehillsbooks.json.JSONTokener
Get the next value.
NULL - Static variable in class com.purplehillsbooks.json.JSONObject
It is sometimes more convenient and less ambiguous to have a NULL object than to use Java's null value.
NullWriter - Class in com.purplehillsbooks.streams
NullWriter is a writer that throws everything away, and never stores anything anywhere.
NullWriter() - Constructor for class com.purplehillsbooks.streams.NullWriter
 
numberToString(Number) - Static method in class com.purplehillsbooks.json.JSONObject
Produce a string from a Number.

O

object() - Method in class com.purplehillsbooks.json.JSONWriter
Begin appending a new object.
OP_LOCK - Static variable in class com.purplehillsbooks.testcase.FileLockThread
 
OP_READ - Static variable in class com.purplehillsbooks.testcase.FileLockThread
 
OP_UNLOCK - Static variable in class com.purplehillsbooks.testcase.FileLockThread
 
OP_WRITE - Static variable in class com.purplehillsbooks.testcase.FileLockThread
 
opt(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional object value associated with an index.
opt(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional value associated with a key.
optBoolean(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(int, boolean) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(String, boolean) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional boolean associated with a key.
optDouble(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional double value associated with an index.
optDouble(int, double) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional double value associated with an index.
optDouble(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional double associated with a key, or NaN if there is no such key or if its value is not a number.
optDouble(String, double) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional double associated with a key, or the defaultValue if there is no such key or if its value is not a number.
optInt(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional int value associated with an index.
optInt(int, int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional int value associated with an index.
optInt(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number.
optInt(String, int) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional int value associated with a key, or the default if there is no such key or if the value is not a number.
optJSONArray(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional JSONArray associated with a key.
optJSONObject(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional JSONObject associated with a key.
optLong(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional long value associated with an index.
optLong(int, long) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional long value associated with an index.
optLong(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number.
optLong(String, long) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional long value associated with a key, or the default if there is no such key or if the value is not a number.
optString(int) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional string value associated with an index.
optString(int, String) - Method in class com.purplehillsbooks.json.JSONArray
Get the optional string associated with an index.
optString(String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional string associated with a key.
optString(String, String) - Method in class com.purplehillsbooks.json.JSONObject
Get an optional string associated with a key.
outStream - Variable in class com.purplehillsbooks.web.WebRequest
 
outToFile(File) - Method in class com.purplehillsbooks.streams.MemFile
Writes the entire contents of the memory file to the file name passed in
outToOutputStream(OutputStream) - Method in class com.purplehillsbooks.streams.MemFile
Writes the entire contents of the memory file to the OutputStream passed.
outToWriter(Writer) - Method in class com.purplehillsbooks.streams.MemFile
Writes the entire contents of the memory file to the Writer that is passed.

P

params - Variable in exception com.purplehillsbooks.json.JSONException
 
parseArgsRunTests(String[], TestSet) - Static method in class com.purplehillsbooks.testframe.TestRecorderText
 
parseLine(Reader) - Static method in class com.purplehillsbooks.streams.CSVHelper
returns a row of values as a list returns null if you are past the end of the line
parseString(String, Class<T>) - Static method in class com.purplehillsbooks.xml.Mel
You really should never use this.
pass - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
passedCount() - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
pathFinished() - Method in class com.purplehillsbooks.web.WebRequest
 
postToRemote(URL, JSONObject) - Method in class com.purplehillsbooks.web.WebClient
Send a JSONObject to this server as a POST and get a JSONObject back with the response.
postToRemote(URL, String) - Method in class com.purplehillsbooks.web.WebClient
Send a String to this server as a POST and get a JSONObject back with the response.
put(boolean) - Method in class com.purplehillsbooks.json.JSONArray
Append a boolean value.
put(Collection<Object>) - Method in class com.purplehillsbooks.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
put(double) - Method in class com.purplehillsbooks.json.JSONArray
Append a double value.
put(int) - Method in class com.purplehillsbooks.json.JSONArray
Append an int value.
put(long) - Method in class com.purplehillsbooks.json.JSONArray
Append an long value.
put(Map<String, Object>) - Method in class com.purplehillsbooks.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
put(Object) - Method in class com.purplehillsbooks.json.JSONArray
Append an object value.
put(int, boolean) - Method in class com.purplehillsbooks.json.JSONArray
Put or replace a boolean value in the JSONArray.
put(int, Collection<Object>) - Method in class com.purplehillsbooks.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
put(int, double) - Method in class com.purplehillsbooks.json.JSONArray
Put or replace a double value.
put(int, int) - Method in class com.purplehillsbooks.json.JSONArray
Put or replace an int value.
put(int, long) - Method in class com.purplehillsbooks.json.JSONArray
Put or replace a long value.
put(int, Map<String, Object>) - Method in class com.purplehillsbooks.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.
put(int, Object) - Method in class com.purplehillsbooks.json.JSONArray
Put or replace an object value in the JSONArray.
put(String, boolean) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/boolean pair in the JSONObject.
put(String, Collection<?>) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
put(String, double) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/double pair in the JSONObject.
put(String, int) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/int pair in the JSONObject.
put(String, long) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/long pair in the JSONObject.
put(String, Map<String, ?>) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
put(String, Object) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/value pair in the JSONObject.
putOnce(String, Object) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null, and only if there is not already a member with that name.
putOpt(String, Object) - Method in class com.purplehillsbooks.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
putToRemote(URL, JSONObject) - Method in class com.purplehillsbooks.web.WebClient
Send a JSONObject to this server as a PUT and get a JSONObject back with the response.

Q

quote(String) - Static method in class com.purplehillsbooks.json.JSONObject
Produce a string in double quotes with all the characters that need it encoded properly.
quote(String, Writer) - Static method in class com.purplehillsbooks.json.JSONObject
Writes a quoted (encoded) version of the string to the Writer, and returns the same writer that was passed in.

R

read() - Method in class com.purplehillsbooks.streams.ReaderUTF8InputStream
Reads from the Stringreader.
read() - Method in class com.purplehillsbooks.streams.UUDecoderStream
Read the next decoded byte from this input stream.
ReaderUTF8InputStream - Class in com.purplehillsbooks.streams
ReaderUTF8InputStream Imagine that you have a Reader object, and you want to call a method that requires an InputStream.
ReaderUTF8InputStream(Reader) - Constructor for class com.purplehillsbooks.streams.ReaderUTF8InputStream
Composes an InputStream stream from any other Reader you may have around.
ReaderUTF8InputStream(String) - Constructor for class com.purplehillsbooks.streams.ReaderUTF8InputStream
Composes a stream from a String.
readFile(File, Class<T>) - Static method in class com.purplehillsbooks.xml.Mel
Given a File object (that points to a real existing MDS file) This global static method will read the file and return a Mel for the base of the tree of the file.
readFile(File) - Static method in class com.purplehillsbooks.xml.Schema
Deprecated.
readFileIfExists(File) - Static method in class com.purplehillsbooks.json.JSONObject
Open the file if exists, read the contents, and return the JSONObject tree that the file represents.
readFromFile(File) - Static method in class com.purplehillsbooks.json.JSONArray
Construct a JSONArray object from a file.
readFromFile(File) - Static method in class com.purplehillsbooks.json.JSONObject
Open the file if exists, read the contents, and return the JSONObject tree that the file represents.
readInputStream(InputStream, Class<T>) - Static method in class com.purplehillsbooks.xml.Mel
Given a byte stream (that points to a real existing MDS file) this global static method will read the stream and return a Mel for the base of the tree of the file.
readInputStream(InputStream) - Static method in class com.purplehillsbooks.xml.Schema
Deprecated.
readOneLine(int) - Method in class com.purplehillsbooks.streams.UUDecoderStream
Skip any leftover CR or LF bytes, and read the next line from input and store in the inBuffer.
readTarget() - Method in class com.purplehillsbooks.json.LockableJSONFile
Read and return the contents of the file.
readTargetIfExists() - Method in class com.purplehillsbooks.json.LockableJSONFile
Read and return the contents of the file if it exists.
readWithoutLock() - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
recordResults(String, int, int) - Method in class com.purplehillsbooks.testframe.TestRecorderText
This records results of a single test int eh records hashtable.
records - Static variable in class com.purplehillsbooks.testframe.TestRecorderText
 
recordSuccess - Variable in class com.purplehillsbooks.json.JSONSchema
if this is set false, then success (correct) validation is silent if set to true, then every comparison is announced
reformatXML() - Method in class com.purplehillsbooks.xml.Mel
 
remove(int) - Method in class com.purplehillsbooks.json.JSONArray
Remove an index and close the hole.
remove(String) - Method in class com.purplehillsbooks.json.JSONObject
Remove a name and its value, if present.
removeAllNamedChild(String) - Method in class com.purplehillsbooks.xml.Mel
 
removeChild(Mel) - Method in class com.purplehillsbooks.xml.Mel
 
report(PrintStream) - Method in class com.purplehillsbooks.testcase.FileLockThread
 
reportStats(PrintStream, String) - Method in class com.purplehillsbooks.testcase.FileLockThread
 
request - Variable in class com.purplehillsbooks.web.WebRequest
 
requestToRemote(URL, JSONObject, String, String) - Method in class com.purplehillsbooks.web.WebClient
 
requestURL - Variable in class com.purplehillsbooks.web.WebRequest
 
requireJSONArray(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the JSONArray value associated with a key and create an empty array with that key if it does not yet exist.
requireJSONObject(String) - Method in class com.purplehillsbooks.json.JSONObject
Get the JSONObject value associated with a key, and create one if it does not exist yet.
reset() - Method in class com.purplehillsbooks.streams.ReaderUTF8InputStream
Resets to the beginning by resetting the wrapped Reader.
response - Variable in class com.purplehillsbooks.web.WebRequest
 
resultSet - Static variable in class com.purplehillsbooks.testframe.TestRecorderText
 
run() - Method in class com.purplehillsbooks.testcase.FileLockThread
 
run(String[]) - Static method in class com.purplehillsbooks.testframe.TestRunner
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.JSONTest
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.MemFileTester
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.Test1
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.Test2
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.TestExceptions
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.TestJSONDiff
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.TestJSONSchema
 
runTests(TestRecorder) - Method in class com.purplehillsbooks.testcase.TestTemplates
 
runTests(TestRecorder) - Method in interface com.purplehillsbooks.testframe.TestSet
The only method that must be implemented is "runTests".

S

safeConvertInt(String) - Static method in exception com.purplehillsbooks.json.JSONException
 
safeConvertInt(String) - Static method in class com.purplehillsbooks.temps.TemplateJSONRetriever
designed primarily for returning date long values works only for positive integer (long) values considers all numeral, ignores all letter and punctuation never throws an exception if you give this something that is not a number, you get surprising result.
safeConvertInt(String) - Static method in class com.purplehillsbooks.xml.Mel
designed primarily for returning date long values works only for positive integer (long) values considers all numeral, ignores all letter and punctuation never throws an exception if you give this something that is not a number, you get surprising result.
safeConvertLong(String) - Static method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
safeConvertLong(String) - Static method in class com.purplehillsbooks.xml.Mel
designed primarily for returning date long values works only for positive integer (long) values considers all numeral, ignores all letter and punctuation never throws an exception if you give this something that is not a number, you get surprising result.
savedLog - Variable in class com.purplehillsbooks.testframe.TestResultRecord
 
Schema - Class in com.purplehillsbooks.xml
Deprecated.
Schema(Document, Element) - Constructor for class com.purplehillsbooks.xml.Schema
Deprecated.
 
SchemaDef - Class in com.purplehillsbooks.xml
Deprecated.
SchemaDef(Document, Element) - Constructor for class com.purplehillsbooks.xml.SchemaDef
Deprecated.
 
SchemaGen - Class in com.purplehillsbooks.xml
Deprecated.
SchemaLibrary - Interface in com.purplehillsbooks.json
A SchemaLibrary maintains a collection of schemas which can be recalled by name.
schemaTests(String, String) - Method in class com.purplehillsbooks.testcase.TestJSONSchema
 
service(HttpServletRequest, HttpServletResponse) - Method in class com.purplehillsbooks.web.JSONServlet
 
session - Variable in class com.purplehillsbooks.web.WebRequest
 
sessionCreated(HttpSessionEvent) - Method in class com.purplehillsbooks.web.SessionManager
 
sessionDestroyed(HttpSessionEvent) - Method in class com.purplehillsbooks.web.SessionManager
 
SessionManager - Class in com.purplehillsbooks.web
The purpose of this is to be the root-most singleton server object that also manages Tenant-based user session limits.
setAttribute(String, String) - Method in class com.purplehillsbooks.xml.Mel
Sets an attribute and value on a tag.
setAttributeInt(String, int) - Method in class com.purplehillsbooks.xml.Mel
 
setAttributeLong(String, long) - Method in class com.purplehillsbooks.xml.Mel
Sets an attribute and an integer (long) value on a tag.
setAuthUserId(String) - Method in class com.purplehillsbooks.web.WebRequest
You can implement your own login methods and this simply records the result in the current session.
setCommandLineArgs(String[]) - Method in interface com.purplehillsbooks.testframe.TestRecorder
The TestDriver may call this method if it needs to add/modify the command line arguments.
setCommandLineArgs(String[]) - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
setDeletedValueIndicator(String) - Method in class com.purplehillsbooks.json.JSONDelta
 
setIteration(String, int) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
setIteration(String, int) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
Before each time through a loop, this will be called to say which iteration of the loop it is in, and therevore which index element of the chosen array (see initLoop) should be accessed
setListKeyMap(HashMap<String, String>) - Method in class com.purplehillsbooks.json.JSONDelta
 
setObjectDeleteIndicator(String, String) - Method in class com.purplehillsbooks.json.JSONDelta
 
setProps(Properties) - Method in interface com.purplehillsbooks.testframe.TestRecorder
setProps should not be used except in extreme situations where particular properties need to be added or modified for a particular test.
setProps(Properties) - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
setScalar(String, String) - Method in class com.purplehillsbooks.xml.Mel
setScalar will create a child value tag of a specified name and value for the containing element.
setSchemaLibrary(SchemaLibrary) - Method in class com.purplehillsbooks.json.JSONSchema
If the schema has a #ref token, you will need to supply a SchemaLibrary that will retrieve the reference for the schema that is named.
setSessionProperty(String, String) - Method in class com.purplehillsbooks.web.WebRequest
 
setVector(String, Vector<String>) - Method in class com.purplehillsbooks.xml.Mel
If a containing tag has multiple child value tags you can access and set all the values at once using a vector of string values.
skipTo(char) - Method in class com.purplehillsbooks.json.JSONTokener
Skip characters until the next character is the requested character.
smgr - Variable in class com.purplehillsbooks.web.JSONHandler
 
smgr - Variable in class com.purplehillsbooks.web.JSONServlet
 
sortedKeys() - Method in class com.purplehillsbooks.json.JSONObject
Deprecated.
use sortedKeySet instead because iterators are old fashioned
sortedKeySet() - Method in class com.purplehillsbooks.json.JSONObject
 
splitDots(String) - Static method in class com.purplehillsbooks.temps.TemplateJSONRetriever
Breaks a string into a list of strings using dots (periods) as separators of the token, and trimming each token of spaces if there are any.
SSLPatch - Class in com.purplehillsbooks.streams
It seems that the Java libraries for reading SSL connection have conflated two different things: the ability to have an encrypted line, and the ability to confirm who you are connecting to.
SSLPatch() - Constructor for class com.purplehillsbooks.streams.SSLPatch
 
startOpRecord(String) - Method in class com.purplehillsbooks.testcase.FileLockThread
 
storeContentsToFile(File) - Method in class com.purplehillsbooks.web.WebRequest
Reads the uploaded PUT body, and stores it to the specified file (using a temp name, and deleting whatever file might have been there before.)
streamAttachment(String, InputStream) - Method in class com.purplehillsbooks.web.WebRequest
 
streamException(Throwable, SessionManager) - Method in class com.purplehillsbooks.web.WebRequest
 
streamException(Throwable, HttpServletRequest, HttpServletResponse, Writer) - Static method in class com.purplehillsbooks.web.WebRequest
 
streamFile(File) - Method in class com.purplehillsbooks.web.WebRequest
 
StreamHelper - Class in com.purplehillsbooks.streams
Quite simply: there are a number of patterns that get written over and over when using streams, and so these methods are just a common colection of shortcuts Author: Keith Swenson Copyright: Keith Swenson, all rights reserved License: This code is made available under the GNU Lesser GPL license.
StreamHelper() - Constructor for class com.purplehillsbooks.streams.StreamHelper
 
streamJSON(JSONObject) - Method in class com.purplehillsbooks.web.WebRequest
 
streamRawFile(OutputStream, File) - Static method in class com.purplehillsbooks.temps.TemplateStreamer
streamRawFile simply reads the File passed in, and streams it to output byte for byte, WITHOUT any modification.
streamTemplate(Writer, File, String, TemplateTokenRetriever) - Static method in class com.purplehillsbooks.temps.TemplateStreamer
This is the main method used to stream a template file, reading from the file, writing to the supplied Writer, and substituting values for the tokens.
streamTemplate(Writer, Reader, TemplateTokenRetriever) - Static method in class com.purplehillsbooks.temps.TemplateStreamer
This is the stream-in/stream-out version of the TemplateStreamer.
stringifyParams(Object[]) - Static method in exception com.purplehillsbooks.json.JSONException
 
stringToValue(String) - Static method in class com.purplehillsbooks.json.JSONObject
Try to convert a string into a number, boolean, or null.
substituteParams() - Method in exception com.purplehillsbooks.json.JSONException
 
syntaxError(String) - Method in class com.purplehillsbooks.json.JSONTokener
Make a JSONException to signal a syntax error.

T

template - Variable in exception com.purplehillsbooks.json.JSONException
 
TemplateJSONRetriever - Class in com.purplehillsbooks.temps
This is a TemplateStreamer that gets all the information for the tokens from JSON object tree.
TemplateJSONRetriever(JSONObject) - Constructor for class com.purplehillsbooks.temps.TemplateJSONRetriever
 
TemplateStreamer - Class in com.purplehillsbooks.temps
Streams a template file to a Writer object while searching for tokens, and streaming token values in place of those token.
TemplateStreamer() - Constructor for class com.purplehillsbooks.temps.TemplateStreamer
 
TemplateTokenRetriever - Interface in com.purplehillsbooks.temps
To use the TemplateStreamer, you have to supply a TemplateTokenRetriever to stream token values for the specific tokens.
TemplatizedMessage - Interface in com.purplehillsbooks.json
This interface allows for common handling of objects that represent a message that has a template and parameters to be substituted.
Test1 - Class in com.purplehillsbooks.testcase
 
Test1() - Constructor for class com.purplehillsbooks.testcase.Test1
 
Test2 - Class in com.purplehillsbooks.testcase
 
Test2() - Constructor for class com.purplehillsbooks.testcase.Test2
 
TestAbstract - Class in com.purplehillsbooks.testcase
 
TestAbstract() - Constructor for class com.purplehillsbooks.testcase.TestAbstract
 
testAllWriteAndReadOperations() - Method in class com.purplehillsbooks.testcase.JSONTest
 
TestDriver - Class in com.purplehillsbooks.testframe
The Test Driver reads the command line arguments, makes an instance of the test class, and passes a test recorder to it.
TestEmpty() - Method in class com.purplehillsbooks.testcase.Test1
 
TestExceptions - Class in com.purplehillsbooks.testcase
 
TestExceptions() - Constructor for class com.purplehillsbooks.testcase.TestExceptions
 
testGenSchema() - Method in class com.purplehillsbooks.testcase.Test1
 
testInt(String, int, int) - Method in interface com.purplehillsbooks.testframe.TestRecorder
 
testInt(String, int, int) - Method in class com.purplehillsbooks.testframe.TestRecorderText
 
TestJSONDiff - Class in com.purplehillsbooks.testcase
 
TestJSONDiff() - Constructor for class com.purplehillsbooks.testcase.TestJSONDiff
 
TestJSONSchema - Class in com.purplehillsbooks.testcase
 
TestJSONSchema() - Constructor for class com.purplehillsbooks.testcase.TestJSONSchema
 
testNotNull(Object, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
testNull(Object, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
testOutput(Mel, String, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
testRawXML(Mel, String, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
TestReadWrite() - Method in class com.purplehillsbooks.testcase.Test1
 
TestRecorder - Interface in com.purplehillsbooks.testframe
The TestFrame framework provides a TestRecorder interface to each test upon invocation.
TestRecorderText - Class in com.purplehillsbooks.testframe
TestRecorderText implements the TestRecorder interface so that: (1) Configuration information is read from a text file called 'test.conf'.
TestRecorderText(Writer, boolean, String[], Properties) - Constructor for class com.purplehillsbooks.testframe.TestRecorderText
 
TestRecorderText(Writer, boolean, String[], String) - Constructor for class com.purplehillsbooks.testframe.TestRecorderText
Deprecated.
constructor, use the one below instead
TestRecorderText(Writer, boolean, String[], String, Properties) - Constructor for class com.purplehillsbooks.testframe.TestRecorderText
The test driver initializes this class and gives it to each test case.
TestResultRecord - Class in com.purplehillsbooks.testframe
Author: Keith Swenson
TestResultRecord(String, String, boolean, String[]) - Constructor for class com.purplehillsbooks.testframe.TestResultRecord
 
TestRunner - Class in com.purplehillsbooks.testframe
Author: Keith Swenson
TestRunner() - Constructor for class com.purplehillsbooks.testframe.TestRunner
 
testScalar(Mel, String, String, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
TestSet - Interface in com.purplehillsbooks.testframe
The TestSet interface must be implemented by each class implementing tests, so that it can be automatically called by the test framework.
TestTemplates - Class in com.purplehillsbooks.testcase
 
TestTemplates() - Constructor for class com.purplehillsbooks.testcase.TestTemplates
 
TestUserProfileFile() - Method in class com.purplehillsbooks.testcase.Test1
 
testVal(String, String, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
testValidity(Object) - Static method in class com.purplehillsbooks.json.JSONObject
Throw an exception if the object is a NaN or infinite number.
toJSONArray(JSONArray) - Method in class com.purplehillsbooks.json.JSONObject
Produce a JSONArray containing the values of the members of this JSONObject.
toJSONObject(JSONArray) - Method in class com.purplehillsbooks.json.JSONArray
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
toJSONString() - Method in interface com.purplehillsbooks.json.JSONString
The toJSONString method allows a class to produce its own JSON serialization.
toString() - Method in class com.purplehillsbooks.json.JSONArray
Make a JSON text of this JSONArray.
toString(int) - Method in class com.purplehillsbooks.json.JSONArray
Make a formatted JSON text of this JSONArray.
toString() - Method in class com.purplehillsbooks.json.JSONObject
Make a JSON text of this JSONObject.
toString(int) - Method in class com.purplehillsbooks.json.JSONObject
Make a JSON text String representation of this JSONObject.
toString() - Method in class com.purplehillsbooks.json.JSONTokener
Make a printable string of this JSONTokener.
toString() - Method in class com.purplehillsbooks.streams.MemFile
Returns the entire contents of the MemFile as a single string.
totalBytes() - Method in class com.purplehillsbooks.streams.MemFile
Returns the number of bytes that the MemFile currently is holding.
totalChars() - Method in class com.purplehillsbooks.streams.MemFile
Returns the number of characters that the MemFile currently is holding.
traceConvertedException(PrintStream, JSONObject) - Static method in exception com.purplehillsbooks.json.JSONException
If you have already converted to a JSONOBject, you can use this method to get a standard trace of that object to the output writer.
traceConvertedException(Writer, JSONObject) - Static method in exception com.purplehillsbooks.json.JSONException
 
traceException(Throwable, String) - Static method in exception com.purplehillsbooks.json.JSONException
A standardized way to trace a given exception to the system out.
traceException(PrintStream, Throwable, String) - Static method in exception com.purplehillsbooks.json.JSONException
A standardized way to trace a given exception to the system out.
traceException(Writer, Throwable, String) - Static method in exception com.purplehillsbooks.json.JSONException
A standardized way to trace a given exception to the system out.

U

unlock() - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
unlock() - Method in class com.purplehillsbooks.json.LockableJSONFile
Use this to unlock the file when you don't need to update the contents.
UUDecoderStream - Class in com.purplehillsbooks.streams
Given an InputStream to read a raw NNTP message body, this will decode the UUEncoding and give you the decoded result of what the body was holding.
UUDecoderStream(InputStream) - Constructor for class com.purplehillsbooks.streams.UUDecoderStream
Create a UUdecoder that decodes the specified input stream

V

ValidationResults - Class in com.purplehillsbooks.xml
Deprecated.
ValidationResults(Document, Element) - Constructor for class com.purplehillsbooks.xml.ValidationResults
Deprecated.
value(boolean) - Method in class com.purplehillsbooks.json.JSONWriter
Append either the value true or the value false.
value(double) - Method in class com.purplehillsbooks.json.JSONWriter
Append a double value.
value(long) - Method in class com.purplehillsbooks.json.JSONWriter
Append a long value.
value(Object) - Method in class com.purplehillsbooks.json.JSONWriter
Append an object value.
valueToString(Object) - Static method in class com.purplehillsbooks.json.JSONObject
Make a JSON text of an Object value.

W

w - Variable in class com.purplehillsbooks.web.WebRequest
 
WebClient - Class in com.purplehillsbooks.web
 
WebClient() - Constructor for class com.purplehillsbooks.web.WebClient
 
WebRequest - Class in com.purplehillsbooks.web
WebRequest provides a lot of convenience functions for handling web requests especially when they are JSON objects being sent back and forth.
WebRequest(HttpServletRequest, HttpServletResponse) - Constructor for class com.purplehillsbooks.web.WebRequest
 
WebRequest(HttpServletRequest, HttpServletResponse, Writer) - Constructor for class com.purplehillsbooks.web.WebRequest
This constructor is used within a JSP file where the Writer has already been grabbed from the Response object which only allows the writer to be gotten once.
wr - Variable in class com.purplehillsbooks.web.JSONHandler
 
wrap(Object) - Static method in class com.purplehillsbooks.json.JSONObject
Wrap an object, if necessary.
write(Writer) - Method in class com.purplehillsbooks.json.JSONArray
Write the contents of the JSONArray as JSON text to a writer.
write(Writer, int, int) - Method in class com.purplehillsbooks.json.JSONArray
Write the contents of the JSONArray as JSON text to a writer with sub elements indented by the amount specified.
write(Writer) - Method in class com.purplehillsbooks.json.JSONObject
Write the contents of the JSONObject as JSON text.
write(Writer, int, int) - Method in class com.purplehillsbooks.json.JSONObject
Write the contents of the JSONObject as JSON text to a writer.
write(int) - Method in class com.purplehillsbooks.streams.HTMLWriter
 
write(char[], int, int) - Method in class com.purplehillsbooks.streams.HTMLWriter
 
write(int) - Method in class com.purplehillsbooks.streams.JavaScriptWriter
 
write(char[], int, int) - Method in class com.purplehillsbooks.streams.JavaScriptWriter
 
write(char[]) - Method in class com.purplehillsbooks.streams.NullWriter
 
write(char[], int, int) - Method in class com.purplehillsbooks.streams.NullWriter
 
write(int) - Method in class com.purplehillsbooks.streams.NullWriter
 
write(String) - Method in class com.purplehillsbooks.streams.NullWriter
 
write(String, int, int) - Method in class com.purplehillsbooks.streams.NullWriter
 
write(int) - Method in class com.purplehillsbooks.streams.WriterUTF8OutputStream
Receives a byte value, converts properly to a UTF-16 character and writes it to the Writer.
writeAndUnlock(JSONObject) - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
writeBothStylesAndCompare(Mel, String, Hashtable<String, Integer>) - Method in class com.purplehillsbooks.testcase.Test1
 
writeFileAndCompare(Mel, String) - Method in class com.purplehillsbooks.testcase.Test1
 
writeHtml(Writer, String) - Static method in class com.purplehillsbooks.streams.HTMLWriter
Encodes a single String value to a HTML markup so that the HTML page will display the original passed in value exactly..
writeHtml(Writer, String) - Static method in class com.purplehillsbooks.temps.TemplateStreamer
A convenience routine to properly encode values for use in HTML.
writeHtmlWithLines(Writer, String) - Static method in class com.purplehillsbooks.streams.HTMLWriter
writeHtmlWithLines is a special case routine for certain situations.
writeJSONAndCompare(Mel, String, Hashtable<String, Integer>) - Method in class com.purplehillsbooks.testcase.Test1
Convert the XML to JSON write it to a file read that file write it again and compare to archive
writeLine(Writer, List<String>) - Static method in class com.purplehillsbooks.streams.CSVHelper
Write a single row of a CSV table, all values are quoted
writeLine(Writer, String...) - Static method in class com.purplehillsbooks.streams.CSVHelper
Write a single row of a CSV table, all values are quoted using variable parameter syntax so you are not required to construct a List object
writeListToFile(List<String>, File) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
writeLiteralValue(String, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
writer - Variable in class com.purplehillsbooks.json.JSONWriter
The writer that will receive the output.
WriterUTF8OutputStream - Class in com.purplehillsbooks.streams
WriterUTF8OutputStream Lets say you have a Writer (such as the out object in a JSP) and you want to call a method that takes an OutputStream.
WriterUTF8OutputStream(Writer) - Constructor for class com.purplehillsbooks.streams.WriterUTF8OutputStream
Composes an InputStream stream from any other Reader you may have around.
writeShortLiteralValue(StringBuffer, String) - Method in class com.purplehillsbooks.testcase.TestAbstract
 
writeShortLiteralValue(StringBuffer, String) - Static method in class com.purplehillsbooks.xml.Mel
 
writeTable(Writer, List<List<String>>) - Static method in class com.purplehillsbooks.streams.CSVHelper
Just a convenience method that iterates teh rows of a table and outputs to a writer which is presumably a CSV file.
writeTarget(JSONObject) - Method in class com.purplehillsbooks.json.LockableJSONFile
This will update the contents of the file on disk, without changing the lock state.
writeToFile(File) - Method in class com.purplehillsbooks.json.JSONArray
 
writeToFile(File) - Method in class com.purplehillsbooks.json.JSONObject
Write the entire contents of the JSONObject tree to the specified file using JSON format.
writeToFile(File) - Method in class com.purplehillsbooks.xml.Mel
As you might have guessed from the name, the writeToFile method will write the entire tree out to a file.
writeTokenDate(Writer, String, String) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
writeTokenDate(Writer, String, String) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
token specifies a date, and this will format the date for inclusion in the form using the format specified in the last parameter.
writeTokenValue(Writer, String) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
writeTokenValue(Writer, String) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
The token passed will be all text between the double curly brace delimiter.
writeTokenValueRaw(Writer, String) - Method in class com.purplehillsbooks.temps.TemplateJSONRetriever
 
writeTokenValueRaw(Writer, String) - Method in interface com.purplehillsbooks.temps.TemplateTokenRetriever
List writeTokenValue, but without the HTML encoding.
writeToOutputStream(OutputStream) - Method in class com.purplehillsbooks.xml.Mel
writeToOutputStream streams the entire XML output that reflects the entire tree to an output stream.
writeWithoutUnlock(JSONObject) - Method in class com.purplehillsbooks.json.ClusterJSONFile
Deprecated. 
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links