Package org.opengrok.indexer.util
package org.opengrok.indexer.util
-
ClassDescriptionRepresents an abstract implementation of
ObjectPool
that defines the procedure of returning an object to the pool.Represents an API for a pool of objects that makes the requesting threads wait if no object is available.Represents a subclass ofAbstractObjectPool
and implementation ofBlockingObjectPool
with a defined limit of objects and a helper to validate instances onAbstractObjectPool.release(java.lang.Object)
.Represents a functional interface for accepting buffers.Represents a subclass ofReentrantReadWriteLock
that can returnResourceLock
instances.Annotated fields will be present in generated DTO object.Custom collector to collect error messages for list of projects and join them with comma.Wrapper to Java Process API.You should use the StreamHandler interface if you would like to process the output from a process while it is running.Represents a transformer of lists of files andNullableNumLinesLOC
instances to zip them into a list ofDirectoryEntry
instances.Represents an exception that occurs when an ineligible symbolic link is encountered while evaluating a file system path.A simple implementation of the getopt(3c).The purpose of this class is to provideStreamHandler
that limits the output to specified number of lines.Utility class to provide simple host/address methods.A small utility class to provide common functionality related to IO so that we don't need to duplicate the logic all over the place.LazilyInstantiate
is a quick class to make lazily instantiating objects easy.Represents a reader of source text to find end-of-line tokens -- in accordance withStringUtils.STANDARD_EOL
-- in order to determine line offsets but discarding line content.Implementation of Writer that doesn't produce any ouput.Represents an API for the mechanism to create new objects to be used in an object pool.ObjectPool<T>Represents an API for a cached pool of objects.Represents an API for validation of an object of the pool and for its subsequently cleanup to invalidate it.OptionParser is a class for command-line option analysis.Represents a container for file system paths-related utility methods.Progress reporting via logging.Represents an API for overlaying a reader with another reader.Represents a container for regex-related utility methods.Represents an API for try-with-resources management of aLock
.Represents a splitter of source text into lines, where end-of-line tokens -- in accordance withStringUtils.STANDARD_EOL
-- are maintained instead of being stripped.This class is handy for logging messages (and updating metrics) about duration of a task.Various String utility methods.Represents a utility class for creating a filename to operate in tandem with an original filename by adding a new file extension but limiting the length of the new filename to 255 UTF-8 encoded bytes if necessary by truncating and packing in a Base64-encoded SHA-256 hash of the original file name.Represents a utility class for creating a path to operate in tandem with an original path by adding a new file extension but limiting the length of the filename component of the new path to 255 UTF-8 encoded bytes if necessary by truncating and packing in a Base64-encoded SHA-256 hash of the original file name component.Represents a container for utility methods concerned with URIs.Represents the immutable return value ofUriUtils.trimUri(String, boolean, Pattern)
.This class implements portions of semantic versioning from version noted asRuntime exception thrown instead IO Exception.