Index

A B C D E F G H I J L M N O P Q R S T U V W 
All Classes|All Packages

A

ALL - Static variable in class org.gjt.cuspy.JarX
 
ARCHIVE_CHARSET - Variable in class org.gjt.cuspy.JarX
Attribute name for specifying the in-archive charset.
archiveCharset - Variable in class org.gjt.cuspy.JarX
Charset (in archive) of the entry being processed.
archiveCharsetFromType(JarX[]) - Method in class org.gjt.cuspy.JarX
Parse a Content-Type for any charset parameter.
as(Class<T>, Object) - Static method in class org.postgresql.pljava.packaging.Node
Casts o to class clazz, testing it also for null.
asPgCtlInvocation(ProcessBuilder) - Static method in class org.postgresql.pljava.packaging.Node
Adjust the command arguments of a ProcessBuilder that would directly invoke postgres to start a server, so that it will instead start postgres via pg_ctl.
ATOM - Static variable in class org.gjt.cuspy.JarX
Token types from the structured field body lexer defined in RFC822 as modified in RFC2045.

B

build(String, String) - Method in class org.gjt.cuspy.JarX.Build
Method to be used by an application using this class to build a jar.
Build() - Constructor for class org.gjt.cuspy.JarX.Build
 
BYTES - Static variable in class org.gjt.cuspy.JarX
 

C

CHARACTERS - Static variable in class org.gjt.cuspy.JarX
 
classify(Throwable) - Static method in class org.postgresql.pljava.packaging.Node
Return an array of three Strings, element, sqlState, and message, as would be printed by Node.qp(Throwable).
classify(Attributes, boolean) - Method in class org.gjt.cuspy.JarX
Set instance variables for text/binary and permissions treatment according to the passed Attributes.
clean_node() - Method in class org.postgresql.pljava.packaging.Node
Recursively remove the basedir and its descendants.
clean_node(boolean) - Method in class org.postgresql.pljava.packaging.Node
Recursively remove the basedir and its descendants.
COMMENT - Static variable in class org.gjt.cuspy.JarX
 
connect() - Method in class org.postgresql.pljava.packaging.Node
Return a Connection to the server associated with this Node, using default properties appropriate for this setting.
connect(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
Return a Connection to the server associated with this Node, with suppliedProperties overriding or supplementing the ones that would be passed by default.
connect(Properties) - Method in class org.postgresql.pljava.packaging.Node
Return a Connection to the server associated with this Node, with supplied properties p overriding or supplementing the ones that would be passed by default.

D

data_dir() - Method in class org.postgresql.pljava.packaging.Node
Return the directory name to be used as the PostgreSQL data directory for this node.
defaultArchiveCharset - Variable in class org.gjt.cuspy.JarX
As for archiveCharset, but set from main attributes (default UTF-8).
defaultExecutePermission - Variable in class org.gjt.cuspy.JarX
As for executePermission but set from main attributes, null if not present.
defaultReadPermission - Variable in class org.gjt.cuspy.JarX
As for readPermission but set from main attributes, null if not present.
defaultTreatment - Variable in class org.gjt.cuspy.JarX
As for treatment, but set from main attributes (or BYTES if not present).
defaultUnpackedCharset - Variable in class org.gjt.cuspy.JarX
As for unpackedCharset, but set from main attributes or platform default.
defaultWritePermission - Variable in class org.gjt.cuspy.JarX
As for writePermission but set from main attributes, null if not present.
describeTranscoding(InputStreamReader, OutputStreamWriter) - Method in class org.gjt.cuspy.JarX
 
DOMAINLITERAL - Static variable in class org.gjt.cuspy.JarX
 

E

examplesNeedSaxon() - Static method in class org.postgresql.pljava.packaging.Node
Return true if the examples jar includes the org.postgresql.pljava.example.saxon.S9 class (meaning the appropriate Saxon jar must be installed and on the classpath first before the examples jar can be deployed, unless check_function_bodies is off to skip dependency checking).
executePermission - Variable in class org.gjt.cuspy.JarX
Execute permission to be set on the file.
extract() - Method in class org.gjt.cuspy.JarX
Find the jar I was loaded from and extract all entries except my own class file.
extract() - Method in class org.postgresql.pljava.packaging.Node
Extract the jar contents, just as done in the normal case of running this class with java -jar.
extract(JarEntry, InputStream) - Method in class org.gjt.cuspy.JarX
Extract a single entry, performing any appropriate conversion

F

flattenDiagnostics(Object) - Static method in class org.postgresql.pljava.packaging.Node
A flat-mapping function to expand any SQLException or SQLWarning instance in a result stream into the stream of possibly multiple linked diagnostics and causes in the encounter order of the SQLException iterator.
forWindowsCRuntime(ProcessBuilder) - Static method in class org.postgresql.pljava.packaging.Node
Adjust the command arguments of a ProcessBuilder so that they will be recovered correctly on Windows by a target C/C++ program using the argument parsing algorithm of the usual C run-time code, when it is known that the command will not be handled first by cmd.

G

get_free_port() - Static method in class org.postgresql.pljava.packaging.Node
Return a TCP port on the loopback interface that is free at the moment this method is called.
get_new_node(String) - Static method in class org.postgresql.pljava.packaging.Node
Return a new Node that can be used to initialize and start a PostgreSQL instance.

H

header(BufferedReader) - Method in class org.gjt.cuspy.JarX.Build
Return one header line (complete after RFC822 continuation unfolding).
holds(String, short...) - Method in class org.gjt.cuspy.JarX
True if this JarX object represents a token of one of the given types and its value equals the given string.
holdsIgnoreCase(String, short...) - Method in class org.gjt.cuspy.JarX
True if this JarX object represents a token of one of the given types and its value equals the given string, case-insensitively.

I

init() - Method in class org.postgresql.pljava.packaging.Node
Invoke initdb for the node, passing default options appropriate for this setting.
init(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Invoke initdb for the node, passing default options appropriate for this setting, and tweaks to be applied to the ProcessBuilder before it is started.
init(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
Invoke initdb for the node, with suppliedOptions overriding or supplementing the ones that would be passed by default.
init(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Invoke initdb for the node, with suppliedOptions overriding or supplementing the ones that would be passed by default, and tweaks to be applied to the ProcessBuilder before it is started.
initialized_cluster() - Method in class org.postgresql.pljava.packaging.Node
Like init() but returns an AutoCloseable that will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope.
initialized_cluster(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Like init() but returns an AutoCloseable that will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope.
initialized_cluster(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
Like init() but returns an AutoCloseable that will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope.
initialized_cluster(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Like init() but returns an AutoCloseable that will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope.
installExamples(Connection, boolean) - Static method in class org.postgresql.pljava.packaging.Node
Install the examples jar, under the name examples.
installExamplesAndPath(Connection, boolean) - Static method in class org.postgresql.pljava.packaging.Node
Install the examples jar, under the name examples, and place it on the class path for schema public.
installJar(Connection, String, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
Install a jar.
installSaxon(Connection, String, String) - Static method in class org.postgresql.pljava.packaging.Node
Install a Saxon jar under the name saxon, given the path to a local Maven repo and the needed version of Saxon, assuming the jar has been downloaded there already.
installSaxonAndExamplesAndPath(Connection, String, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
A four-fer: install Saxon, add it to the class path, then install the examples jar, and update the classpath to include both.
installSaxonAndPath(Connection, String, String) - Static method in class org.postgresql.pljava.packaging.Node
Install a Saxon jar under the name saxon, and place it on the class path for schema public.
is(short...) - Method in class org.gjt.cuspy.JarX
True if this JarX object represents a token of one of the given types.
isVoidResultSet(Object, int, int) - Static method in class org.postgresql.pljava.packaging.Node
Predicate testing that an object is a ResultSet that has only columns of void type, and the expected number of rows and columns.

J

JarX - Class in org.gjt.cuspy
Distribute your work as a self-extracting jar file by including one file, JarX.class, that also safely converts text files to the receiver's encoding and newline conventions, and adds less than 7 kB to your jar.
JarX() - Constructor for class org.gjt.cuspy.JarX
Public constructor for an application using JarX to unpack jars.
JarX(short, String) - Constructor for class org.gjt.cuspy.JarX
Constructor for JarX objects used as tokens returned by the lexer.
JarX.Build - Class in org.gjt.cuspy
Subclass of JarX containing the code needed to build jars.

L

LINES - Static variable in class org.gjt.cuspy.JarX
 
loadPLJava(Connection) - Static method in class org.postgresql.pljava.packaging.Node
Load PL/Java (with a LOAD command, not CREATE EXTENSION).

M

main(String[]) - Static method in class org.gjt.cuspy.JarX.Build
Entry point for building a jar.
main(String[]) - Static method in class org.gjt.cuspy.JarX
The entry point for extracting.
main(String[]) - Static method in class org.postgresql.pljava.packaging.Node
Perform an ordinary installation, using pg_config or the corresponding system properties to learn where the files belong, and unpacking the files (not including this class or its ancestors) there.
mainAttributes - Variable in class org.gjt.cuspy.JarX
Main attributes saved from the manifest (which must be seen early).
manifest(InputStream) - Method in class org.gjt.cuspy.JarX.Build
Read the manifest and build lists of file names and Attributes objects.
manifestCode - Static variable in class org.gjt.cuspy.JarX
The (fixed) encoding used for manifest content
manifestName - Static variable in class org.gjt.cuspy.JarX
Name of the manifest file as stored in the jar

N

Node - Class in org.postgresql.pljava.packaging
Subclass the JarX extraction tool to provide a resolve method that replaces prefixes pljava/foo/ in path names stored in the archive with the result of pg_config --foo.
NONE - Static variable in class org.gjt.cuspy.JarX
 
notMe(String) - Method in class org.gjt.cuspy.JarX
True if the passed name is not the in-jar name of this class or related classes that should not be extracted.

O

org.gjt.cuspy - package org.gjt.cuspy
 
org.postgresql.pljava.packaging - package org.postgresql.pljava.packaging
 
OWNER - Static variable in class org.gjt.cuspy.JarX
 

P

PATHRESOLVER - Variable in class org.gjt.cuspy.JarX
Main attribute to specify a JSR223 script to control extracted names.
peek(Object) - Static method in class org.postgresql.pljava.packaging.Node
Prints an object in the manner of qp, but in a way suitable for use in Stream.peek.
PERMISSIONS - Variable in class org.gjt.cuspy.JarX
Permissions (only as supported in java.io.File for SE 6) spec *(, spec) where spec is action=whom, action is read, write, or execute, and whom is none, owner, or all.
prepareResolver(String) - Method in class org.gjt.cuspy.JarX
Prepare a resolver of pathnames, given the value of the PATHRESOLVER main attribute.
prepareResolver(String) - Method in class org.postgresql.pljava.packaging.Node
Prepare the resolver, ignoring the passed string (ordinarily a script or rules); this resolver's rules are hardcoded.

Q

q(Connection, String) - Static method in class org.postgresql.pljava.packaging.Node
Execute some arbitrary SQL
q(ParameterMetaData) - Static method in class org.postgresql.pljava.packaging.Node
Produces a Stream with an element for each parameter of a PreparedStatement.
q(ResultSet) - Static method in class org.postgresql.pljava.packaging.Node
Analogously to q(Statement,...), produces a Stream with an element for each row of a ResultSet, interleaved with any SQLWarnings reported on the result set, or an SQLException if one is thrown.
q(ResultSetMetaData) - Static method in class org.postgresql.pljava.packaging.Node
Produces a Stream with an element for each column of a ResultSet.
q(Statement, Callable<Boolean>) - Static method in class org.postgresql.pljava.packaging.Node
Produces a Stream of the (in JDBC, possibly multiple) results from some execute method on a Statement.
qp(Object) - Static method in class org.postgresql.pljava.packaging.Node
Overload of qp for direct application to any one Object obtained from a result stream.
qp(Throwable) - Static method in class org.postgresql.pljava.packaging.Node
Print a Throwable retrieved from a result stream, with special handling for SQLException and SQLWarning.
qp(Connection, String) - Static method in class org.postgresql.pljava.packaging.Node
Execute some arbitrary SQL and pass the result stream to Node.qp(Stream) for printing to standard output.
qp(ParameterMetaData) - Static method in class org.postgresql.pljava.packaging.Node
Overload of qp for examining ParameterMetaData.
qp(ResultSet) - Static method in class org.postgresql.pljava.packaging.Node
Overload of qp for direct application to a ResultSet.
qp(ResultSetMetaData) - Static method in class org.postgresql.pljava.packaging.Node
Overload of qp for examining ResultSetMetaData.
qp(Statement, Callable<Boolean>) - Static method in class org.postgresql.pljava.packaging.Node
Invoke some execute method on a Statement and pass the result stream to Node.qp(Stream) for printing to standard output.
qp(Stream<Object>) - Static method in class org.postgresql.pljava.packaging.Node
Print streamed results of a Statement in (somewhat) readable fashion.
qp(Stream<Object>, Function<Object, Stream<Object>>) - Static method in class org.postgresql.pljava.packaging.Node
Print streamed results of a Statement in (somewhat) readable fashion, with a choice of flattener for diagnostics.
QUOTEDSTRING - Static variable in class org.gjt.cuspy.JarX
 

R

readPermission - Variable in class org.gjt.cuspy.JarX
Read permission to be set on the file.
removeJar(Connection, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
Remove a jar.
resolve(String, String) - Method in class org.gjt.cuspy.JarX
Called with every path to be extracted; returns a possibly-corrected path.
resolve(String, String) - Method in class org.postgresql.pljava.packaging.Node
Replaces a prefix pljava/key in a path to be extracted with the value of the pgconfig.key system property, or the result of invoking pg_config (or the exact executable named in the pgconfig system property, if present) with the option --key.
resolverEngine - Variable in class org.gjt.cuspy.JarX
Script engine to run the name resolver script, if any.
resolverScript - Variable in class org.gjt.cuspy.JarX
The name resolver script, if any.

S

s_isWindows - Static variable in class org.postgresql.pljava.packaging.Node
True if the platform is determined to be Windows.
section(BufferedReader) - Method in class org.gjt.cuspy.JarX.Build
Process one manifest section, adding a dictionary entry if the section contains both a Name: and a Content-Type attribute.
semiFlattenDiagnostics(Object) - Static method in class org.postgresql.pljava.packaging.Node
A flat-mapping function to expand any SQLException or SQLWarning instance in a result stream into the stream of possibly multiple linked diagnostics in the order produced by getNextException or getNextWarning.
setClasspath(Connection, String, String...) - Static method in class org.postgresql.pljava.packaging.Node
Set the class path for a schema.
setConfig(Connection, String, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
Set a configuration variable on the server.
setDefaults(Attributes) - Method in class org.gjt.cuspy.JarX
Examine the main attributes to set any defaults.
shovel(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
Copy content from an input to an output stream until end.
shovelBytes(InputStream, OutputStream) - Static method in class org.gjt.cuspy.JarX
Copy bytes from an input to an output stream until end.
shovelChars(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX.Build
Overridden to apply the archive encoding to the output stream (jar entry) and the unpacked encoding to the input stream (local file).
shovelChars(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
Copy characters of text from an input from an output stream, applying the specified character encoding but not translating newlines.
shovelLines(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX.Build
Overridden to apply the archive encoding to the output stream (jar entry), the unpacked encoding to the input stream (local file), and use the RFC2046-required CRLF line separator on the output.
shovelLines(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
Copy lines of text from an input from an output stream, applying the specified character encoding and translating newlines.
shovelText(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
Copy text from an input to an output stream until end.
start() - Method in class org.postgresql.pljava.packaging.Node
Start a PostgreSQL server for the node with default options appropriate for this setting.
start(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Start a PostgreSQL server for the node, passing default options appropriate for this setting, and tweaks to be applied to the ProcessBuilder before it is started.
start(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
Start a PostgreSQL server for the node, with suppliedOptions overriding or supplementing the ones that would be passed by default.
start(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Start a PostgreSQL server for the node, with suppliedOptions overriding or supplementing the ones that would be passed by default, and tweaks to be applied to the ProcessBuilder before it is started.
started_server() - Method in class org.postgresql.pljava.packaging.Node
Like start() but returns an AutoCloseable that will stop the server on the exit of a calling try-with-resources scope.
started_server(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Like start() but returns an AutoCloseable that will stop the server on the exit of a calling try-with-resources scope.
started_server(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
Like start() but returns an AutoCloseable that will stop the server on the exit of a calling try-with-resources scope.
started_server(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Like start() but returns an AutoCloseable that will stop the server on the exit of a calling try-with-resources scope.
stateMachine(String, Consumer<String>, Stream<Object>, InvocationHandler...) - Static method in class org.postgresql.pljava.packaging.Node
Executes a state machine specified in the form of a list of lambdas representing its states, to verify that a result stream is as expected.
stop() - Method in class org.postgresql.pljava.packaging.Node
Stop the server instance associated with this Node.
stop(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
Stop the server instance associated with this Node.
structuredFieldBody(String, int) - Static method in class org.gjt.cuspy.JarX
Lexical analyzer for structured field bodies as described in RFC822 and modified in RFC2045.

T

toString() - Method in class org.postgresql.pljava.packaging.Node
Identifying information for a "node" instance, or for the singleton extractor instance.
treatment - Variable in class org.gjt.cuspy.JarX
How to treat the entry being processed: bytes, characters, lines.
TSPECIAL - Static variable in class org.gjt.cuspy.JarX
 
type - Variable in class org.gjt.cuspy.JarX
Token type, when JarX objects are used to return content type tokens

U

UNPACKED_CHARSET - Variable in class org.gjt.cuspy.JarX
Attribute name for specifying the when-unpacked charset.
unpackedCharset - Variable in class org.gjt.cuspy.JarX
Charset when unpacked of the entry being processed.
use_pg_ctl(boolean) - Method in class org.postgresql.pljava.packaging.Node
Indicate whether to use pg_ctl to start and stop the server (if true), or start postgres and stop it directly (if false, the default).

V

value - Variable in class org.gjt.cuspy.JarX
Token text when JarX objects are used to return content type tokens
voidResultSetDims(Object) - Static method in class org.postgresql.pljava.packaging.Node
Determines whether an object is a ResultSet with no columns of any type other than void, to allow abbreviated output of result sets produced by the common case of queries that call void functions.

W

writePermission - Variable in class org.gjt.cuspy.JarX
Write permission to be set on the file.
A B C D E F G H I J L M N O P Q R S T U V W 
All Classes|All Packages