Home | Trees | Index | Help |
|
---|
Module antiparser :: Class apString |
|
apObject
--+
|
apString
apCString
Method Summary | |
---|---|
Constructor that is called when the class is instantiated. | |
Returns the length of the current content. | |
Returns a list of illegal characters. | |
Returns a terminator string. | |
Sets a string of illegal characters. | |
Sets a terminator string for the data object. | |
Inherited from apObject | |
Print the data object. | |
Returns the byteorder property of the data object. | |
Returns the content of the data object. | |
Returns the debugging status of the data object. | |
Gets the maxsize property of the data object. | |
Returns the minsize property of the data object. | |
Returns the mode that is currently enabled for the data object. | |
Return the optional property value of the data object. | |
Returns the static property value of the data object. | |
Sets the byteorder property of the data object to "big" or "little" endian. | |
Sets the content of the data object. | |
Sets the debugging status to True or False. | |
Sets the maxsize property of the data object to an integer. | |
Sets the minsize property of the data object to an integer. | |
Sets the mode for the data object. | |
Sets the optional property of the data object to True or False. | |
Sets the static property of the data object to True or False. |
Method Details |
---|
__init__(self)
Constructor that is called when the class is instantiated.
|
getContentSize(self)Returns the length of the current content. |
getIllegalChars(self)Returns a list of illegal characters. |
getTerminator(self)Returns a terminator string. |
setIllegalChars(self, chars)Sets a string of illegal characters. illegalchars alsos the user to specify characters that will not be included in the antiparser payload for the data object. illegalchars is a string value, and defaults to an empty string. Calling this method changes the range of legal characters, ie: the charRange field. |
setTerminator(self, terminator)Sets a terminator string for the data object. terminator is a static string of characters that will be appended to the end of the data object content. This is useful for protocols where each field is terminated, such as fields in an HTTP header. terminator defaults to None, indicating that no terminator is to be used for the data object. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Aug 17 09:02:50 2005 | http://epydoc.sf.net |