Home » Source » Java

David Tribble's
Java Source Code


Copyright Notice

Unless stated otherwise within the source code files, all source code is
Copyright © David R. Tribble, all rights reserved;
permission is granted to freely use and distribute this source
code provided that the original copyright and authorship
notices remain intact within the source code.
 

Click on the package names to retrieve the Javadoc package summaries.

Source Code Files

package tribble
Open source Java code
   package.html
Package information.

package tribble.build
Source code building tools
   AbstractVersion.java
   MakeVersionInfo.java
Revision version information.

package tribble.crypto
Cryptographic encryption/decryption
   Cipher.java
   MyProvider.java
   package.html
Cryptographic SPI provider information.
   AbstractCipher.java
   AsymmetricCipher.java
   AsymmetricKey.java
   SymmetricCipher.java
   SymmetricKey.java
Cryptographic cipher base classes.
   AsymmetricCipherSpi.java
   BlockCipherSpi.java
   CipherSpi.java
   NullCipherSpi.java
   StreamCipherSpi.java
   SymmetricCipherSpi.java
Cryptographic cipher SPI implementations.
Based on javax.crypto.CipherSpi.
   AESCipher.java
   BlowfishCipher.java
   CastCipher.java
   IDEACipher.java
   NullCipher.java
   RSACipher.java
   SerpentCipher.java
   TEACipher.java
   TwofishCipher.java
   ZoidfarbCipher.java
Fundamental cryptographic cipher implementations.
   RSAKey.java
Cryptographic keys.
   FileEncrypter.java
File encryption/decryption utility.

Encrypts (or decrypts) a file with a user-supplied passphrase, using an AES-128 cipher in either CFB-8 or OFB-128 stream mode. The passphrase is hashed (with SHA-1) to generate the cipher key. The data file can be optionally compressed prior to encryption, and the output can be generated in either binary or base-64 text format.

This class and all requisite packages are provided in a convenient jarfile: FileEncrypter.jar.

package tribble.gui
Java AWT/Swing GUI tools
   HexDumpGui.java
Display the contents of a file in hexadecimal form.

package tribble.io
Input/output
   ASALineWriter.java
Line printer stream which interprets ASA (ANS) carriage control characters for line printers.
   Base64DecoderInputStream.java
   Base64DecoderOutputStream.java
   Base64EncoderInputStream.java
   Base64EncoderOutputStream.java
Base-64 (radix-64) encoding and decoding I/O streams.
   CharDfl.java
   CharI.java
Generic I/O character.
   CharInputStreamDfl.java
   CharInputStreamI.java
   CharReader.java
Generic character input stream.
   DebugWriter.java
   DebugWriterI.java
Debugging (tracing) message output stream.
   DiagnosticOutputDfl.java
   DiagnosticOutputI.java
   DiagnosticWriterI.java
Diagnostic message output stream.
   DeflaterInputStream.java
   InflaterOutputStream.java
Compression (Zip/deflate/inflate) I/O streams.
   DiskCacheFile.java
   DiskCacheManager.java
   DiskCacheTest.java
   FileCacheManagerI.java
Disk file cache manager.
   LexerAdapter.java
   LexerI.java
Generic lexical analyzer (lexer).
   LineInputStream.java
   LineInputStreamI.java
   LineReader.java
Text line input stream.
   Logger.java
   LoggerI.java
Message logging output stream.
   Lr1Parser.java
   Lr1ParserI.java
Generic LR(1) parser.
   NullInputStream.java
   NullOutputStream.java
Null (empty) I/O streams.
   ParserI.java
   ParserWithParseTreeI.java
   ParserWithSymbolTableI.java
Generic parser.
   ParseTreeI.java
Generic parse tree.
   PassThruReader.java
   PassThruWriter.java
   ReaderInputStream.java
   WriterOutputStream.java
Single-byte (ISO 8859-1 Latin-1) character I/O streams.
   StreamCopier.java
Input stream copier.
   SuspendablePrintWriter.java
   SuspendableWriter.java
   SuspendableWriterI.java
Suspendable output stream.
   SymbolI.java
   SymbolTableI.java
Generic symbol tree.
   TokenAdapter.java
   TokenI.java
Generic lexical token.
   TextLine.java
   TextLineI.java
Generic text line.

package tribble.net.ftp
FTP / File Transfer Protocol
   FTPClient.java
   FTPClientAdapter.java
   FTPClientI.java
   FTPClientRun.java
   FTPException.java
   FTPResponse.java
   FTPSimpleClientI.java
   FTPStoppedException.java
Simple FTP client implementation.

package tribble.net.ftp.shell
FTP Command Script Interpreter
   BlockDef.java
   BuiltinFuncs.java
   CommandCodes.java
   CommandFile.java
   CommandLexer.java
   CommandNode.java
   CommandParser.java
   CommandTokens.java
   ExecFrame.java
   ForeachFilter.java
   FTPCommandInterpreter.java
   Interp.java
   TestInterp.java
   TestLexer.java
   TestParser.java
   VarNames.java
   package.html
Parses and executes a batch script containing FTP client commands.

This and all requisite packages are provided in a convenient jarfile: tribble.ftp.jar.

package tribble.parse.sql
SQL parsing
   ExprLexer.java
   QueryExpr.java
   QueryParser.java
Simple SQL query expression parsing.

package tribble.repository
Document repository
   AbstractDocument.java
   AbstractDocumentIterator.java
   AbstractStorableDocument.java
   Document.java
   DocumentFilter.java
   DocumentIterator.java
   DocumentProperty.java
   Folder.java
   Repository.java
   RepositoryReader.java
   RepositoryWriter.java
   StorableDocument.java
   WritableFolder.java
   WritableProperty.java
   package.html
Generic document respository.
See also package tribble.search.

package tribble.search
Document searching
   AbstractDocumentFilter.java
   DocumentI.java
   DocumentFilterI.java
   DocumentPredicateI.java
   DocumentQueryFilter.java
   DocumentSearcherI.java
   DocumentStorerI.java
   WritableDocumentI.java
   package.html
Generic document searching.
See also package tribble.repository.
package tribble.search.disk
Disk document searching
   FDirectory.java
   FFile.java
   FFilter.java
   FIterator.java
   Test.java
   package.html
Disk document searching.
package tribble.search.zip
Zipfile document searching
   ZArchive.java
   ZFile.java
   ZIterator.java
   package.html
Zipfile document searching.
package tribble.search.test
Document searching tests
   Test.java
   package.html
Searching classes generic test driver.

package tribble.security
Cryptographic security
   MyProvider.java
   package.html
Cryptographic SPI provider information.
   GenKeyPair.java
   KeyMaker.java
   KeyReader.java
Secret and public/private key generation.
   StreamDigest.java
   ZoidbergHash.java
Message digest (digital hashing) algorithms.

package tribble.sql
SQL and JDBC
   FieldTypeMap.java
   SqlObjectQuery.java
   SqlObjectResultSet.java
   package.html
JDBC object query classes.
Constructs a client-supplied Java object (using reflection) for each row of an SQL query result set.
   ConnectionAdapter.java
   ResultSetAdapter.java
   StatementAdapter.java
JDBC adapter classes.
package tribble.sql.test
SQL and JDBC test programs
   EmployeeInfo.java
   FakeConnection.java
   FakeResultSet.java
   FakeStatement.java
   Test1.java
Test programs for package tribble.sql.

package tribble.util
Utilities
   Base64Decoder.java
   Base64Encoder.java
Base-64 (radix-64) encoding and decoding.
Based on sun.misc.BASE64Decoder and sun.misc.BASE64Encoder.
   FifoQueue.java
   FifoQueueTest.java
Fast generic FIFO queue that does not require synchronized methods.
   FilenamePattern.java
   testFilenamePattern.bat
Filename pattern matching methods, for matching pattern strings (a la Unix/POSIX filename patterns) against native filenames.
   GridList2D.java
Methods to position 1-dimensional array elements within a 2-dimensional grid.
   Hex.java
Hexadecimal encoding and decoding.
   HexDump.java
Hexadecimal dump utility methods.
   RuntimeExec.java
Easy to use alternative to java.lang.Runtime.exec().

package tribble.xml
XML input/output
   XmlAttributeI.java
   XmlCommentI.java
   XmlDirectiveI.java
   XmlElementI.java
   XmlItemI.java
   XmlTextI.java
Generic XML document entities.
Not based on SAX or DOM.
   XmlException.java
   XmlReaderI.java
   XmlWriterI.java
Generic XML reader and writer.
Not based on SAX or DOM.