input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
protected int changes we do not actually store this information on every node we only have a global indicator on the document doing otherwise cost us too much for little gain return owner document changes
|
returns the number of changes to this node
|
protected void synchronize data by default just change the flag to avoid calling this method again needs sync data false
|
override this method in subclass to hook in efficient
|
public text create text node string data return new text impl this data
|
factory method creates a text node having this document as its
|
public string to string return get node name get node value
|
non dom method for debugging convenience
|
private int node list get length if f cached length 1 is the cached length invalid child node node start from the cached node if we have one if f cached child index 1 f cached child null f cached length f cached child index node f cached child else node first child f cached length 0 for node null node node next sibling f cached length return f cached length node list get length int
|
count the immediate children of this node
|
public int get length return node list get length
|
node list method count the immediate children of this node
|
public document type get doctype if needs sync children synchronize children return doc type
|
for xml this provides access to the document type definition
|
public node item int index return node list item index item int node
|
node list method return the nth immediate child of this node or
|
public string get public id if needs sync data synchronize data return public id
|
introduced in dom level 2
|
public string get system id if needs sync data synchronize data return system id
|
introduced in dom level 2
|
public string get internal subset if needs sync data synchronize data return internal subset
|
introduced in dom level 2
|
public short get node type return node document type node
|
a short integer indicating what type of node this is
|
public node clone node boolean deep document type impl newnode document type impl super clone node deep named node maps must be cloned explicitly to avoid sharing them newnode entities entities clone map newnode newnode notations notations clone map newnode newnode elements elements clone map newnode return newnode clone node boolean node
|
clones the node
|
public void inserted node from dom node node if node null return if f insert node node return node parent node get parent node if parent f start container int index index of node f start container if index f start offset f start offset if parent f end container int index index of node f end container if index f end offset f end offset
|
this function is called from the dom
|
public boolean get standalone return standalone
|
dom level 3 wd experimental
|
public void normalize no need to normalize if already normalized if is normalized return if needs sync children synchronize children child node kid for kid first child kid null kid kid next sibling kid normalize is normalized true
|
override default behavior to call normalize on this nodes
|
public named node map get entities if needs sync children synchronize children return entities
|
access the collection of general entities both external and
|
public named node map get notations if needs sync children synchronize children return notations
|
access the collection of notations defined in the dtd
|
public void set read only boolean read only boolean deep if needs sync children synchronize children super set read only read only deep set read only property elements set read only read only true entities set read only read only true notations set read only read only true set read only boolean boolean
|
non dom subclassed to flip the entities and notations readonly switch
|
public named node map get elements if needs sync children synchronize children return elements
|
non dom access the collection of element definitions
|
public void set read only boolean read only boolean deep super set read only read only deep if deep if needs sync children synchronize children recursively set kids for child node mykid first child mykid null mykid mykid next sibling if mykid get node type node entity reference node mykid set read only read only true set read only boolean boolean
|
override default behavior so that if deep is true children are also
|
public element get document element if needs sync children synchronize children return doc element
|
convenience method allowing direct access to the child node
|
public short get node type return node text node
|
a short integer indicating what type of node this is
|
public string get node name return text
|
returns the node name
|
public void set ignorable whitespace boolean ignore if needs sync data synchronize data is ignorable whitespace ignore set ignorable whitespace boolean
|
non dom set whether this text is ignorable whitespace
|
public boolean is ignorable whitespace if needs sync data synchronize data return internal is ignorable whitespace is ignorable whitespace boolean
|
non dom returns whether this text is ignorable whitespace
|
public boolean has feature string feature string version currently we support only xml level 1 version 1 0 boolean any version version null version length 0 return feature equals ignore case core any version version equals 1 0 version equals 2 0 feature equals ignore case xml any version version equals 1 0 version equals 2 0 feature equals ignore case events any version version equals 2 0 feature equals ignore case mutation events any version version equals 2 0 feature equals ignore case traversal any version version equals 2 0 has feature string string boolean
|
test if the dom implementation supports a specific feature
|
public short get node type return node processing instruction node
|
a short integer indicating what type of node this is
|
public string get node name if needs sync data synchronize data return target
|
returns the target
|
public string get target if needs sync data synchronize data return target get target string
|
a pis target states what processor channel the pis data
|
public string get data if needs sync data synchronize data return data get data string
|
a pis data content tells the processor what we actually want it
|
public void set data string data hand off to set node value for code reuse reasons mutation events readonly protection synchronizing etc set node value data set data string
|
change the data content of this pi
|
public short get node type return node notation node
|
a short integer indicating what type of node this is
|
public void set public id string id if is read only throw new domexception domexception no modification allowed err dom001 modification not allowed if needs sync data synchronize data public id id set public id string
|
non dom the public identifier for this notation
|
public void set system id string id if is read only throw new domexception domexception no modification allowed err dom001 modification not allowed if needs sync data synchronize data system id id set system id string
|
non dom the system identifier for this notation
|
public domimplementation get implementation currently implemented as a singleton since it s hardcoded information anyway return core domimplementation impl get domimplementation
|
retrieve information describing the abilities of this particular
|
public void set encoding string value encoding value
|
dom level 3 wd experimental
|
public void set version string value version value
|
dom level 3 wd experimental
|
public void set standalone boolean value standalone value
|
dom level 3 wd experimental
|
public boolean get error checking return error checking
|
returns true if the dom implementation performs error checking
|
public element get element by id string element id return get identifier element id
|
introduced in dom level 2
|
public void put identifier string id name element element if element null remove identifier id name return if needs sync data synchronize data if identifiers null identifiers new hashtable identifiers put id name element put identifier string element
|
registers an identifier name with a specified element node
|
public element get identifier string id name if needs sync data synchronize data if identifiers null return null return element identifiers get id name get identifier string element
|
returns a previously registered element with the specified
|
public void remove identifier string id name if needs sync data synchronize data if identifiers null return identifiers remove id name remove identifier string
|
removes a previously registered element with the specified
|
public enumeration get identifiers if needs sync data synchronize data if identifiers null identifiers new hashtable return identifiers keys get identifiers enumeration
|
returns an enumeration registered of identifier names
|
public void set send buffer size int size throws socket exception socket set send buffer size size
|
set the underlying socket send buffer size
|
public void set receive buffer size int size throws socket exception socket set receive buffer size size
|
sets the underlying socket receive buffer size
|
protected boolean is kid ok node parent node child if allow grammar access parent get node type node document type node return child get node type node element node return 0 kid ok parent get node type 1 child get node type
|
uses the kid ok lookup table to check whether the proposed
|
protected void changed changes
|
denotes that this node has changed
|
protected int changes return changes
|
returns the number of changes to this node
|
protected void set user data node impl n object data does nothing by default overidden in subclass
|
store user data related to a given node
|
private thread container find root set thread container root new thread container iterator string iter id table key set iterator while iter has next object key iter next thread container c id table get key if c parent null if c next null throw new runtime exception c next is c next to string c next root child root child c return root
|
find the root set of all existing thread containers
|
public void set auth value string auth this auth auth
|
set auth command use value
|
private void init ssl context throws ioexception if context null try context sslcontext get instance protocol context init new key manager get key manager new trust manager get trust manager null catch key management exception e ioexception ioe new ioexception could not initialize ssl context ioe init cause e throw ioe catch no such algorithm exception e ioexception ioe new ioexception could not initialize ssl context ioe init cause e throw ioe
|
performs a lazy init of the ssl context
|
public void set enabled session creation boolean is creation this is creation is creation
|
controls whether new a ssl session may be established by this socket
|
public boolean get enable session creation if socket instanceof sslsocket return sslsocket socket get enable session creation return false
|
returns true if new ssl sessions may be established by this socket
|
public void set need client auth boolean is need client auth this is need client auth is need client auth
|
configures the socket to require client authentication
|
public boolean get need client auth if socket instanceof sslsocket return sslsocket socket get need client auth return false
|
returns true if the socket will require client authentication
|
public void set want client auth boolean is want client auth this is want client auth is want client auth
|
configures the socket to request client authentication
|
public boolean get want client auth if socket instanceof sslsocket return sslsocket socket get want client auth return false
|
returns true if the socket will request client authentication
|
public void set use client mode boolean is client mode this is client mode is client mode
|
configures the socket to use client or server mode in its first
|
public boolean get use client mode if socket instanceof sslsocket return sslsocket socket get use client mode return false
|
returns true if the socket is set to use client mode
|
public void set enabled cipher suites string cipher suites suites new string cipher suites length system arraycopy cipher suites 0 suites 0 cipher suites length
|
controls which particular cipher suites are enabled for use on this
|
public void set enabled protocols string protocol versions protocols new string protocol versions length system arraycopy protocol versions 0 protocols 0 protocol versions length
|
controls which particular protocol versions are enabled for use on this
|
private boolean check protvalue string prot for int p 0 p prot command value length p if prot command value p equals prot return true return false
|
i check the value that i can set in prot command value
|
public trust manager get trust manager return trust manager
|
get the currently configured
|
public void set trust manager trust manager trust manager this trust manager trust manager
|
override the default
|
public string get server system key return server system key
|
getter for the server system key property
|
public string get default date format str return default date format str
|
getter for the
|
public string get server time zone id return server time zone id
|
getter for the
|
public string group int matchnum if this result null return null return this result group matchnum
|
convenience method delegates to the internal match results group
|
public boolean set regex string regex try pattern pattern compile regex catch pattern syntax exception pse throw new illegal argument exception unparseable regex supplied regex return pattern null
|
alter the current regular expression being utilised for entry parsing
|
public calendar parse timestamp string timestamp str throws parse exception calendar now calendar get instance return parse timestamp timestamp str now
|
implements the one
|
private boolean parse file list ftpfile file string entry if matches entry file set raw listing entry string name group 2 string dsorg group 1 file set name name dsorg if ps equals dsorg file set type ftpfile file type else if po equals dsorg po e equals dsorg regex already ruled out anything other than po or po e file set type ftpfile directory type else return false return true return false
|
parse entries representing a dataset list
|
private boolean parse member list ftpfile file string entry if matches entry file set raw listing entry string name group 1 string datestr group 2 group 3 file set name name file set type ftpfile file type try file set timestamp super parse timestamp datestr catch parse exception e e print stack trace just ignore parsing errors todo check this is ok return false this is a parsing failure too return true return false
|
parse entries within a partitioned dataset
|
private boolean parse simple entry ftpfile file string entry if entry null entry length 0 file set raw listing entry string name entry split 0 file set name name file set type ftpfile file type return true return false
|
assigns the name to the first word of the entry
|
private boolean parse unix list ftpfile file string entry file unix ftpentry parser parse ftpentry entry if file null return false return true
|
parse the entry as a standard unix file
|
private boolean parse jeslevel1 list ftpfile file string entry if matches entry if group 3 equals ignore case output file set raw listing entry string name group 2 job number used by get file set name name file set type ftpfile file type return true return false
|
matches these entries note no header 1 2 3 4 5 ibmuser1
|
private void set server time zone string server time zone id time zone server time zone time zone get default if server time zone id null server time zone time zone get time zone server time zone id this default date format set time zone server time zone if this recent date format null this recent date format set time zone server time zone
|
sets a time zone represented by the supplied id string into all
|
private boolean parse jeslevel2 list ftpfile file string entry if matches entry if group 4 equals ignore case output file set raw listing entry string name group 2 job number used by get file set name name file set type ftpfile file type return true return false
|
matches these entries note no header 1 2 3 4 5 jobname jobid
|
public calendar parse timestamp string timestamp str throws parse exception return this timestamp parser parse timestamp timestamp str
|
this method is called by the concrete parsers to delegate
|
public int compare object o1 object o2 int compare code 0 try comparable s1 comparable encoder this string encoder encode o1 comparable s2 comparable encoder this string encoder encode o2 compare code s1 compare to s2 catch encoder exception ee compare code 0 return compare code
|
compares two strings based not on the strings
|
public object decode object ascii throws decoder exception if ascii null return empty byte array if ascii instanceof byte return from ascii byte ascii if ascii instanceof char return from ascii char ascii if ascii instanceof string return from ascii string ascii to char array throw new decoder exception argument not a byte array
|
decodes a byte array where each byte represents an ascii 0 or 1
|
public object decode object p object throws decoder exception if p object instanceof byte throw new decoder exception parameter supplied to base64 decode is not a byte return decode byte p object
|
decodes an object using the base64 algorithm
|
public string encode final string p string final string charset throws encoder exception if p string null return null try return encode text p string charset catch unsupported encoding exception e throw new encoder exception e get message
|
encodes a string into its quoted printable form using the specified charset
|
public string encode string p string throws encoder exception if p string null return null return encode p string get default charset
|
encodes a string into its quoted printable form using the default charset
|
public object encode object p object throws encoder exception if p object instanceof byte throw new encoder exception parameter supplied to base64 encode is not a byte return encode byte p object
|
encodes an object using the base64 algorithm
|
public string decode string p string throws decoder exception if p string null return null try return decode text p string catch unsupported encoding exception e throw new decoder exception e get message
|
decodes a quoted printable string into its original form
|
public object encode object p object throws encoder exception if p object null return null else if p object instanceof string return encode string p object else throw new encoder exception objects of type p object get class get name cannot be encoded using q codec
|
encodes an object into its quoted printable form using the default charset
|
public object decode object p object throws decoder exception if p object null return null else if p object instanceof string return decode string p object else throw new decoder exception objects of type p object get class get name cannot be decoded using q codec
|
decodes a quoted printable object into its original form
|
public string get default charset return this charset
|
the default charset used for string decoding and encoding
|
public string encode string p string throws encoder exception if p string null return null try return encode p string get default charset catch unsupported encoding exception e throw new encoder exception e get message
|
encodes a string into its url safe form using the default string
|
public boolean is encode blanks return this encode blanks
|
tests if optional tranformation of space characters is to be used
|
public void set encode blanks boolean b this encode blanks b
|
defines whether optional tranformation of space characters is to be used
|
public string decode string p string throws decoder exception if p string null return null try return decode p string get default charset catch unsupported encoding exception e throw new decoder exception e get message
|
decodes a url safe string into its original form using the default
|
public object encode object p object throws encoder exception if p object null return null else if p object instanceof byte return encode byte p object else if p object instanceof string return encode string p object else throw new encoder exception objects of type p object get class get name cannot be url encoded
|
encodes an object into its url safe form
|
public object decode object p object throws decoder exception if p object null return null else if p object instanceof byte return decode byte p object else if p object instanceof string return decode string p object else throw new decoder exception objects of type p object get class get name cannot be url decoded
|
decodes a url safe object into its original form
|
public string get encoding return this charset
|
the code string code encoding used for decoding and encoding
|
public string encode final string value final string charset throws encoder exception if value null return null try return encode text value charset catch unsupported encoding exception e throw new encoder exception e get message
|
encodes a string into its base64 form using the specified charset
|
public string encode string value throws encoder exception if value null return null return encode value get default charset
|
encodes a string into its base64 form using the default charset
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.