Package Torello.Java
This package is largely a "helper & utility" package to the HTML scrape routines.
Code HiLiting, and the
There are almost a dozen basic utility classes in this package. The
'FileRW'
make forgetting about the file-system a lot easier. 'FileNode'
loads the directory-tree of the underlying file-system into memory, and facilitates traversing
that tree with anything from java.util.Vector
to java.util.stream.Stream
.
Code HiLiting, and the
JavaDoc Tool
polls a server called
'HiLite.ME'
easily and automatically.. Much of the classes in this package wind up
seeming like a series of "college notes" or possiblly "research notes" for familiarizing
oneself with Java. The class 'EXCC'
which may seem trivial, helps when a complex
exception with a large 'cause chain'
is thrown. The code itself is only around 20
lines of Java Code.
There are almost a dozen basic utility classes in this package. The
String
routines are copious enough to simplify some of the things that are done with HTML News pages.
Two of them are created by Code Generators (StrIndexOf
and StrTokIndexOf
). If
the number of methods provided seems superfluous, you don't have to use them. However, writing
something once, so it may be forgotten is how to improve JAR libraries.-
Class FileNode Java Entity Description FileNodeFilter A simple functional-interface (lambda) for filtering lists ofFileNode
SearchAndPrint A functional-interface for specifying a regular-expression, and how to print the results, to theGREP
ToolIOExceptionHandler A functional-interface, used in case ofIOException
, to be used alongside the'GREP'
ToolRTC<SOME_DATA_STRUCTURE> This class actually extends the parent-type classVarType
FileNode One of the flagship classes of Java HTML,FileNode
loads a directory or directory-tree from a File-System into memory, and provides a thorough API for listing and analyzing its contentsFileTransfer Operating-System independent utilities for moving, copying and deleting files, or an entire tree of files - using theFileNode
classGREP A utility that attempts to mimic the UNIX command'grep'
SED Based on the UNIX'SED'
Command, this class updates files based on eitherString
-Literal matches & replacements, or or Regular-Expression matchesSuper String Theory Java Entity Description StrFilter A simple functional-interface that provides many 'builder' methods for creating standard JavaPredicate's
that operate on an Object's'toString'
methodStrCSV A utility that builds Comma Separated Value String's (and can parse them as well)StrCh Class String-Character provides an exhaustive-combinatoric suite of methods that extend the basic JavaString
methodsequals, contains, startsWith
andendsWith
, using Javachar
primitives as the comparator elementStrCmpr Class String-Compare provides an exhaustive-combinatoric suite of methods that extend the basic JavaString
methodsequals, contains, startsWith
andendsWith
StrTokCmpr Similar to class String-Compare, String-Token-Compare also provides an exhaustive suite of methods that extend the basic JavaString
methodsequals, contains, startsWith
andendsWith
, but further allowing a user to specify the match-string boundary-charactersStrIndent A class for indenting, unindenting and trimming textual-stringsStrIndexOf This class builds upon the API that is provided byString indexOf
to provide a larger collection of search routines for JavaString's
StrTokIndexOf The purpose of this class is to help find the location ofToken-Matches
inside of an input source-String
StringParse A plethora of extensions to Java'sString
classStrPrint This class provides severalString
printing utilities such as abbreviation and list printingStrReplace An efficient way to replace multiple substring's, or single-characters, inside of a single Java String, in place, without rebuilding the returnedString
more than onceStrSource Command Line Java Entity Description GSUTIL This class wraps the Google Cloud command-line tool'gsutil'
, simply using the standard Javajava.lang.Process
object (in addition to Java HTML'sOSResponse
) thereby providing a simple Java-API for these operating-system callsMSDOS A great tool for invoking commands to an MS-DOS operating-systemShell A great tool for working with a UNIX operating-system, and invoking common UNIX commands - this class simply converts many of the old UNIX-BASH shell commands into a simple Java APIOSCommands OSExtras This class allows for the user to provide redirects, environment variables, and output/error unification (meaning the Standard-Output and Error-Output Streams are printed together, as if they were being printed to the terminal)OSResponse Simple HiLiter Java Entity Description HiLiteMe Wraps a basic on-line syntax-hiliter namedHiLite.ME
(which, itself, wraps the on-line hiliterpygments.org
)HiLiteMe.Cache A caching-system class that allows this tool to efficiently bypass calls to the server when an exact-copy of the hilited source-code already exists inside the cacheHiLiteMe.Params Inner class for providing a list of parameters when hiliting multiple files on diskUtilities Java Entity Description C A UNIX Terminal Color-Codes implementation for printing colored text to terminalEXCC 'Exception Cause Chain'
helps convert exception messages whoseThrowable
FileRW Operating-System independent File Read & Write utilities that reduce many common Java File I/O Commands to a single method invocation, focusing heavily on Java's Serialization featureLFEC Load File Exception Catch
provides an eloquent way for printing standardized (consistent-looking) error messages to terminal if a data-file fails to load from the file-system, and subsequently halting the JVM - immediatelyLFEC.GCSSB The Google Cloud Server Storage Bucket extension of "Load File Exception Catch" does the work thatLFEC
does, but for GCS Storage Buckets, rather than operating system filesLV The Loop-Variable End-Points class is used extensively throughout the Java-HTML Library for throwing properly formatted exception messages vis-a-vis loop variablesQ The class'Q'
(Query) is an extremely simple debugging tool that is similar to an IDE's 'breakpoint' feature, but instead using terminal inputRegExFiles A utility for saving Regular-Expressions in a text-file that may be lazily-loaded at run-time when neededStorageWriter A class that is nearly identical to theStringBuilder
and / orStringWriter
standard Java ClassesVarType<RET_DATA_STRUCTURE,INSERT_TYPE> Provides any method the ability to provide its users the ability to choose what kind of data structure should be used for returning the method's resultsEnums Java Entity Description Country An enumeration of countries in the worldVerbosity A Java'enum'
that is used in several locations in theJava-HTML JAR
Library to allow an end-user to request the quantity of text being produced by a tool or applicationExceptions Java Entity Description CallableBodyException This is an exception that occurs when parsing Java Method & Constructor Bodies for the JavaDoc Code-HiLiting Application; and it indicates that the method or constructor body passed to the code-hiliting mechanism is not properly formattedDirExpectedException Thrown when aFileNode
operation has been invoked on an instance that represents an Operating-SystemFile
, but that invoked-method may only be applied to Operating-SystemDirectory
instancesEmptyListException Intended to signal that a required-parameter or configuration has been passed a Data-Structure that is an empty or null listFileExpectedException Thrown when aFileNode
operation has been invoked on an instance that represents an Operating-SystemDirectory
, but that invoked-method may only be applied to Operating-SystemFile
instancesFileNodeException General purpose exception that may be used alongside classFileNode
FileSizeException May be used to indicate that a data-file is too large to fit into an in-memory data-structure; or too big to adhere to any kind of model-constraintsNException Throws when a Method's (or Constructor's) integer-valued parameter (often for parameters that are actually named'n'
, representing a 'count' of some form or fasion) does not adhere to some of those Method's expectations or requirementsNoMatchException When aString
parsing method intends for a particular Regular-Expression to match aString
, but the match fails, then this exception may be thrownParallelArrayException This may be used to check that array have equal lengths - if two or more arrays are expected to be parallel, but their lengths are not equal, then this exception should be thrownRegExException General purpose exception that may be used when a Regular Expression failsSameSourceAndTargetException Thrown when a move or copy operation has specified identicalsource
andtarget
places on diskStrCmprException An exception that performs a little bit of passed-parameter checking for the classStrCmpr
StringFormatException General purpose exception used for poorly formattedString's
, or for anyString
that does not meet some (or any) expected design, protocol, format or criteriaToDoException This class is meant to inform a user that some code-exeuction path has a reached a point where the developer has not finished writing the Java that needs to run in order to complete whatever instructions the user is expecting to be runVarTypeParamException ThisException
class is used internally for buildingCollection
instances using thejava.lang.reflect.*
package more smoothlyWritableDirectoryException Used by methods that accept'target directory'
parameters to validate that the parameter's contents actually point to a both valid and writable location on diskErrors Java Entity Description ArrayExpectedError Used when a parameter accepts an intance of'Object'
, but stipulates that this reference must be a reference to a primitive-arrayCacheError This error is thrown by theHiLiteMe.Cache
class, and it could potentially be used for any type of Cache ErrorExceptionCheckError This class inherits class'Error'
because it is intended to mean that a more serious problems has just occurredUnreachableError If a code-block that was theoretically unreachable is actually reached, this error is a great class to make use-of during any debugging-phase of the development-process