![]() |
Quadcap Embeddable Server |
Definition at line 58 of file Scanner.java.
Public Member Functions | |
| Scanner (InputStream is, boolean saveit) | |
| String | getLog () |
| Scanner (InputStream is) | |
| Construct a new scanner, attached to the specified input stream. | |
| void | reset (InputStream is) |
| final void | skipWhile (OctetMap map) throws IOException |
| Read and discard characters until a character is found which is not in the map. | |
| final void | skipUntil (OctetMap map) throws IOException |
| Read and discard characters until a character is found which is in the map. | |
| final String | parseWhile (OctetMap map) throws IOException |
| Return the next portion of the stream which consists of characters IN the specified set. | |
| final String | parseUntil (OctetMap map) throws IOException |
| Return the next portion of the stream which consists of characters NOT IN the specified set. | |
| final void | matchChar (int expected) throws IOException |
| Read the next character, and verify that it is equal to the expected value. | |
| final void | matchString (OctetMap map, String expected) throws IOException |
| Read the next string using the specified map, and verify that it IS equal to the expected value. | |
| final void | matchStringIgnoreCase (OctetMap map, String expected) throws IOException |
| Read the next string using the specified map, and verify that it IS equal to the expected value, if all characters in both strings are converted to monocase. | |
| final int | peek () throws IOException |
| Peek ahead one character in the stream by reading, then pushing back the character. | |
Static Public Member Functions | |
| int | copyWhile (InputStream is, OutputStream os, OctetMap map) throws IOException |
| Copy bytes from an input stream to an output stream until a byte not in the specified set is found. | |
| int | copyUntil (InputStream is, OutputStream os, OctetMap map) throws IOException |
| Copy bytes from an input stream to an output stream until a byte in the specified set is found. | |
| int | copyUntil (InputStream is, OutputStream os, int dc) throws IOException |
| int | copyUntil (BufferedInputStream is, OutputStream os, String s) throws IOException |
Copy bytes from in to out until the specified string is is.read from in</code. | |
| int | skipWhile (InputStream is, int dc) throws IOException |
| Read and discard characters until a character is found which is not equal to the specified character. | |
Package Functions | |
| final int | read () throws IOException |
| final void | unread (int c) |
Package Attributes | |
| InputStream | is |
| StringBuffer | sb = new StringBuffer() |
| int | pushback = -1 |
| LogInputStream | log = null |
| ByteArrayOutputStream | bos = null |
|
||||||||||||
|
Definition at line 67 of file Scanner.java. References com.quadcap.util.text.Scanner.bos. |
|
|
Construct a new scanner, attached to the specified input stream.
Definition at line 84 of file Scanner.java. |
|
||||||||||||||||
|
Copy bytes from
The string bytes are not written to
Definition at line 319 of file Scanner.java. References com.quadcap.util.text.Scanner.is. |
|
||||||||||||||||
|
Definition at line 296 of file Scanner.java. References com.quadcap.util.text.Scanner.is. |
|
||||||||||||||||
|
Copy bytes from an input stream to an output stream until a byte in the specified set is found. That byte is returned, or -1 the end of file is reached.
Definition at line 285 of file Scanner.java. References com.quadcap.util.text.Scanner.copyUntil(), and com.quadcap.util.text.Scanner.is. Referenced by com.quadcap.util.text.Scanner.copyUntil(). |
|
||||||||||||||||
|
Copy bytes from an input stream to an output stream until a byte not in the specified set is found. That byte is returned, or -1 the end of file is reached.
Definition at line 263 of file Scanner.java. References com.quadcap.util.text.Scanner.copyWhile(), and com.quadcap.util.text.Scanner.is. Referenced by com.quadcap.util.text.Scanner.copyWhile(). |
|
|
Definition at line 76 of file Scanner.java. References com.quadcap.util.text.Scanner.bos. Referenced by com.quadcap.http.servlets.cgi.CgiScript.makeOutputThread(). |
|
|
Read the next character, and verify that it is equal to the expected value.
Definition at line 182 of file Scanner.java. References com.quadcap.util.text.Scanner.matchChar(), and com.quadcap.util.text.Scanner.read(). Referenced by com.quadcap.util.text.Scanner.matchChar(). |
|
||||||||||||
|
Read the next string using the specified map, and verify that it IS equal to the expected value.
Definition at line 203 of file Scanner.java. References com.quadcap.util.text.Scanner.matchString(). Referenced by com.quadcap.util.text.Scanner.matchString(). |
|
||||||||||||
|
Read the next string using the specified map, and verify that it IS equal to the expected value, if all characters in both strings are converted to monocase.
Definition at line 222 of file Scanner.java. References com.quadcap.util.text.Scanner.matchStringIgnoreCase(), and com.quadcap.util.text.Scanner.peek(). Referenced by com.quadcap.util.text.Scanner.matchStringIgnoreCase(). |
|
|
Return the next portion of the stream which consists of characters NOT IN the specified set.
Definition at line 163 of file Scanner.java. References com.quadcap.util.text.Scanner.parseUntil(), com.quadcap.util.text.Scanner.read(), and com.quadcap.util.text.Scanner.sb. Referenced by com.quadcap.util.text.Scanner.parseUntil(), and com.quadcap.http.client.LinkChecker.run(). |
|
|
Return the next portion of the stream which consists of characters IN the specified set.
Definition at line 146 of file Scanner.java. References com.quadcap.util.text.Scanner.parseWhile(), com.quadcap.util.text.Scanner.read(), and com.quadcap.util.text.Scanner.sb. Referenced by com.quadcap.http.server22.WebServer.parseMimeTypes(), and com.quadcap.util.text.Scanner.parseWhile(). |
|
|
Peek ahead one character in the stream by reading, then pushing back the character.
Definition at line 242 of file Scanner.java. References com.quadcap.util.text.Scanner.pushback, and com.quadcap.util.text.Scanner.read(). Referenced by com.quadcap.util.text.Scanner.matchStringIgnoreCase(), and com.quadcap.http.server22.WebServer.parseMimeTypes(). |
|
|
|
Definition at line 88 of file Scanner.java. References com.quadcap.util.text.Scanner.bos, com.quadcap.util.text.Scanner.pushback, and com.quadcap.util.text.Scanner.reset(). Referenced by com.quadcap.util.text.Scanner.reset(). |
|
|
Read and discard characters until a character is found which is in the map. Then push back the terminating character.
Definition at line 133 of file Scanner.java. References com.quadcap.util.text.Scanner.read(), and com.quadcap.util.text.Scanner.skipUntil(). Referenced by com.quadcap.http.server22.WebServer.parseMimeTypes(), com.quadcap.http.client.LinkChecker.run(), and com.quadcap.util.text.Scanner.skipUntil(). |
|
||||||||||||
|
Read and discard characters until a character is found which is not equal to the specified character. Return the terminating character.
Definition at line 355 of file Scanner.java. References com.quadcap.util.text.Scanner.is. |
|
|
Read and discard characters until a character is found which is not in the map. Then push back the terminating character.
Definition at line 120 of file Scanner.java. References com.quadcap.util.text.Scanner.read(), and com.quadcap.util.text.Scanner.skipWhile(). Referenced by com.quadcap.http.server22.WebServer.parseMimeTypes(), com.quadcap.http.client.LinkChecker.run(), and com.quadcap.util.text.Scanner.skipWhile(). |
|
|
Definition at line 109 of file Scanner.java. References com.quadcap.util.text.Scanner.pushback, and com.quadcap.util.text.Scanner.unread(). Referenced by com.quadcap.util.text.Scanner.unread(). |
|
|
Definition at line 65 of file Scanner.java. Referenced by com.quadcap.util.text.Scanner.getLog(), com.quadcap.util.text.Scanner.reset(), and com.quadcap.util.text.Scanner.Scanner(). |
|
|
Definition at line 59 of file Scanner.java. Referenced by com.quadcap.util.text.Scanner.copyUntil(), com.quadcap.util.text.Scanner.copyWhile(), com.quadcap.util.text.Scanner.read(), and com.quadcap.util.text.Scanner.skipWhile(). |
|
|
Definition at line 64 of file Scanner.java. |
|
|
Definition at line 61 of file Scanner.java. Referenced by com.quadcap.util.text.Scanner.peek(), com.quadcap.util.text.Scanner.read(), com.quadcap.util.text.Scanner.reset(), and com.quadcap.util.text.Scanner.unread(). |
|
|
Definition at line 60 of file Scanner.java. Referenced by com.quadcap.util.text.Scanner.parseUntil(), and com.quadcap.util.text.Scanner.parseWhile(). |