A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 

A

accept(File) - Method in class com.peterphi.std.io.filter.FilenameExtensionFilter
 
accept(File, String) - Method in class com.peterphi.std.io.filter.FilenameExtensionFilter
 
accept(String) - Method in class com.peterphi.std.io.filter.FilenameExtensionFilter
 
ActionOnConflict - Enum in com.peterphi.std.io
 
add() - Method in class com.peterphi.std.io.TabLevel
 
add(SampleCount) - Method in class com.peterphi.std.types.SampleCount
 
add(SampleCount) - Method in class com.peterphi.std.types.Timecode
Add some samples to this timecode
add(SampleCount) - Method in class com.peterphi.std.types.TimecodeRange
Move the range right by the specified number of samples
add(StorageSize) - Method in class com.peterphi.std.types.StorageSize
Adds two storage sizes together, using the smallest unit as the resulting StorageSize's unit
addFilesToExistingJar(File, String, Map<String, File>, ActionOnConflict) - Static method in class com.peterphi.std.io.ArchiveHelper
Adds a file or files to a jar file, replacing the original one
addPrecise(SampleCount) - Method in class com.peterphi.std.types.SampleCount
 
addPrecise(SampleCount) - Method in class com.peterphi.std.types.Timecode
Add some samples to this timecode, throwing an exception if precision would be lost
ALLOW_LOG_SELF_SIGN_TESTS - Static variable in class com.peterphi.std.crypto.CertificateChainUtil
 
alphanumeric(int) - Static method in class com.peterphi.std.types.SimpleId
Generates a random sequence of alphanumeric characters of length length using a new pseudorandom number generator (new Random())
alphanumeric(String, int) - Static method in class com.peterphi.std.types.SimpleId
Generates a random sequence of alphanumeric characters, prefixed by prefix such that the total string is of length totalLength using a new pseudorandom number generator (new Random())
alphanumeric(Random, int) - Static method in class com.peterphi.std.types.SimpleId
Generates a random sequence of alphanumeric characters of length length using the provided random number generator
appAs(String, Iterable<String>) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command, optionally executing as a different user (eg root)
appAs(String, String...) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command, optionally executing as a different user (eg root)
append(Writer, PropertyFile) - Method in class com.peterphi.std.io.PropertyFile.BlankLine
 
append(Writer, PropertyFile) - Method in class com.peterphi.std.io.PropertyFile.Comment
 
append(Writer, PropertyFile) - Method in class com.peterphi.std.io.PropertyFile.Entry
 
append(Writer, PropertyFile) - Method in class com.peterphi.std.io.PropertyFile.NameValuePair
 
ArchiveHelper - Class in com.peterphi.std.io
 
ArchiveHelper() - Constructor for class com.peterphi.std.io.ArchiveHelper
 
array(Iterable<T>, T[]) - Static method in class com.peterphi.std.util.ListUtility
 
asyncRun() - Method in class com.peterphi.std.threading.RunnableCallableFuture
Start a new daemon thread to call the run() method asynchronously, returning this object as a Future (and not a RunnableCallableFuture)
asyncRun(Callable<T>) - Static method in class com.peterphi.std.threading.RunnableCallableFuture
Takes a Callable, executing it in the background, returning a Future to its result
Users are advised to use a ThreadPool instead of this method.
asyncRun(Executor) - Method in class com.peterphi.std.threading.RunnableCallableFuture
Runs this Callable asynchronously using the specified Executor
aton(byte[]) - Static method in class com.peterphi.std.net.IpHelper
Converts an InetAddress' byte[] representation to a numeric address
This only works for IPv4 (obviously)
aton(String) - Static method in class com.peterphi.std.net.IpHelper
An equivalent of the C inet_aton function
aton(Inet4Address) - Static method in class com.peterphi.std.net.IpHelper
Converts an InetAddress to a numeric address
aton(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Converts an InetAddress to a numeric address only in the case of IPv4 (Inet4Address) addresses.

B

BasicProcessTracker - Class in com.peterphi.std.system.exec
A basic process tracker that does not touch stdout/stderr streams
BasicProcessTracker(List<String>, Process, boolean) - Constructor for class com.peterphi.std.system.exec.BasicProcessTracker
 
BCrypt - Class in com.peterphi.std.crypto
A wrapper for BCrypt
BCrypt() - Constructor for class com.peterphi.std.crypto.BCrypt
 
between(Timecode, Timecode) - Method in class com.peterphi.std.types.Timecode
 
between(Timecode, Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
Returns true if test is between start and end (inclusive)
BINARY_QUANTIFIERS - Static variable in enum com.peterphi.std.types.StorageUnit
The range of quantifiers for binary units (bytes to terabytes (ISO: B to TiB))
BITS - com.peterphi.std.types.StorageUnit
One bit (4 bits)
BlankLine() - Constructor for class com.peterphi.std.io.PropertyFile.BlankLine
 
blockingRead(SocketChannel, long, byte[]) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
blockingRead(SocketChannel, long, int) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
blocksize(int) - Method in interface com.peterphi.std.io.ICopyProgressMonitor
A method which MAY be called to inform the monitor of the block size
BooleanMessage - Class in com.peterphi.std.types
 
BooleanMessage(boolean) - Constructor for class com.peterphi.std.types.BooleanMessage
 
BooleanMessage(boolean, String) - Constructor for class com.peterphi.std.types.BooleanMessage
 
BooleanMessage(Throwable) - Constructor for class com.peterphi.std.types.BooleanMessage
Convenience method to construct a BooleanMessage using a Throwable; this constructs a failure message automatically
Both<L,R> - Class in com.peterphi.std.types
An immutable type which represents exactly two non-null values, left or right
Both(L, R) - Constructor for class com.peterphi.std.types.Both
 
BROADCAST_ADDRESS - Static variable in class com.peterphi.std.net.IpHelper
The IPv4 broadcast address: 255.255.255.255
build() - Method in class com.peterphi.std.types.TimecodeBuilder
Constructs a Timecode instance with the fields defined in this builder
buildChainFor(KeyPair, Collection<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
 
buildChainFor(PublicKey, Collection<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
 
builder() - Method in class com.peterphi.std.types.Timecode
Return a TimecodeBuilder for this Timecode instance
BYTES - com.peterphi.std.types.StorageUnit
One byte (8 bits)
bytesToInt(byte[]) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
bytesToInt(ByteBuffer) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
bytesToInts(byte[]) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
bytesToLong(byte[]) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
bytesToLong(ByteBuffer) - Static method in class com.peterphi.std.io.nio.NIOHelper
 

C

call() - Method in class com.peterphi.std.threading.ThreadRenameCallableWrap
 
call(T) - Method in class com.peterphi.std.threading.ParamInvokeable
Synchronously executes this Invokeable
canBeDropFrame() - Method in class com.peterphi.std.types.Timebase
 
cancel() - Method in class com.peterphi.std.threading.SettableFuture
Cancels this Future
cancel(boolean) - Method in class com.peterphi.std.threading.SettableFuture
 
canonicalise() - Method in class com.peterphi.std.types.InetSubnet
Produces a canonical representation of this subnet; the canonical form has the network ip address properly masked (eg.
caseSensitive - Variable in class com.peterphi.std.io.PropertyFile
 
cat(File) - Static method in class com.peterphi.std.io.FileHelper
 
cat(InputStream) - Static method in class com.peterphi.std.io.FileHelper
 
cat(Reader) - Static method in class com.peterphi.std.io.FileHelper
 
cat(Reader, int) - Static method in class com.peterphi.std.io.FileHelper
 
cat(String) - Static method in class com.peterphi.std.io.FileHelper
 
cat(URL) - Static method in class com.peterphi.std.io.FileHelper
 
CertificateChainUtil - Class in com.peterphi.std.crypto
Utility class which helps manage certificate chains
channel - Variable in class com.peterphi.std.io.FileHelper.LockRecord
 
CharSequenceReader - Class in com.peterphi.std.io
A Reader whose source is a CharSequence (such as a StringBuilder or a StringBuffer).
This is slightly faster than new StringReader(str.toString()) although it creates a greater number of (small) garbage objects
Implementation based on that of StringReader
CharSequenceReader(CharSequence) - Constructor for class com.peterphi.std.io.CharSequenceReader
 
chmod(File, int) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions using octal
chmod(File, File) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions on f with the permissions on copyOf
chmod(File, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
chmod(File, Set<ChmodBit>, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
chmod(String, File, int) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions using octal
chmod(String, File, File) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), replacing the permissions on f with the permissions on copyOf
chmod(String, File, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
chmod(String, File, Set<ChmodBit>, Set<ChmodBit>) - Static method in class com.peterphi.std.io.FileHelper
Performs a chmod (which assumes this system is Linux/UNIX/Solaris/etc), altering the permissions using symbols (ie.
ChmodBit - Enum in com.peterphi.std.io
 
chown(File, String, String, boolean) - Static method in class com.peterphi.std.io.FileHelper
 
CHUNKSIZE - Static variable in class com.peterphi.std.io.StreamUtil
 
ClassManifestLocator - Class in com.peterphi.std.util
Retrieve the MANIFEST.MF properties for the jar/war containing a particular class
ClassManifestLocator() - Constructor for class com.peterphi.std.util.ClassManifestLocator
 
clear() - Method in class com.peterphi.std.io.PropertyFile
 
clear() - Method in class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
Remove all items from the cache
clear() - Static method in class com.peterphi.std.util.tracing.Tracing
 
close() - Method in class com.peterphi.std.io.CharSequenceReader
Closes the stream and releases any system resources associated with it.
close() - Method in class com.peterphi.std.io.StringBuilderReader
Closes the stream and releases any system resources associated with it.
cmd - Variable in class com.peterphi.std.system.exec.Exec
 
cmp(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
 
com.peterphi.std - package com.peterphi.std
 
com.peterphi.std.annotation - package com.peterphi.std.annotation
 
com.peterphi.std.crypto - package com.peterphi.std.crypto
 
com.peterphi.std.crypto.digest - package com.peterphi.std.crypto.digest
 
com.peterphi.std.crypto.openssl - package com.peterphi.std.crypto.openssl
 
com.peterphi.std.io - package com.peterphi.std.io
 
com.peterphi.std.io.filter - package com.peterphi.std.io.filter
 
com.peterphi.std.io.nio - package com.peterphi.std.io.nio
 
com.peterphi.std.io.properties - package com.peterphi.std.io.properties
 
com.peterphi.std.net - package com.peterphi.std.net
 
com.peterphi.std.system.exec - package com.peterphi.std.system.exec
 
com.peterphi.std.threading - package com.peterphi.std.threading
 
com.peterphi.std.types - package com.peterphi.std.types
 
com.peterphi.std.util - package com.peterphi.std.util
 
com.peterphi.std.util.jaxb - package com.peterphi.std.util.jaxb
 
com.peterphi.std.util.jaxb.exception - package com.peterphi.std.util.jaxb.exception
 
com.peterphi.std.util.jaxb.type - package com.peterphi.std.util.jaxb.type
 
com.peterphi.std.util.tracing - package com.peterphi.std.util.tracing
 
Comment(String) - Constructor for class com.peterphi.std.io.PropertyFile.Comment
 
compare(Timecode, Timecode) - Method in class com.peterphi.std.types.TimecodeComparator
 
CompareHelper - Class in com.peterphi.std.types
Makes the use of Java's ugly compareTo operation a little more readable
CompareHelper() - Constructor for class com.peterphi.std.types.CompareHelper
 
compareTo(long, StorageUnit) - Method in class com.peterphi.std.types.StorageSize
Performs a comparison based on the number of bits represented
Since this class has a natural ordering that is inconsistent with equals, this method may return 0 where equals would not return 0 - since this compares based on bits but equals tests based on the unit+amount
compareTo(Deadline) - Method in class com.peterphi.std.threading.Deadline
 
compareTo(Timeout) - Method in class com.peterphi.std.threading.Timeout
 
compareTo(Id) - Method in class com.peterphi.std.types.Id
Compares another Id to this id.
compareTo(StorageSize) - Method in class com.peterphi.std.types.StorageSize
Performs a comparison based on the number of bits represented
Since this class has a natural ordering that is inconsistent with equals, this method may return 0 where equals would not return 0 - since this compares based on bits but equals tests based on the unit+amount
compareTo(Version) - Method in class com.peterphi.std.types.Version
 
complete() - Method in interface com.peterphi.std.io.ICopyProgressMonitor
 
COMPSCI_BINARY - Static variable in enum com.peterphi.std.types.StorageUnit
 
concat(Collection<? extends T>...) - Static method in class com.peterphi.std.util.ListUtility
Concatenates a number of Collections into a single List
configure(File...) - Static method in class com.peterphi.std.util.Logging
 
configure(String...) - Static method in class com.peterphi.std.util.Logging
 
configureFiles(Iterable<File>) - Static method in class com.peterphi.std.util.Logging
Configures the logging environment to use the first available config file in the list, printing an error if none of the files are suitable
configureNames(Iterable<String>) - Static method in class com.peterphi.std.util.Logging
 
CONFLICT - com.peterphi.std.io.ActionOnConflict
 
contains(String[], String) - Static method in class com.peterphi.std.util.ListUtility
 
contains(Collection<T>, T) - Static method in class com.peterphi.std.util.ListUtility
 
containsKey(String) - Method in class com.peterphi.std.io.PropertyFile
 
convert(long, StorageUnit) - Method in enum com.peterphi.std.types.StorageUnit
 
convert(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
Convert this StorageSize to use the named unit
convert(BigDecimal, StorageUnit) - Method in enum com.peterphi.std.types.StorageUnit
 
convert(BigInteger, StorageUnit) - Method in enum com.peterphi.std.types.StorageUnit
 
convert(Document) - Static method in class com.peterphi.std.util.JDOMUtils
Convert a JDOM Document to a DOM Document
convert(Element) - Static method in class com.peterphi.std.util.JDOMUtils
Convert a JDOM Element to a DOM Element
convert(Document) - Static method in class com.peterphi.std.util.JDOMUtils
Convert a DOM Document to a JDOM Document
convert(Element) - Static method in class com.peterphi.std.util.JDOMUtils
Convert a DOM Element to a JDOM Element
copy(File, File) - Static method in class com.peterphi.std.io.FileHelper
 
couldWrite(File) - Static method in class com.peterphi.std.io.FileHelper
 
crc32(File) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
crc32(InputStream) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
createDocumentBuilder() - Static method in class com.peterphi.std.util.DOMUtils
Create a new (namespace-aware) DocumentBuilder
createOutput(String, String) - Method in class com.peterphi.std.util.jaxb.MultiXSDSchemaCollector
 
createTempFile(String, String) - Static method in class com.peterphi.std.io.FileHelper
Creates a temporary file name

D

Daemon - Class in com.peterphi.std.threading
Simplifies the creation of long-running daemon threads
Daemon() - Constructor for class com.peterphi.std.threading.Daemon
 
data - Variable in class com.peterphi.std.io.PropertyFile.Comment
 
Deadline - Class in com.peterphi.std.threading
Represents a deadline (some point in the future - generally, a time by which some operation should be completed)
Deadline(long) - Constructor for class com.peterphi.std.threading.Deadline
 
Deadline(long, TimeUnit) - Constructor for class com.peterphi.std.threading.Deadline
Constructs a deadline using a given period of time
Deadline(Timeout) - Constructor for class com.peterphi.std.threading.Deadline
Constructs a new deadline based on adding timeout to the current time
If current time + timeout > Long.MAX_VALUE then Long.MAX_VALUE is used as the deadline
Deadline(Calendar) - Constructor for class com.peterphi.std.threading.Deadline
 
Deadline(Date) - Constructor for class com.peterphi.std.threading.Deadline
 
DECIMAL_EXABYTES - com.peterphi.std.types.StorageUnit
One decimal Exabyte (ISO: EB).
DECIMAL_GIGABYTES - com.peterphi.std.types.StorageUnit
One decimal gigabyte (ISO: GB).
DECIMAL_KILOBYTES - com.peterphi.std.types.StorageUnit
One decimal kilobyte (ISO: KB).
DECIMAL_MEGABYTES - com.peterphi.std.types.StorageUnit
One decimal megabyte (ISO: MB).
DECIMAL_PETABYTES - com.peterphi.std.types.StorageUnit
One decimal Petabyte (ISO: PB).
DECIMAL_QUANTIFIERS - Static variable in enum com.peterphi.std.types.StorageUnit
The range of quantifiers for ISO decimal units (bytes to terabytes (ISO: B to TB))
DECIMAL_TERABYTES - com.peterphi.std.types.StorageUnit
One decimal terabyte (ISO: TB).
DECIMAL_YOTTABYTES - com.peterphi.std.types.StorageUnit
One decimal yottabyte (ISO YB).
DECIMAL_ZETTABYTES - com.peterphi.std.types.StorageUnit
One decimal zettabyte (ISO ZB).
DEFAULT_COST - Static variable in class com.peterphi.std.crypto.BCrypt
 
DEFAULT_VERBOSE - Static variable in class com.peterphi.std.util.tracing.Tracing
 
delete(File) - Static method in class com.peterphi.std.io.FileHelper
Deletes a local file or directory from the filesystem
deserialise(File) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise a File of XML to an Object (or JAXBElement)
deserialise(InputStream) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise a stream of XML to an Object (or JAXBElement)
deserialise(Reader) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise a Reader of XML to an Object (or JAXBElement)
deserialise(Class<T>, String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise and cast to a particular type
deserialise(Class<T>, InputSource) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise an input and cast to a particular type
deserialise(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise a String of XML to an Object (or JAXBElement)
deserialise(Node) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Deserialise a DOM Node to an Object (or JAXBElement)
deserialise(InputSource) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
 
digest(File, String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
digest(InputStream, String) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
digest(InputStream, String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
DigestHelper - Class in com.peterphi.std.crypto.digest
Where possible implementations should use DigestUtils from commons-codec
DigestHelper() - Constructor for class com.peterphi.std.crypto.digest.DigestHelper
 
dirty - Variable in class com.peterphi.std.io.PropertyFile
 
discardOutput() - Method in class com.peterphi.std.system.exec.BasicProcessTracker
 
discardOutput() - Method in class com.peterphi.std.system.exec.Execed
 
doBackgroundCopy(InputStream, OutputStream) - Static method in class com.peterphi.std.io.StreamUtil
 
doBackgroundCopy(InputStream, OutputStream, ICopyProgressMonitor) - Static method in class com.peterphi.std.io.StreamUtil
 
doBackgroundCopy(InputStream, OutputStream, ICopyProgressMonitor, boolean, boolean) - Static method in class com.peterphi.std.io.StreamUtil
 
Doc - Annotation Type in com.peterphi.std.annotation
Documentation that can be read at runtime
DOMUtils - Class in com.peterphi.std.util
 
DUMMY_MONITOR - Static variable in class com.peterphi.std.io.StreamUtil
A monitor which does nothing

E

eatInputStream(InputStream) - Static method in class com.peterphi.std.io.StreamUtil
Eats an inputstream, discarding its contents
Either<L,R> - Class in com.peterphi.std.types
An immutable type which represents exactly one non-null value of either left or right
Either(L, R) - Constructor for class com.peterphi.std.types.Either
 
empty(Collection<T>) - Static method in class com.peterphi.std.util.ListUtility
 
empty(Map<?, ?>) - Static method in class com.peterphi.std.util.ListUtility
 
encode() - Method in class com.peterphi.std.util.jaxb.MultiXSDSchemaCollector
Produces an XML Schema or a Stdlib SchemaFiles document containing the XML Schemas
ENCODE_BASE64 - Static variable in class com.peterphi.std.crypto.digest.DigestHelper
 
ENCODE_HEX - Static variable in class com.peterphi.std.crypto.digest.DigestHelper
 
enforceSafeFilename(String) - Static method in class com.peterphi.std.io.FileHelper
Ensures that a file is "safe" (this is done by whitelisting a small number of characters)
This method is mainly designed for producing a filename which bears some resemblance to a user-supplied String while removing the risk of being tricked
entries - Variable in class com.peterphi.std.io.PropertyFile
 
Entry() - Constructor for class com.peterphi.std.io.PropertyFile.Entry
 
eq(int) - Static method in class com.peterphi.std.types.CompareHelper
Evaluates the result of a.compareTo(b) and returns a == b
eq(Timecode) - Method in class com.peterphi.std.types.Timecode
 
eq(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
 
eq(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
a == b
equals(Object) - Method in class com.peterphi.std.threading.Deadline
 
equals(Object) - Method in class com.peterphi.std.threading.Timeout
 
equals(Object) - Method in class com.peterphi.std.types.Both
 
equals(Object) - Method in class com.peterphi.std.types.Either
 
equals(Object) - Method in class com.peterphi.std.types.Id
 
equals(Object) - Method in class com.peterphi.std.types.InetSubnet
 
equals(Object) - Method in class com.peterphi.std.types.SampleCount
 
equals(Object) - Method in class com.peterphi.std.types.StorageSize
Determines whether the amount and unit represented by the other object is exactly equal to this object;
N.B.
equals(Object) - Method in class com.peterphi.std.types.Timebase
 
equals(Object) - Method in class com.peterphi.std.types.Timecode
 
equals(Object) - Method in class com.peterphi.std.types.TimecodeRange
 
equals(Object) - Method in class com.peterphi.std.types.Version
 
EXABITS - com.peterphi.std.types.StorageUnit
One Exabit (ISO: Eb).
EXABYTES - com.peterphi.std.types.StorageUnit
One Exabyte (ISO: EiB)
The ISO long form name for this unit is Exbibibyte (which we avoid using as the enum name to avoid confusion)
Exec - Class in com.peterphi.std.system.exec
An abstraction over ProcessBuilder to simplify the creation of processes
Exec(Iterable<String>) - Constructor for class com.peterphi.std.system.exec.Exec
 
Exec(String...) - Constructor for class com.peterphi.std.system.exec.Exec
 
Execed - Class in com.peterphi.std.system.exec
A process tracker that reads stdout and stderr into Strings
Execed(List<String>, Process, boolean) - Constructor for class com.peterphi.std.system.exec.Execed
 
extractArchive(File, File) - Static method in class com.peterphi.std.io.ArchiveHelper
Extracts a .tar or .tar.gz archive to a given folder

F

f - Variable in class com.peterphi.std.io.PropertyFile
 
fail(Throwable) - Method in class com.peterphi.std.threading.SettableFuture
 
failure() - Method in interface com.peterphi.std.io.ICopyProgressMonitor
 
FALSE - Static variable in class com.peterphi.std.types.BooleanMessage
 
FileHelper - Class in com.peterphi.std.io
Title: File Helper
FileHelper.LockRecord - Class in com.peterphi.std.io
 
FilenameExtensionFilter - Class in com.peterphi.std.io.filter
A FileFilter which matches files by their extensions
FilenameExtensionFilter(boolean, Iterable<String>) - Constructor for class com.peterphi.std.io.filter.FilenameExtensionFilter
Creates a FilenameExtensionFilter with a set of extensions
FilenameExtensionFilter(boolean, String...) - Constructor for class com.peterphi.std.io.filter.FilenameExtensionFilter
Creates a FilenameExtensionFilter with a set of extensions
FilenameExtensionFilter(Iterable<String>) - Constructor for class com.peterphi.std.io.filter.FilenameExtensionFilter
Creates a case insensitive FilenameExtensionFilter with a set of extensions
FilenameExtensionFilter(Iterable<String>, boolean) - Constructor for class com.peterphi.std.io.filter.FilenameExtensionFilter
Deprecated.
use boolean caseSensitive,Iterable extensions constructor instead
FilenameExtensionFilter(String...) - Constructor for class com.peterphi.std.io.filter.FilenameExtensionFilter
Creates a case insensitive FilenameExtensionFilter with a set of extensions
FilenameExtensionFilter(String, boolean) - Constructor for class com.peterphi.std.io.filter.FilenameExtensionFilter
Deprecated.
use boolean caseSensitive,String... extensions constructor instead
files - Variable in class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFiles
 
filterP12(File, String) - Static method in class com.peterphi.std.crypto.openssl.OpenSSLPKCS12
Recreates a PKCS12 KeyStore using OpenSSL; this is a workaround a BouncyCastle-Firefox compatibility bug
find() - Static method in class com.peterphi.std.io.PropertyFile
 
find(ClassLoader, String...) - Static method in class com.peterphi.std.io.PropertyFile
Find a property file
find(String) - Static method in class com.peterphi.std.io.PropertyFile
 
findAll(ClassLoader, String) - Static method in class com.peterphi.std.io.PropertyFile
Find all property files by the name name by searching the specified classloader
findAll(String) - Static method in class com.peterphi.std.io.PropertyFile
Find all property files by the name name by searching the classloader that owns PropertyFile
FIVE_MINUTES - Static variable in class com.peterphi.std.threading.Timeout
Five minutes
flip(char[], char[], int, int) - Static method in class com.peterphi.std.util.ListUtility
Reverses a character array
flip(int[], int[], int, int) - Static method in class com.peterphi.std.util.ListUtility
Reverses an integer array
flip(List<T>) - Static method in class com.peterphi.std.util.ListUtility
Reverses a list
flip(List<T>, List<T>, int, int) - Static method in class com.peterphi.std.util.ListUtility
Reverses a list
flip(T[]) - Static method in class com.peterphi.std.util.ListUtility
Reverses an array
flip(T[], T[], int, int) - Static method in class com.peterphi.std.util.ListUtility
Reverses an array
flock - Variable in class com.peterphi.std.io.FileHelper.LockRecord
 
forceNameValueDelimiterWhitespace - Variable in class com.peterphi.std.io.PropertyFile
 
fos - Variable in class com.peterphi.std.io.FileHelper.LockRecord
 
fromBits(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
 
fromBits(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
 
fromEncodedValue(String) - Static method in class com.peterphi.std.types.TimecodeBuilder
Parse a Timecode encoded in the "vidispine style" (hh:mm:ss:ff@timebase).
fromFrames(long, Timebase) - Static method in class com.peterphi.std.types.TimecodeBuilder
 
fromFrames(long, Timebase, boolean) - Static method in class com.peterphi.std.types.TimecodeBuilder
 
fromHex(char, String) - Static method in class com.peterphi.std.util.HexHelper
Decodes a hexidecimal string (optionally with separator characters separating each two-digit pair)
Multiple runs of the separator will be ignored (eg.
fromHex(String) - Static method in class com.peterphi.std.util.HexHelper
Decodes a hexidecimal string into a series of bytes
fromSamples(SampleCount, boolean) - Static method in class com.peterphi.std.types.TimecodeBuilder
 
fromSMPTE(String) - Static method in class com.peterphi.std.types.TimecodeBuilder
Part a Timecode encoded in the SMPTE style ([dd:]hh:mm:ss:ff - or [dd:]hh:mm:ss;ff for drop-frame timecode)
fromString(String) - Static method in class com.peterphi.std.io.PropertyFile
 
fromString(String, String) - Static method in class com.peterphi.std.io.PropertyFile
 
fromTimecode(Timecode) - Static method in class com.peterphi.std.types.TimecodeBuilder
 

G

ge(int) - Static method in class com.peterphi.std.types.CompareHelper
Evaluates the result of a.compareTo(b) and returns a >= b
ge(Timecode) - Method in class com.peterphi.std.types.Timecode
 
ge(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
 
ge(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
a >= b
generate(JAXBSerialiser) - Method in class com.peterphi.std.util.jaxb.MultiXSDGenerator
 
generateAndSerialise(JAXBSerialiser) - Method in class com.peterphi.std.util.jaxb.MultiXSDGenerator
Generate a schema and then serialise it to a String.
generateBytes(int) - Static method in class com.peterphi.std.util.HexHelper
Generates a number of random bytes which can then be manipulated and/or converted to hex
Uses a new instance of java.util.Random
generateBytes(Random, int) - Static method in class com.peterphi.std.util.HexHelper
Generates a number of random bytes which can then be manipulated and/or converted to hex
generateHex(int) - Static method in class com.peterphi.std.util.HexHelper
Generates a hexidecimal String of length characters
generateHex(Random, int) - Static method in class com.peterphi.std.util.HexHelper
Generates a hexidecimal String of length characters
get() - Method in class com.peterphi.std.threading.SettableFuture
 
get() - Static method in class com.peterphi.std.util.tracing.Tracing
 
get(long, TimeUnit) - Method in class com.peterphi.std.threading.SettableFuture
 
get(Deadline) - Method in class com.peterphi.std.threading.SettableFuture
 
get(Class<?>) - Static method in class com.peterphi.std.util.ClassManifestLocator
Attempt to find the MANIFEST.MF associated with a particular class
get(String) - Method in class com.peterphi.std.io.PropertyFile
 
get(String, boolean) - Method in class com.peterphi.std.io.PropertyFile
 
get(String, int) - Method in class com.peterphi.std.io.PropertyFile
 
get(String, long) - Method in class com.peterphi.std.io.PropertyFile
 
get(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
get(TimeUnit) - Method in class com.peterphi.std.threading.Timeout
Get this timeout represented in a different unit
getAmount() - Method in class com.peterphi.std.types.StorageSize
Deprecated.
getAmount(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
Converts the size of this StorageSize to another unit, rounding the result to an integer
This method may result in the loss of information (due to rounding).
getAppropriateBinaryUnit(BigInteger, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
Attempts to locate the most appropriate binary unit (binary units are what everyone but the ISO and the storage industry mean by "KB", "MB", etc.
getAppropriateDecimalUnit(BigInteger, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
Attempts to locate the most appropriate decimal unit (decimal units are what the ISO and the storage industry (but nobody else) mean by "KB", "MB", etc.
getAppropriateUnit(BigInteger, StorageUnit, StorageUnit[]) - Static method in enum com.peterphi.std.types.StorageUnit
Attempts to locate the most appropriate of the provided units to express the provided amount in for human use (balancing precision and sensible expression)
getBase64(String) - Method in class com.peterphi.std.io.PropertyFile
Get a value which is Base64 encoded
getBase64(String, byte[]) - Method in class com.peterphi.std.io.PropertyFile
Get a value which is Base64 encoded and has a default value
getBits() - Method in class com.peterphi.std.types.StorageSize
The number of bits represented by this object
getBoolean(String, boolean) - Method in class com.peterphi.std.io.PropertyFile
 
getBroadcast() - Method in class com.peterphi.std.types.InetSubnet
Returns the broadcast address of this subnet
getBytes() - Method in class com.peterphi.std.types.StorageSize
Return the number of bytes this StorageSize represents
This method may result in information being lost (e.g.
getCaseSensitive() - Method in class com.peterphi.std.io.PropertyFile
 
getCertificateFor(PublicKey, Collection<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
 
getClass(String, Class<?>) - Method in class com.peterphi.std.io.PropertyFile
 
getContent() - Method in class com.peterphi.std.types.Version
Deprecated.
DO NOT USE THIS METHOD - FOR BEAN SERIALISER ONLY
getContext() - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Retrieve the inner JAXBContext
NOTE: use of this method is strongly discouraged!
getDate() - Method in class com.peterphi.std.threading.Deadline
Returns the time represented by this deadline as a Date
getDays() - Method in class com.peterphi.std.types.TimecodeBuilder
 
getDaysPart() - Method in class com.peterphi.std.types.Timecode
 
getDecimalAmount() - Method in class com.peterphi.std.types.StorageSize
Converts the size of this StorageSize to another unit, returning the result as a real number (using the BigDecimal type)
Uses the default representation unit for this type
The calculations may result in minimal loss of precision, however this is unavoidable.
getDecimalAmount(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
Converts the size of this StorageSize to another unit, returning the result as a real number (using the BigDecimal type)
The calculations may result in minimal loss of precision, however this is unavoidable.
getDenominator() - Method in class com.peterphi.std.types.Timebase
 
getDuration() - Method in class com.peterphi.std.types.TimecodeRange
 
getDurationInFrames() - Method in class com.peterphi.std.types.Timecode
Returns the duration of the timecode (from 00:00:00:00) in frames
getDurationInFrames(boolean) - Method in class com.peterphi.std.types.Timecode
Returns the duration of the timecode (from 00:00:00:00) in frames
getDurationInSeconds() - Method in class com.peterphi.std.types.Timecode
Returns the duration of the timecode in seconds (from 00:00:00:00), ignoring frames
getElapsed() - Method in class com.peterphi.std.util.Ticker
 
getElapsedTime() - Method in class com.peterphi.std.util.Ticker
 
getEnd() - Method in class com.peterphi.std.types.TimecodeRange
 
getEnv(String) - Method in class com.peterphi.std.system.exec.Exec
 
getField(int) - Method in class com.peterphi.std.types.Version
Retrieves the given field from this Version
getField(int, int) - Method in class com.peterphi.std.types.Version
Retrieves the given field from this Version
getFile() - Method in class com.peterphi.std.io.PropertyFile
 
getForceNameValueDelimiterWhitespace() - Method in class com.peterphi.std.io.PropertyFile
 
getFrames() - Method in class com.peterphi.std.types.TimecodeBuilder
 
getFramesPart() - Method in class com.peterphi.std.types.Timecode
 
getFramesPartAsMicroseconds() - Method in class com.peterphi.std.types.Timecode
Get the frames part of this timecode in microseconds
getFramesPartAsMilliseconds() - Method in class com.peterphi.std.types.Timecode
Get the frames part of this timecode in milliseconds
getHex(String) - Method in class com.peterphi.std.io.PropertyFile
Get a value which has been encoded in hexidecimal; The encoding may optionally include : delimiters, but no other non-hex characters are permitted
getHostMax() - Method in class com.peterphi.std.types.InetSubnet
Gets the last host in this subnet
getHostMin() - Method in class com.peterphi.std.types.InetSubnet
Gets the first host in this subnet
getHosts() - Method in class com.peterphi.std.types.InetSubnet
Returns the number of hosts in this subnet
getHours() - Method in class com.peterphi.std.types.TimecodeBuilder
 
getHoursPart() - Method in class com.peterphi.std.types.Timecode
 
getInstance() - Static method in class com.peterphi.std.types.TimecodeComparator
 
getInstance(long, boolean, Timebase) - Static method in class com.peterphi.std.types.Timecode
 
getInstance(long, boolean, Timebase, boolean) - Static method in class com.peterphi.std.types.Timecode
Deprecated.
use method without supportDays
getInstance(SampleCount) - Static method in class com.peterphi.std.types.Timecode
 
getInstance(SampleCount, boolean) - Static method in class com.peterphi.std.types.Timecode
 
getInstance(SampleCount, boolean, boolean) - Static method in class com.peterphi.std.types.Timecode
Deprecated.
use method without supportDays (supportDays is now implicitly true) or dropFrame (drop frame timecode is not correctly supported currently)
getInstance(Class<?>) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
 
getInstance(Class<?>...) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to get a JAXBSerialiser for a set of classes with the underlying JAXB implementation picked using the default rules for JAXB acquisition
This is an expensive operation and so the result should ideally be cached
getInstance(String) - Static method in class com.peterphi.std.types.Timebase
Deprecated.
getInstance(String) - Static method in class com.peterphi.std.types.Timecode
Parse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase).
getInstance(String) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to get a JAXBSerialiser from a JAXB Context Path (i.e.
getInstance(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
 
getInstance(String, Timebase) - Static method in class com.peterphi.std.types.Timecode
Part a Timecode encoded in the SMPTE style ([dd:]hh:mm:ss:ff - or [dd:]hh:mm:ss;ff for drop-frame timecode) alongside a timebase.
getInstance(String, Supplier<JAXBSerialiser>) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
 
getInstance(JAXBContext) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to get a JAXBSerialiser from an existing JAXBContext.
This is an expensive operation and so the result should ideally be cached
getInteger(String, int) - Method in class com.peterphi.std.io.PropertyFile
 
getInterfaceForLocalIp(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Given a local IP address, returns the Interface it corresponds to
getIntSamplesPerSecond() - Method in class com.peterphi.std.types.Timebase
Samples per second, cast to an integer (rounded in the case of fractional frames per second)
getIP() - Method in class com.peterphi.std.types.InetSubnet
Returns the IP address represented by this subnet; when in its canonical form, getIP() will return the same as getNetwork()
getIP(String, InetAddress) - Method in class com.peterphi.std.io.PropertyFile
 
getISOUnit() - Method in enum com.peterphi.std.types.StorageUnit
Return the ISO unit for this storage unit.
for MEGABYTE this will return MiB (to avoid further confusion)
getIssuer(X509Certificate, Collection<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
 
getIssuerDNsFromChain(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Extracts the DNs of the issuers from a certificate chain.
getLeft() - Method in class com.peterphi.std.types.Both
 
getLeft() - Method in class com.peterphi.std.types.Either
 
getLevel() - Method in class com.peterphi.std.io.TabLevel
 
getLineCount() - Method in class com.peterphi.std.io.PropertyFile
 
getLocalhost() - Static method in class com.peterphi.std.net.IpHelper
Gets the hostname of localhost
getLocalIp() - Static method in class com.peterphi.std.net.IpHelper
Gets the local IP address
getLocalIpAddress() - Static method in class com.peterphi.std.net.IpHelper
Returns the primary InetAddress of localhost
getLocalIpAddress(String) - Static method in class com.peterphi.std.net.IpHelper
Returns the IP address associated with iface
getLocalIpAddresses() - Static method in class com.peterphi.std.net.IpHelper
Returns a list of local InetAddresses for this machine
getLocalIpAddresses(boolean) - Static method in class com.peterphi.std.net.IpHelper
Returns a list of local InetAddresses for this machine
getLocalIpAddresses(boolean, boolean) - Static method in class com.peterphi.std.net.IpHelper
Returns a list of local InetAddresses for this machine
getLocalIpAddresses(String, boolean) - Static method in class com.peterphi.std.net.IpHelper
 
getLong(String, long) - Method in class com.peterphi.std.io.PropertyFile
 
getMacFor(NetworkInterface) - Static method in class com.peterphi.std.net.IpHelper
Given a network interface, determines its mac address
getMacForLocalIp(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Given an InetAddress, determines the MAC Address (hardware address) of the corresponding interface
getMilliseconds() - Method in class com.peterphi.std.threading.Timeout
Get the number of milliseconds this timeout represents
getMinutes() - Method in class com.peterphi.std.types.TimecodeBuilder
 
getMinutesPart() - Method in class com.peterphi.std.types.Timecode
 
getMoxy(Class<?>...) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to get a JAXBSerialiser that uses EclipseLink MOXy for all operations
getMoxy(String) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to get a JAXBSerialiser that uses EclipseLink MOXy for all operations
getNetmask() - Method in class com.peterphi.std.types.InetSubnet
Retrieves the prefix as a netmask (eg.
getNetwork() - Method in class com.peterphi.std.types.InetSubnet
Returns the InetAddress representing the network (fully masked by the prefix); this is the IP address with the last prefix bits masked to zero
getNumerator() - Method in class com.peterphi.std.types.Timebase
 
getPlural() - Method in enum com.peterphi.std.types.StorageUnit
Get the plural version of this unit (e.g.
getPrefix() - Method in class com.peterphi.std.types.InetSubnet
Returns the prefix length (0 to 32 for an IPv4 subnet)
The larger the prefix the larger the block if IP addresses represented by this subnet
getPrincipals(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
 
getProcessBuilder() - Method in class com.peterphi.std.system.exec.Exec
Returns a ProcessBuilder for use in a manual launching
getRate() - Method in class com.peterphi.std.types.SampleCount
 
getRate() - Method in class com.peterphi.std.types.TimecodeBuilder
 
getRedirectError() - Method in class com.peterphi.std.system.exec.Exec
 
getRight() - Method in class com.peterphi.std.types.Both
 
getRight() - Method in class com.peterphi.std.types.Either
 
getSampleCount() - Method in class com.peterphi.std.types.Timecode
Returns a sample count as a delta from the timecode 00:00:00:00
getSampleCount(Timecode) - Method in class com.peterphi.std.types.Timecode
Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase as this object
getSampleCountPrecise(Timecode) - Method in class com.peterphi.std.types.Timecode
Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase as this object
getSamples() - Method in class com.peterphi.std.types.SampleCount
 
getSamples(Timebase) - Method in class com.peterphi.std.types.SampleCount
Returns the number of samples represented by this SampleCount, converted to newRate.
This method can lose precision if the samples cannot be precisely represented.
getSamplesPerSecond() - Method in class com.peterphi.std.types.Timebase
The number of samples each second
getSamplesPrecise(Timebase) - Method in class com.peterphi.std.types.SampleCount
Returns the number of samples represented by this SampleCount, converted to newRate.
getSeconds() - Method in class com.peterphi.std.types.SampleCount
Compute the duration of this sample count in seconds
The intention of this method is to be used for presentation, rather than accurate computation so it does not warn about resampling errors
getSeconds() - Method in class com.peterphi.std.types.TimecodeBuilder
 
getSecondsPart() - Method in class com.peterphi.std.types.Timecode
 
getSecondsPerSample() - Method in class com.peterphi.std.types.Timebase
The number of seconds each sample represents
getSingular() - Method in enum com.peterphi.std.types.StorageUnit
Get the singular version of this unit (e.g.
getSmpteTimecode(String, Timebase) - Static method in class com.peterphi.std.types.Timecode
Deprecated.
getSource() - Method in exception com.peterphi.std.util.jaxb.exception.JAXBRuntimeException
 
getStandardError() - Method in class com.peterphi.std.system.exec.Execed
 
getStandardOut() - Method in class com.peterphi.std.system.exec.Execed
 
getStart() - Method in class com.peterphi.std.types.TimecodeRange
 
getStart() - Method in class com.peterphi.std.util.Ticker
 
getStartDate() - Method in class com.peterphi.std.util.Ticker
 
getSubjectDNFromChain(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Extracts the Subject: the final certificate in a chain
getTextState() - Method in class com.peterphi.std.threading.Daemon
 
getTextStateUpdated() - Method in class com.peterphi.std.threading.Daemon
 
getThread() - Method in class com.peterphi.std.threading.Daemon
 
getThreadName() - Method in class com.peterphi.std.threading.Daemon
Return the name for this thread
getTimebase() - Method in class com.peterphi.std.types.Timecode
 
getTimeLeft() - Method in class com.peterphi.std.threading.Deadline
Determines the amount of time left (in milliseconds) until the deadline; if the deadline has been reached or passed this method returns 0
getTimeLeft(TimeUnit) - Method in class com.peterphi.std.threading.Deadline
Determines the amount of time left (in a custom unit) until the deadline; if the deadline has been reached or passed this method returns 0
getTimeoutLeft() - Method in class com.peterphi.std.threading.Deadline
Determines the amount of time leftuntil the deadline and returns it as a timeout
getTraceId() - Static method in class com.peterphi.std.util.tracing.Tracing
 
getUnit() - Method in class com.peterphi.std.types.StorageSize
The unit which this Storage Size should be expressed by default
getURI(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
getVariableCount() - Method in class com.peterphi.std.io.PropertyFile
 
getWildcardMask() - Method in class com.peterphi.std.types.InetSubnet
Retrieves the wildcard mask for the netmask of this subnet
getWorkingDirectory() - Method in class com.peterphi.std.system.exec.Exec
 
GIGABITS - com.peterphi.std.types.StorageUnit
One Gigabit (ISO: Gb).
GIGABYTES - com.peterphi.std.types.StorageUnit
One Gigabyte (ISO: GiB)
The ISO long form name for this unit is Gibibyte (which we avoid using as the enum name to avoid confusion)
GROUP_EXEC - com.peterphi.std.io.ChmodBit
 
GROUP_READ - com.peterphi.std.io.ChmodBit
 
GROUP_WRITE - com.peterphi.std.io.ChmodBit
 
gt(int) - Static method in class com.peterphi.std.types.CompareHelper
Evaluates the result of a.compareTo(b) and returns a > b
gt(Timecode) - Method in class com.peterphi.std.types.Timecode
 
gt(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
 
gt(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
a > b

H

hash(char[], int) - Static method in class com.peterphi.std.crypto.BCrypt
 
hashCode() - Method in class com.peterphi.std.threading.Deadline
 
hashCode() - Method in class com.peterphi.std.threading.Timeout
 
hashCode() - Method in class com.peterphi.std.types.Both
 
hashCode() - Method in class com.peterphi.std.types.Either
 
hashCode() - Method in class com.peterphi.std.types.Id
 
hashCode() - Method in class com.peterphi.std.types.InetSubnet
 
hashCode() - Method in class com.peterphi.std.types.SampleCount
 
hashCode() - Method in class com.peterphi.std.types.StorageSize
 
hashCode() - Method in class com.peterphi.std.types.Timebase
 
hashCode() - Method in class com.peterphi.std.types.Timecode
 
hashCode() - Method in class com.peterphi.std.types.TimecodeRange
 
hashCode() - Method in class com.peterphi.std.types.Version
Produces a fairly unreliable hashCode (eg.
hasMoreElements() - Method in class com.peterphi.std.types.HybridIterator
 
hasNext() - Method in class com.peterphi.std.types.HybridIterator
 
head(List<T>) - Static method in class com.peterphi.std.util.ListUtility
Returns the first element of a list (or null if the list is empty)
HexHelper - Class in com.peterphi.std.util
A helper class which handles encoding and decoding hexidecimal
hook_added(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
hook_changed(String, String, String) - Method in class com.peterphi.std.io.PropertyFile
 
hook_cleared() - Method in class com.peterphi.std.io.PropertyFile
 
hook_loaded() - Method in class com.peterphi.std.io.PropertyFile
 
hook_merge_begin() - Method in class com.peterphi.std.io.PropertyFile
 
hook_merge_complete() - Method in class com.peterphi.std.io.PropertyFile
 
hook_removed(String) - Method in class com.peterphi.std.io.PropertyFile
 
hook_saved() - Method in class com.peterphi.std.io.PropertyFile
 
href() - Method in annotation type com.peterphi.std.annotation.Doc
An (optional) set of links to some external resources where more information may be obtained
HTTP_HEADER_CORRELATION_ID - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
HTTP_HEADER_TRACE_VERBOSE - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
HybridIterator<T> - Class in com.peterphi.std.types
An Iterator and Enumeration class
HybridIterator(Iterable<T>) - Constructor for class com.peterphi.std.types.HybridIterator
 
HybridIterator(Enumeration<T>) - Constructor for class com.peterphi.std.types.HybridIterator
 
HybridIterator(Iterator<T>) - Constructor for class com.peterphi.std.types.HybridIterator
 
HybridIterator(T[]) - Constructor for class com.peterphi.std.types.HybridIterator
 
HybridIterator(T[], int, int) - Constructor for class com.peterphi.std.types.HybridIterator
 
HZ_1 - Static variable in class com.peterphi.std.types.Timebase
1 Hz (1 frame = 1 second)
HZ_1000 - Static variable in class com.peterphi.std.types.Timebase
1 kHz (1 frame = 1 millisecond.
HZ_1000000 - Static variable in class com.peterphi.std.types.Timebase
1 MHz (Vidispine transcoder default sampling rate)
HZ_192000 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_24 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_25 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_27000000 - Static variable in class com.peterphi.std.types.Timebase
27 MHz (sampling rate used by Carbon)
HZ_30 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_44100 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_48000 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_50 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_60 - Static variable in class com.peterphi.std.types.Timebase
 
HZ_96000 - Static variable in class com.peterphi.std.types.Timebase
 

I

ICMP - com.peterphi.std.net.IPProtocol
 
ICMP6 - com.peterphi.std.net.IPProtocol
 
ICopyProgressMonitor - Interface in com.peterphi.std.io
 
id - Variable in class com.peterphi.std.types.Id
The internal value of this id; while public, this should only be required very rarely
id - Variable in class com.peterphi.std.util.tracing.Tracing
 
Id - Class in com.peterphi.std.types
An abstract base type for a case-sensitive identifier
All implementations must directly extend this type (ie.
Id(String) - Constructor for class com.peterphi.std.types.Id
Constructs a new id
IGMP - com.peterphi.std.net.IPProtocol
 
IMergeConflictResolver - Interface in com.peterphi.std.io.properties
 
InetSubnet - Class in com.peterphi.std.types
Represents an IPv4 network subnet (a combination of an IP address and a prefix.
InetSubnet(int, int) - Constructor for class com.peterphi.std.types.InetSubnet
Construct a subnet based on
InetSubnet(String) - Constructor for class com.peterphi.std.types.InetSubnet
Constructs an inet subnet from CIDR representation (x.x.x.x/prefix)
InetSubnet(String, int) - Constructor for class com.peterphi.std.types.InetSubnet
 
InetSubnet(InetAddress, int) - Constructor for class com.peterphi.std.types.InetSubnet
Produces a subnet based on a network IP and a prefix
InetSubnet(InetAddress, InetAddress) - Constructor for class com.peterphi.std.types.InetSubnet
Produces a subnet based on a network IP and a netmask.
InetSubnet(InterfaceAddress) - Constructor for class com.peterphi.std.types.InetSubnet
 
intsToBytes(int[]) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
intsToBytes(List<Integer>) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
intToBytes(int) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
IpHelper - Class in com.peterphi.std.net
 
IPProtocol - Enum in com.peterphi.std.net
An enumeration of common Internet Protocols
IPV4_ADDRESS_SPACE - Static variable in class com.peterphi.std.types.InetSubnet
The entire IPv4 address space (including restricted/reserved/private IPs)
This is the subnet 0.0.0.0/0
IPV6_ZERO - Static variable in class com.peterphi.std.net.IpHelper
The IPv6 equivalent of the "Quad Zero" IPv4 address (0.0.0.0).
isAbsoluteFile(File) - Static method in class com.peterphi.std.io.FileHelper
 
isAbsoluteFile(String) - Static method in class com.peterphi.std.io.FileHelper
 
isAncestor(File, File) - Static method in class com.peterphi.std.io.FileHelper
 
isCancelled() - Method in class com.peterphi.std.threading.SettableFuture
 
isCanonical() - Method in class com.peterphi.std.types.InetSubnet
Determines whether this InetSubnet is currently in its canonical form
isDone() - Method in class com.peterphi.std.threading.SettableFuture
 
isDropFrame() - Method in class com.peterphi.std.types.Timecode
 
isDropFrame() - Method in class com.peterphi.std.types.TimecodeBuilder
 
isExpired() - Method in class com.peterphi.std.threading.Deadline
Determines whether the deadline has expired yet
isFinished() - Method in class com.peterphi.std.system.exec.Execed
 
isLeft() - Method in class com.peterphi.std.types.Either
 
isLocalAddress(String) - Static method in class com.peterphi.std.net.IpHelper
Determines if a specified host or IP refers to the local machine
isLocalAddress(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Determines if a specified host or IP refers to the local machine
isMember(int) - Method in class com.peterphi.std.types.InetSubnet
Determines whether a given IP, in numeric representation (as returned by aton()) is a member of this subnet
This is the fastest way to determine subnet membership
isMember(String) - Method in class com.peterphi.std.types.InetSubnet
Determines whether a given IP, given as an IPv4 address in its string representation (x.x.x.x) is a member of this subnet
isMember(InetAddress) - Method in class com.peterphi.std.types.InetSubnet
Determines whether a given IP is a member of this subnet
isNegative() - Method in class com.peterphi.std.types.Timecode
 
isNegative() - Method in class com.peterphi.std.types.TimecodeBuilder
 
isPublicallyRoutable(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Deprecated.
use isPubliclyRoutable(java.net.InetAddress)
isPubliclyRoutable(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Determines whether a particular IP address is publicly routable on the internet
isRight() - Method in class com.peterphi.std.types.Either
 
isRunning() - Method in class com.peterphi.std.threading.Daemon
Returns whether the daemon is in the process of terminating
isSelfSigned(X509Certificate) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Determines if a certificate is a self signed certificate
isSignedBy(X509Certificate, PublicKey) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
 
isStillReadingOutput() - Method in class com.peterphi.std.system.exec.BasicProcessTracker
 
isStillReadingOutput() - Method in class com.peterphi.std.system.exec.Execed
 
isThreadRunning() - Method in class com.peterphi.std.threading.Daemon
Determines if this daemon's thread is alive
isValid() - Method in class com.peterphi.std.threading.Deadline
Determine whether the deadline is still valid (ie.
isValidCiscoWildcard(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Determines if a specified address is a valid Cisco Wildcard (cisco's representation of a netmask)
isValidNetmask(byte[]) - Static method in class com.peterphi.std.net.IpHelper
Validates a netmask
isValidNetmask(String) - Static method in class com.peterphi.std.net.IpHelper
Validates a netmask
isValidNetmask(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Validates a netmask
isVerbose() - Static method in class com.peterphi.std.util.tracing.Tracing
 
isZero() - Method in class com.peterphi.std.types.StorageSize
Determines whether this StorageSize represents zero (which is the same in any unit)
iterate(Enumeration<T>) - Static method in class com.peterphi.std.util.ListUtility
 
iterate(Iterator<T>) - Static method in class com.peterphi.std.util.ListUtility
 
iterator() - Method in class com.peterphi.std.types.HybridIterator
 

J

JAXBRuntimeException - Exception in com.peterphi.std.util.jaxb.exception
A RuntimeException version of a JAXBException
JAXBRuntimeException(String) - Constructor for exception com.peterphi.std.util.jaxb.exception.JAXBRuntimeException
 
JAXBRuntimeException(String, Throwable) - Constructor for exception com.peterphi.std.util.jaxb.exception.JAXBRuntimeException
 
JAXBRuntimeException(String, JAXBException) - Constructor for exception com.peterphi.std.util.jaxb.exception.JAXBRuntimeException
 
JAXBRuntimeException(Throwable) - Constructor for exception com.peterphi.std.util.jaxb.exception.JAXBRuntimeException
 
JAXBSerialiser - Class in com.peterphi.std.util.jaxb
A thread-safe, caching JAXB helper type.
JAXBSerialiserFactory - Class in com.peterphi.std.util.jaxb
A factory for JAXBSerialiser instances that can optionally be forced to use EclipseLink MOXy (or use the default JAXBContext implementation acquisition rules).
Caches JAXBSerialiser instances created using either SoftReferences or direct hard references (based on config - defaults to soft references)
JAXBSerialiserFactory(boolean) - Constructor for class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
 
JAXBSerialiserFactory(boolean, boolean) - Constructor for class com.peterphi.std.util.jaxb.JAXBSerialiserFactory
 
JDOMUtils - Class in com.peterphi.std.util
 
join(Iterable<T>...) - Static method in class com.peterphi.std.util.ListUtility
 
join(String, String...) - Static method in class com.peterphi.std.system.exec.Exec
 
join(String, List<String>) - Static method in class com.peterphi.std.system.exec.Exec
 

K

keyIterator() - Method in class com.peterphi.std.io.PropertyFile
 
keySet() - Method in class com.peterphi.std.io.PropertyFile
 
KILOBITS - com.peterphi.std.types.StorageUnit
One Kilobit (ISO: Kb).
KILOBYTES - com.peterphi.std.types.StorageUnit
One Kilobyte (ISO: KiB).

L

largest(StorageUnit, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
Returns the the larger unit of unit and unit2
last(List<T>, int) - Static method in class com.peterphi.std.util.ListUtility
Return, at most, the last n items from the source list
latest(Deadline...) - Static method in class com.peterphi.std.threading.Deadline
Retrieve the deadline with the most time remaining until it expires
le(int) - Static method in class com.peterphi.std.types.CompareHelper
Evaluates the result of a.compareTo(b) and returns a <= b
le(Timecode) - Method in class com.peterphi.std.types.Timecode
 
le(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
 
le(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
a <= b
left - Variable in class com.peterphi.std.types.Either
 
length(Collection<T>) - Static method in class com.peterphi.std.util.ListUtility
 
length(T[]) - Static method in class com.peterphi.std.util.ListUtility
 
list(Iterable<T>) - Static method in class com.peterphi.std.util.ListUtility
Converts an Iterable into a List
list(List<T>) - Static method in class com.peterphi.std.util.ListUtility
 
list(T[]) - Static method in class com.peterphi.std.util.ListUtility
 
ListUtility - Class in com.peterphi.std.util
 
ListUtility() - Constructor for class com.peterphi.std.util.ListUtility
 
load() - Method in class com.peterphi.std.io.PropertyFile
 
load(File) - Method in class com.peterphi.std.io.PropertyFile
 
load(InputStream) - Method in class com.peterphi.std.io.PropertyFile
 
load(Reader) - Method in class com.peterphi.std.io.PropertyFile
 
load(Map<String, String>) - Method in class com.peterphi.std.io.PropertyFile
 
load(Properties) - Method in class com.peterphi.std.io.PropertyFile
 
loadCertificates(File) - Static method in class com.peterphi.std.crypto.PEMHelper
Load one or more X.509 Certificates from a PEM file
lockFile(File) - Static method in class com.peterphi.std.io.FileHelper
Obtains an exclusive lock on the specified file.
LockRecord() - Constructor for class com.peterphi.std.io.FileHelper.LockRecord
 
log(String, Supplier<String>) - Static method in class com.peterphi.std.util.tracing.Tracing
If verbose tracing is enabled, log an operation
Logging - Class in com.peterphi.std.util
Automates the configuration of
logOngoing(String, String, Supplier<String>) - Static method in class com.peterphi.std.util.tracing.Tracing
Log an additional message about an ongoing operation
longToBytes(long) - Static method in class com.peterphi.std.io.nio.NIOHelper
 
loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace(MultiXSDSchemaFiles) - Static method in class com.peterphi.std.util.jaxb.MultiXSDSchemaLoosener
 
loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace(Node) - Static method in class com.peterphi.std.util.jaxb.MultiXSDSchemaLoosener
Try to loosen any xsd:any constraint where namespace="##other" to namespace="##any" (because JAXB cannot represent namespace="##any", the generated schemas are often over-constrained as a result)
lt(int) - Static method in class com.peterphi.std.types.CompareHelper
Evaluates the result of a.compareTo(b) and returns a < b
lt(Timecode) - Method in class com.peterphi.std.types.Timecode
 
lt(Timecode, Timecode) - Static method in class com.peterphi.std.types.TimecodeComparator
 
lt(Comparable<T>, T) - Static method in class com.peterphi.std.types.CompareHelper
a < b

M

makeReadOnly() - Method in class com.peterphi.std.io.PropertyFile
Make this PropertyFile object read-only
mark(int) - Method in class com.peterphi.std.io.CharSequenceReader
Marks the present position in the stream.
mark(int) - Method in class com.peterphi.std.io.StringBuilderReader
Marks the present position in the stream.
markSupported() - Method in class com.peterphi.std.io.CharSequenceReader
Tells whether this stream supports the mark() operation, which it does.
markSupported() - Method in class com.peterphi.std.io.StringBuilderReader
Tells whether this stream supports the mark() operation, which it does.
max(Timeout...) - Static method in class com.peterphi.std.threading.Timeout
Filter through a number of timeouts to find the one with the longest period
max(Timecode...) - Static method in class com.peterphi.std.types.TimecodeComparator
Returns the larger of a number of timecodes
MAX_VALUE - Static variable in class com.peterphi.std.threading.Deadline
A deadline which will never arrive - representing the year 292278994, on Sun Aug 17 at 07:12:55 UTC
MAX_VALUE - Static variable in class com.peterphi.std.threading.Timeout
The maximum possible timeout
MAX_VALUE - Static variable in class com.peterphi.std.types.Version
 
md5(File) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
md5(File, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
MD5 - Static variable in class com.peterphi.std.crypto.digest.DigestHelper
 
MDC_HTTP_REMOTE_ADDR - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
MDC_HTTP_REQUEST_URI - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
MDC_HTTP_SESSION_ID - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
MDC_SERVLET_CONTEXT_PATH - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
MDC_TRACE_ID - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
MDC_USER_ID - Static variable in class com.peterphi.std.util.tracing.TracingConstants
 
MEGABITS - com.peterphi.std.types.StorageUnit
One Megabit (ISO: Mb).
MEGABYTES - com.peterphi.std.types.StorageUnit
One Megabyte (ISO: MiB)
The ISO long form name for this unit is Mebibyte (which we avoid using as the enum name to avoid confusion)
member(int) - Method in class com.peterphi.std.types.InetSubnet
Deprecated.
use isMember instead
member(String) - Method in class com.peterphi.std.types.InetSubnet
Deprecated.
use isMember instead
member(InetAddress) - Method in class com.peterphi.std.types.InetSubnet
Deprecated.
use isMember instead
merge(PropertyFile) - Method in class com.peterphi.std.io.PropertyFile
Merges another PropertyFile into this PropertyFile, overwriting any conflicting properties with the value from other
merge(PropertyFile, IMergeConflictResolver) - Method in class com.peterphi.std.io.PropertyFile
Merges another PropertyFile into this PropertyFile, using an optional merge conflict resolver
If no merge conflict resolver is specified then the default will be that the properties from other will overwrite the local properties
merge(TimecodeRange, TimecodeRange) - Static method in class com.peterphi.std.types.TimecodeRange
Produce a new Timecode range which includes all timecodes from a and b.
merge(Properties) - Method in class com.peterphi.std.io.PropertyFile
Merges another PropertyFile into this PropertyFile, overwriting any conflicting properties with the value from other
merge(Properties, IMergeConflictResolver) - Method in class com.peterphi.std.io.PropertyFile
Merges another PropertyFile into this PropertyFile, using an optional merge conflict resolver
If no merge conflict resolver is specified then the default will be that the properties from other will overwrite the local properties
message - Variable in class com.peterphi.std.types.BooleanMessage
 
min(Timeout...) - Static method in class com.peterphi.std.threading.Timeout
Filter through a number of timeouts to find the one with the shortest period
min(Timecode...) - Static method in class com.peterphi.std.types.TimecodeComparator
Returns the smaller of some timecodes
MIN_VALUE - Static variable in class com.peterphi.std.types.Version
 
mkdirs(File) - Static method in class com.peterphi.std.io.FileHelper
Create a directory and any necessary parent directories, throwing a RuntimeException on failure
MONITOR_UPDATE_INTERVAL - Static variable in class com.peterphi.std.io.StreamUtil
 
move(File, File) - Static method in class com.peterphi.std.io.FileHelper
 
multiply(double) - Method in class com.peterphi.std.threading.Timeout
Create a new Timeout which is equal to this timeout multiplied by some value
The resulting Timeout will be in milliseconds to maximise precision.
multiply(long) - Method in class com.peterphi.std.threading.Timeout
Create a new Timeout which is equal to this timeout multiplied by some value
multiply(BigInteger) - Method in class com.peterphi.std.types.StorageSize
Multiplies the storage size by a certain amount
MultiXSDGenerator - Class in com.peterphi.std.util.jaxb
 
MultiXSDGenerator() - Constructor for class com.peterphi.std.util.jaxb.MultiXSDGenerator
 
MultiXSDSchemaCollector - Class in com.peterphi.std.util.jaxb
Handles the logic of creating a MultiXSD
MultiXSDSchemaCollector() - Constructor for class com.peterphi.std.util.jaxb.MultiXSDSchemaCollector
 
MultiXSDSchemaFile - Class in com.peterphi.std.util.jaxb.type
 
MultiXSDSchemaFile() - Constructor for class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFile
 
MultiXSDSchemaFiles - Class in com.peterphi.std.util.jaxb.type
Encodes one or more XSDs in a single XML
MultiXSDSchemaFiles() - Constructor for class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFiles
 
MultiXSDSchemaLoosener - Class in com.peterphi.std.util.jaxb
Utility class that loosens any xsd:any constraint where namespace="##other" to namespace="##any" (because JAXB cannot represent namespace="##any" with XmlAnyElement, so the generated schemas are often over-constrained as a result)
MultiXSDSchemaLoosener() - Constructor for class com.peterphi.std.util.jaxb.MultiXSDSchemaLoosener
 

N

name - Variable in class com.peterphi.std.io.PropertyFile.NameValuePair
 
name - Variable in class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFile
The filename
NameValuePair(String, String) - Constructor for class com.peterphi.std.io.PropertyFile.NameValuePair
 
netmaskToPrefix(InetAddress) - Static method in class com.peterphi.std.net.IpHelper
Determines the prefix for a given netmask (ie.
network - Variable in class com.peterphi.std.types.InetSubnet
 
NETWORK_DECIMAL - Static variable in enum com.peterphi.std.types.StorageUnit
 
newLine() - Method in class com.peterphi.std.io.TabLevel
 
newLine(StringBuilder) - Method in class com.peterphi.std.io.TabLevel
 
newOperationId() - Static method in class com.peterphi.std.util.tracing.Tracing
Allocate an operation ID within a tracing block, returning null if we are not within a tracing block
next() - Method in class com.peterphi.std.types.HybridIterator
 
nextElement() - Method in class com.peterphi.std.types.HybridIterator
 
NIBBLES - com.peterphi.std.types.StorageUnit
One nibble (4 bits)
NIOHelper - Class in com.peterphi.std.io.nio
 
NIOHelper() - Constructor for class com.peterphi.std.io.nio.NIOHelper
 
NoInterfaceException - Exception in com.peterphi.std.net
 
NoInterfaceException() - Constructor for exception com.peterphi.std.net.NoInterfaceException
 
NoInterfaceException(String) - Constructor for exception com.peterphi.std.net.NoInterfaceException
 
NoInterfaceException(String, Throwable) - Constructor for exception com.peterphi.std.net.NoInterfaceException
 
NoMacAddressException - Exception in com.peterphi.std.net
 
NoMacAddressException() - Constructor for exception com.peterphi.std.net.NoMacAddressException
 
NoMacAddressException(String) - Constructor for exception com.peterphi.std.net.NoMacAddressException
 
NoMacAddressException(String, Throwable) - Constructor for exception com.peterphi.std.net.NoMacAddressException
 
normaliseChain(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Take a chain and return a (Read-only) chain with the root certificate as the first entry
NotImplementedException - Exception in com.peterphi.std
Description: An Error thrown when some functionality is not yet implemented.
NotImplementedException() - Constructor for exception com.peterphi.std.NotImplementedException
 
NotImplementedException(String) - Constructor for exception com.peterphi.std.NotImplementedException
 
NotImplementedException(String, Throwable) - Constructor for exception com.peterphi.std.NotImplementedException
 
ntoa(byte[]) - Static method in class com.peterphi.std.net.IpHelper
 
ntoa(int) - Static method in class com.peterphi.std.net.IpHelper
Converts numeric address to an InetAddress
NTSC - Static variable in class com.peterphi.std.types.Timebase
29.97 Hz (NTSC.
NTSC_24 - Static variable in class com.peterphi.std.types.Timebase
23.976 Hz (24p).
NTSC_60 - Static variable in class com.peterphi.std.types.Timebase
59.94 Hz.
NullOutputStream - Class in com.peterphi.std.io
An OutputStream which immediately discards all writes
NullOutputStream() - Constructor for class com.peterphi.std.io.NullOutputStream
 

O

on_cancel() - Method in class com.peterphi.std.threading.SettableFuture
 
on_set() - Method in class com.peterphi.std.threading.SettableFuture
 
ONE_MINUTE - Static variable in class com.peterphi.std.threading.Timeout
One minute
ONE_QUARTER_SECOND - Static variable in class com.peterphi.std.threading.Timeout
0.25 seconds (250 milliseconds)
ONE_SECOND - Static variable in class com.peterphi.std.threading.Timeout
One second
openResource(ClassLoader, URL, String) - Static method in class com.peterphi.std.io.PropertyFile
 
OPENSSL - Static variable in class com.peterphi.std.crypto.openssl.OpenSSLPKCS12
 
OpenSSLPKCS12 - Class in com.peterphi.std.crypto.openssl
 
OpenSSLPKCS12() - Constructor for class com.peterphi.std.crypto.openssl.OpenSSLPKCS12
 
ops - Variable in class com.peterphi.std.util.tracing.Tracing
 
OTHER_EXEC - com.peterphi.std.io.ChmodBit
 
OTHER_READ - com.peterphi.std.io.ChmodBit
 
OTHER_WRITE - com.peterphi.std.io.ChmodBit
 
overlapping(Version, Version, Version, Version) - Static method in class com.peterphi.std.types.Version
Determines if 2 version ranges have any overlap
overlaps(TimecodeRange) - Method in class com.peterphi.std.types.TimecodeRange
Determines whether two timecode ranges overlap (or are equivalent)
OVERWRITE - com.peterphi.std.io.ActionOnConflict
 
OWNER_EXEC - com.peterphi.std.io.ChmodBit
 
OWNER_READ - com.peterphi.std.io.ChmodBit
 
OWNER_WRITE - com.peterphi.std.io.ChmodBit
 

P

P12toPEM(File, String, File, String) - Static method in class com.peterphi.std.crypto.openssl.OpenSSLPKCS12
 
ParamInvokeable<T> - Class in com.peterphi.std.threading
A special ParamRunnable which runs synchronously once prepare() is called
ParamInvokeable() - Constructor for class com.peterphi.std.threading.ParamInvokeable
 
ParamRunnable<T> - Class in com.peterphi.std.threading
A class encapsulating the Runnable idea, mixed with Callable - instead of having a return type, this takes an argument to be passed to the run method
ParamRunnable() - Constructor for class com.peterphi.std.threading.ParamRunnable
 
ParamRunnableShell<T> - Class in com.peterphi.std.threading
The Runnable shell in which a ParamRunnable is wrapped once its prepare() method is called
ParamRunnableShell(ParamRunnable<T>, T) - Constructor for class com.peterphi.std.threading.ParamRunnableShell
 
parse(byte[]) - Static method in class com.peterphi.std.util.JDOMUtils
 
parse(File) - Static method in class com.peterphi.std.util.DOMUtils
 
parse(File) - Static method in class com.peterphi.std.util.JDOMUtils
 
parse(InputStream) - Static method in class com.peterphi.std.util.DOMUtils
 
parse(InputStream) - Static method in class com.peterphi.std.util.JDOMUtils
 
parse(Reader) - Static method in class com.peterphi.std.util.DOMUtils
 
parse(Reader) - Static method in class com.peterphi.std.util.JDOMUtils
 
parse(String) - Static method in class com.peterphi.std.net.IpHelper
Parses an IP address, throwing an IllegalArgumentException (rather than an UnknownHostException) if it is invalid
parse(String) - Static method in enum com.peterphi.std.types.StorageUnit
Parse the non-ISO abbreviation: MiB and MB both -> MEGABYTE (which is technically a "Mebibyte")
parse(String) - Static method in class com.peterphi.std.util.DOMUtils
 
parse(String) - Static method in class com.peterphi.std.util.JDOMUtils
 
parse(PemObject) - Static method in class com.peterphi.std.crypto.PEMHelper
Parse a PemObject.
parse(InputSource) - Static method in class com.peterphi.std.util.DOMUtils
 
parseISO(String) - Static method in enum com.peterphi.std.types.StorageUnit
Parse the ISO abbreviation: (e.g.
parseStringComparable(String) - Static method in class com.peterphi.std.types.Version
 
parseVidispine(String) - Static method in class com.peterphi.std.types.SampleCount
Deprecated.
peek() - Static method in class com.peterphi.std.util.tracing.Tracing
 
PEMHelper - Class in com.peterphi.std.crypto
PEM handling utilities
PEMtoP12(File, String, File, String) - Static method in class com.peterphi.std.crypto.openssl.OpenSSLPKCS12
 
PETABITS - com.peterphi.std.types.StorageUnit
One Petabit (ISO: Pb).
PETABYTES - com.peterphi.std.types.StorageUnit
One Petabyte (ISO: PiB)
The ISO long form name for this unit is Pebibyte (which we avoid using as the enum name to avoid confusion)
physicalAddressToString(byte[]) - Static method in class com.peterphi.std.net.IpHelper
 
poll() - Method in class com.peterphi.std.threading.SettableFuture
 
prefix - Variable in class com.peterphi.std.types.InetSubnet
 
prefixToMask(int) - Static method in class com.peterphi.std.net.IpHelper
Turns an IPv4 prefix into a numeric mask (the equivalent of running IpHelper.aton(prefixToNetmask(prefix)) but significantly faster)
prefixToNetmask(int) - Static method in class com.peterphi.std.net.IpHelper
Turns an IPv4 prefix into a netmask
prepare(T) - Method in class com.peterphi.std.threading.ParamInvokeable
Deprecated.
if calling a ParamInvokeable directly the call(T) method should be used; this method is for maintaining full backwards compatibility with ParamRunnable
prepare(T) - Method in class com.peterphi.std.threading.ParamRunnable
 
prepared - Variable in class com.peterphi.std.threading.ParamRunnable
 
pretty(Source) - Static method in class com.peterphi.std.util.DOMUtils
Serialise the provided source to a pretty-printed String with the default indent settings
pretty(Source, StreamResult) - Static method in class com.peterphi.std.util.DOMUtils
Serialise the provided source to the provided destination, pretty-printing with the default indent settings
pretty(Node) - Static method in class com.peterphi.std.util.DOMUtils
Serialise the provided Node to a pretty-printed String with the default indent settings
print(Object) - Static method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to print a serialised object to stdout (for dev/debugging use)
progress(long) - Method in interface com.peterphi.std.io.ICopyProgressMonitor
 
PropertyFile - Class in com.peterphi.std.io
 
PropertyFile() - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(File) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(File, boolean) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(InputStream) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(InputStream, boolean) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(Reader) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(Reader, boolean) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(URL) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(Map<String, String>) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(Properties) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile(Properties, boolean) - Constructor for class com.peterphi.std.io.PropertyFile
 
PropertyFile.BlankLine - Class in com.peterphi.std.io
 
PropertyFile.Comment - Class in com.peterphi.std.io
 
PropertyFile.Entry - Class in com.peterphi.std.io
 
PropertyFile.NameValuePair - Class in com.peterphi.std.io
 

Q

QUAD_ZERO - Static variable in class com.peterphi.std.net.IpHelper
The "Quad Zero" IPv4 address: 0.0.0.0

R

random() - Static method in class com.peterphi.std.types.SimpleId
Return an Id which uses 32 random alphanumeric characters as its value
read() - Method in class com.peterphi.std.io.CharSequenceReader
Reads a single character.
read() - Method in class com.peterphi.std.io.StringBuilderReader
Reads a single character.
read(char[], int, int) - Method in class com.peterphi.std.io.CharSequenceReader
Reads characters into a portion of an array.
read(char[], int, int) - Method in class com.peterphi.std.io.StringBuilderReader
Reads characters into a portion of an array.
readOnly - Variable in class com.peterphi.std.io.PropertyFile
 
readOnly(File) - Static method in class com.peterphi.std.io.PropertyFile
Creates a read-only version of a property file
Fails if the file does not exist.
readOnlyUnion(PropertyFile...) - Static method in class com.peterphi.std.io.PropertyFile
Construct a new read-only PropertyFile which merges the contents of a number of other PropertyFile objects
Null PropertyFiles are ignored.
readOnlyUnion(File...) - Static method in class com.peterphi.std.io.PropertyFile
Creates a read-only union of a number of property files
If any property file is null or the file it points to does not exist then it is ignored
readPID(File) - Static method in class com.peterphi.std.io.FileHelper
Reads a PID (Process Id) file
readPID(File, boolean) - Static method in class com.peterphi.std.io.FileHelper
Reads a PID (Process Id) file
ready() - Method in class com.peterphi.std.io.CharSequenceReader
Tells whether this stream is ready to be read.
ready() - Method in class com.peterphi.std.io.StringBuilderReader
Tells whether this stream is ready to be read.
release() - Method in class com.peterphi.std.io.FileHelper.LockRecord
 
remove() - Method in class com.peterphi.std.types.HybridIterator
 
remove(String) - Method in class com.peterphi.std.io.PropertyFile
 
resample(double, Timebase) - Method in class com.peterphi.std.types.Timebase
Convert a sample count from one timebase to another
resample(long, Timebase) - Method in class com.peterphi.std.types.Timebase
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding.
resample(long, Timebase, boolean) - Method in class com.peterphi.std.types.Timebase
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding.
resample(Timebase) - Method in class com.peterphi.std.types.SampleCount
Resample this sample count to another rate
resample(Timebase) - Method in class com.peterphi.std.types.Timecode
Resample this timecode to another timebase.
resample(Timebase) - Method in class com.peterphi.std.types.TimecodeRange
 
resample(Timebase, boolean) - Method in class com.peterphi.std.types.Timecode
Resample this timecode to another timebase.
If source+destination timecodes are non-drop frame then this is achieved by resampling the frames part of the timecode. If either side uses drop-frame then the resample works by converting this timecode into an amount of time (with half-up rounding rules, see Timebase.resample(double, Timebase, Timebase))
resample(Timebase, boolean) - Method in class com.peterphi.std.types.TimecodeRange
 
resamplePrecise(long, Timebase) - Method in class com.peterphi.std.types.Timebase
Convert a sample count from one timebase to another, throwing an exception if precision is lost
resamplePrecise(Timebase) - Method in class com.peterphi.std.types.Timecode
Resamples
ResamplingException - Exception in com.peterphi.std.types
Thrown to indicate that it is not possible to represent a timecode or sample count in a precise way
ResamplingException() - Constructor for exception com.peterphi.std.types.ResamplingException
 
ResamplingException(String) - Constructor for exception com.peterphi.std.types.ResamplingException
 
ResamplingException(String, Throwable) - Constructor for exception com.peterphi.std.types.ResamplingException
 
ResamplingException(Throwable) - Constructor for exception com.peterphi.std.types.ResamplingException
 
reset() - Method in class com.peterphi.std.io.CharSequenceReader
Resets the stream to the most recent mark, or to the beginning of the string if it has never been marked.
reset() - Method in class com.peterphi.std.io.StringBuilderReader
Resets the stream to the most recent mark, or to the beginning of the string if it has never been marked.
resolveConflict(String, String, String) - Method in interface com.peterphi.std.io.properties.IMergeConflictResolver
 
resolveFuture(Future<T>) - Method in class com.peterphi.std.threading.Deadline
Resolves a Future, automatically cancelling it in the event of a timeout / failure
resolveFuture(Future<T>, boolean) - Method in class com.peterphi.std.threading.Deadline
Resolves a Future, potentially automatically cancelling it in the event of a timeout / failure
right - Variable in class com.peterphi.std.types.Either
 
rootUtility(Iterable<String>) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
rootUtility(String...) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command in "utility" mode: redirecting stderr to stdout and running as root
ROUNDING_MODE - Static variable in enum com.peterphi.std.types.StorageUnit
The rounding mode this class uses; this is, by default, BigDecimal.ROUND_HALF_UP
routeStreamThroughProcess(Process, InputStream, boolean) - Static method in class com.peterphi.std.io.StreamUtil
Given a Process, this function will route the flow of data through it & out again
run() - Method in class com.peterphi.std.threading.ParamRunnableShell
 
run() - Method in class com.peterphi.std.threading.RunnableCallableFuture
 
run(T) - Method in class com.peterphi.std.threading.ParamRunnable
 
runAs(String) - Method in class com.peterphi.std.system.exec.Exec
 
runAsSuperuser() - Method in class com.peterphi.std.system.exec.Exec
 
RunnableCallableFuture<T> - Class in com.peterphi.std.threading
A wrapper type which takes a Callable and turns it into a RunnableFuture
RunnableCallableFuture(Callable<T>) - Constructor for class com.peterphi.std.threading.RunnableCallableFuture
 

S

safeMove(File, File) - Static method in class com.peterphi.std.io.FileHelper
Deprecated.
use commons file utils FileUtils.moveDirectoryToDirectory instead
SampleCount - Class in com.peterphi.std.types
A number of samples at a given sample rate
SampleCount(long, Timebase) - Constructor for class com.peterphi.std.types.SampleCount
 
SANITY_CHECK - Static variable in class com.peterphi.std.types.Id
If true the constructor for Id will verify that all Ids comply with the
save() - Method in class com.peterphi.std.io.PropertyFile
 
save(File, String) - Method in class com.peterphi.std.io.PropertyFile
 
save(OutputStream) - Method in class com.peterphi.std.io.PropertyFile
 
save(String) - Method in class com.peterphi.std.io.PropertyFile
 
save(String, OutputStream) - Method in class com.peterphi.std.io.PropertyFile
 
save(String, Writer) - Method in class com.peterphi.std.io.PropertyFile
 
schema - Variable in class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFile
The XML Schema (should be an Element)
schemaElement() - Method in class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFile
 
SchemaValidationException - Exception in com.peterphi.std.util.jaxb.exception
 
SchemaValidationException(String) - Constructor for exception com.peterphi.std.util.jaxb.exception.SchemaValidationException
 
SchemaValidationException(String, Throwable) - Constructor for exception com.peterphi.std.util.jaxb.exception.SchemaValidationException
 
SchemaValidationException(Throwable) - Constructor for exception com.peterphi.std.util.jaxb.exception.SchemaValidationException
 
seconds(Timebase, long) - Static method in class com.peterphi.std.types.SampleCount
 
serialise(Object) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
 
serialise(Object, File) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
 
serialise(Object, OutputStream) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
 
serialise(Object, Writer) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
 
serialise(Object, Node) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
 
serialise(Document) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialise(Document, OutputStream) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialise(Document, Writer) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialise(Element) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialise(Element, OutputStream) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialise(Element, Writer) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialise(Node) - Static method in class com.peterphi.std.util.DOMUtils
 
serialise(Node, File) - Static method in class com.peterphi.std.util.DOMUtils
 
serialise(Node, OutputStream) - Static method in class com.peterphi.std.util.DOMUtils
 
serialise(Node, Writer) - Static method in class com.peterphi.std.util.DOMUtils
 
serialise(Node, StreamResult) - Static method in class com.peterphi.std.util.DOMUtils
 
serialiseBytes(Element) - Static method in class com.peterphi.std.util.JDOMUtils
 
serialiseBytes(Node) - Static method in class com.peterphi.std.util.DOMUtils
 
serialiseToDocument(Object) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Helper method to serialise an Object to an org.w3c.dom.Document
ServiceName - Annotation Type in com.peterphi.std.annotation
A friendly alias for a service (or group of services)
set(ChmodBit...) - Static method in enum com.peterphi.std.io.ChmodBit
 
set(String, int) - Method in class com.peterphi.std.io.PropertyFile
 
set(String, long) - Method in class com.peterphi.std.io.PropertyFile
 
set(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
set(T) - Method in class com.peterphi.std.threading.SettableFuture
 
setBase64(String, byte[]) - Method in class com.peterphi.std.io.PropertyFile
 
setContent(int[]) - Method in class com.peterphi.std.types.Version
Deprecated.
DO NOT USE THIS METHOD - FOR BEAN SERIALISER ONLY
setEncoding(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Specify an output encoding to use when marshalling the XML data.
setEnv(String, String) - Method in class com.peterphi.std.system.exec.Exec
 
setFile(File) - Method in class com.peterphi.std.io.PropertyFile
 
setForceNameValueDelimiterWhitespace(boolean) - Method in class com.peterphi.std.io.PropertyFile
 
setFragment(boolean) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Specify the value of jaxb.fragment used by the underlying marshaller
setHex(String, byte[]) - Method in class com.peterphi.std.io.PropertyFile
 
setNoNamespaceSchemaLocation(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Specify an xsi:noNamespaceSchemaLocation in the generated XML
setPrettyOutput(boolean) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Enable/Disable pretty printing
setRedirectError(boolean) - Method in class com.peterphi.std.system.exec.Exec
 
setSchema(Schema) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Optionally specify the schema to use for all future serialisation/deserialisation methods
setSchemaLocation(String) - Method in class com.peterphi.std.util.jaxb.JAXBSerialiser
Specify an xsi:schemaLocation attribute in the generated XML
SettableFuture<T> - Class in com.peterphi.std.threading
A simple Future whose value will be set at some later date
SettableFuture() - Constructor for class com.peterphi.std.threading.SettableFuture
 
SettableFuture(ParamInvokeable<SettableFuture<T>>, ParamInvokeable<SettableFuture<T>>) - Constructor for class com.peterphi.std.threading.SettableFuture
Create a SettableFuture which will potentially execute tasks upon set and upon cancel; the handlers will hold the exclusive lock on the monitor for the duration of their execution
The handlers, (as they are ParamInvokeables) run synchronously with the call to set or cancel; they run after the effects have taken place and after any interested parties waiting on the monitor have been notified
setTextState(String) - Method in class com.peterphi.std.threading.Daemon
 
setWorkingDirectory(File) - Method in class com.peterphi.std.system.exec.Exec
 
sha1(byte[]) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1(File) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1(File, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1(InputStream, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1(String) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1(String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
SHA1 - Static variable in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1hmac(byte[], byte[]) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
 
sha1hmac(String, String) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
Performs HMAC-SHA1 on the UTF-8 byte representation of strings
sha1hmac(String, String, int) - Static method in class com.peterphi.std.crypto.digest.DigestHelper
Performs HMAC-SHA1 on the UTF-8 byte representation of strings, returning the hexidecimal hash as a result
shouldStartAsDaemon() - Method in class com.peterphi.std.threading.Daemon
Overloading this method to return true will start this daemon's thread as a Daemon Thread
SimpleId - Class in com.peterphi.std.types
A simple, untyped Id field; this is one step above having a String id
It is recommended that users extend Id themselves rather than using this type (as a SimpleId adds no discernable information about what the id is for)
SimpleId(String) - Constructor for class com.peterphi.std.types.SimpleId
 
SimpleId(UUID) - Constructor for class com.peterphi.std.types.SimpleId
 
size(long) - Method in interface com.peterphi.std.io.ICopyProgressMonitor
A method which MAY be called to inform the monitor of the total size
size(Collection<T>) - Static method in class com.peterphi.std.util.ListUtility
 
size(T[]) - Static method in class com.peterphi.std.util.ListUtility
 
skip(long) - Method in class com.peterphi.std.io.CharSequenceReader
Skips the specified number of characters in the stream.
skip(long) - Method in class com.peterphi.std.io.StringBuilderReader
Skips the specified number of characters in the stream.
sleep() - Method in class com.peterphi.std.threading.Deadline
Sleeps the current thread until interrupted or until this deadline has expired.
sleep() - Method in class com.peterphi.std.threading.Timeout
Sleep for the duration of this timeout (or until the thread is interrupted)
sleep(boolean) - Method in class com.peterphi.std.threading.Deadline
Sleeps the current thread until this deadline has expired; if mayInterrupt is true then an interrupt will cause this method to return true
This is essentially a neater way of calling Thread.sleep
sleep(Deadline) - Method in class com.peterphi.std.threading.Timeout
Sleep for the duration of this timeout (or until the thread is interrupted, or until the provided deadline expires)
smallest(StorageUnit, StorageUnit) - Static method in enum com.peterphi.std.types.StorageUnit
Returns the the most diminutive unit of unit and unit2
smartEquals(File, File, boolean) - Static method in class com.peterphi.std.io.FileHelper
Determines if 2 files or directories are equivalent by looking inside them
soonest(Deadline...) - Static method in class com.peterphi.std.threading.Deadline
Retrieve the deadline with the least time remaining until it expires
spawn(Exec) - Static method in class com.peterphi.std.system.exec.Execed
 
start() - Method in interface com.peterphi.std.io.ICopyProgressMonitor
 
start() - Method in class com.peterphi.std.system.exec.Exec
Launches the process, returning a handle to it for IO ops, etc.
The finish condition for the OutputProcess is that all processes outputting to standard out must be complete before proceeding
start() - Method in class com.peterphi.std.threading.Timeout
Create a new deadline which is the given period of time in the future
start(Deadline) - Method in class com.peterphi.std.threading.Timeout
Create a new deadline within a given maximum timeframe; this prevents
start(String) - Static method in class com.peterphi.std.util.tracing.Tracing
 
start(String, boolean) - Static method in class com.peterphi.std.util.tracing.Tracing
 
startBasic() - Method in class com.peterphi.std.system.exec.Exec
Launches the process, returning a handle to it for IO ops, etc
the caller must read the output streams: otherwise the buffers may fill up and the remote program will be suspended indefinitely
startThread() - Method in class com.peterphi.std.threading.Daemon
Starts this daemon, creating a new thread for it (the name of which will be set to the SimpleName of its class)
startThread(String) - Method in class com.peterphi.std.threading.Daemon
Starts this daemon, creating a new thread for it
stoa(String) - Static method in class com.peterphi.std.net.IpHelper
Parses an IP address, returning it as an InetAddress
This method exists to prevent code which is handling valid IP addresses from having to catch UnknownHostException excessively (when there is often no choice but to totally fail out anyway)
stop(String) - Static method in class com.peterphi.std.util.tracing.Tracing
 
stopAll(List<? extends Daemon>) - Static method in class com.peterphi.std.threading.Daemon
Stop all the daemons in a given list:
stopThread() - Method in class com.peterphi.std.threading.Daemon
Requests the daemon terminate by setting a flag and sending an interrupt to the thread
STORAGE_DECIMAL - Static variable in enum com.peterphi.std.types.StorageUnit
 
StorageSize - Class in com.peterphi.std.types
Note: this class has a natural ordering that is inconsistent with equals.
StorageSize(long, StorageUnit) - Constructor for class com.peterphi.std.types.StorageSize
 
StorageSize(StorageUnit, BigInteger) - Constructor for class com.peterphi.std.types.StorageSize
Internal constructor.
StorageSize(BigDecimal, StorageUnit) - Constructor for class com.peterphi.std.types.StorageSize
Creates a new StorageSize where the value is an approximation of the provided value
Since this is an approximation some information may be lost.
StorageSize(BigInteger, StorageUnit) - Constructor for class com.peterphi.std.types.StorageSize
Creates a new StorageSize where the value is equal to the provided value
If the unit is in BITS then any fractional bytes resulting from the conversion will be discarded (e.g.
StorageUnit - Enum in com.peterphi.std.types
Represents Storage unit conversions in a similar fashion to how TimeUnit represents time unit conversions
This enumeration reflects the confused landscape of storage units: it contains computer science units (binary), storage industry units (decimal) and network industry units (decimal, bit-based)
STREAM_SLEEP_TIME - Static variable in class com.peterphi.std.io.StreamUtil
 
streamCopy(InputStream, OutputStream) - Static method in class com.peterphi.std.io.StreamUtil
 
streamCopy(InputStream, OutputStream, ICopyProgressMonitor) - Static method in class com.peterphi.std.io.StreamUtil
 
streamCopy(InputStream, Writer) - Static method in class com.peterphi.std.io.StreamUtil
Copies the contents of an InputStream, using the default encoding, into a Writer
streamCopy(Reader, Writer) - Static method in class com.peterphi.std.io.StreamUtil
 
StreamUtil - Class in com.peterphi.std.io
Title: Stream Utility Class
StringBuilderReader - Class in com.peterphi.std.io
A Reader whose source is a StringBuilder.
This is faster than StringReader and CharSequenceReader (and should produce less garbage than CharSequenceReader)
Implementation based on that of StringReader
StringBuilderReader(StringBuilder) - Constructor for class com.peterphi.std.io.StringBuilderReader
 
sub() - Method in class com.peterphi.std.io.TabLevel
 
subtract(SampleCount) - Method in class com.peterphi.std.types.SampleCount
 
subtract(SampleCount) - Method in class com.peterphi.std.types.Timecode
Subtract some samples from this timecode
subtract(SampleCount) - Method in class com.peterphi.std.types.TimecodeRange
Move the range left by the specified number of samples
subtract(StorageSize) - Method in class com.peterphi.std.types.StorageSize
Subtracts a storage size from the current object, using the smallest unit as the resulting StorageSize's unit
subtractPrecise(SampleCount) - Method in class com.peterphi.std.types.SampleCount
 
success - Variable in class com.peterphi.std.types.BooleanMessage
 
sum(Timeout...) - Static method in class com.peterphi.std.threading.Timeout
Adds together all the supplied timeouts
symlink(File, File) - Static method in class com.peterphi.std.io.FileHelper
 

T

TabLevel - Class in com.peterphi.std.io
A class for keeping track of indentation levels; allows indentation using spaces or tabs
TabLevel() - Constructor for class com.peterphi.std.io.TabLevel
 
TabLevel(boolean) - Constructor for class com.peterphi.std.io.TabLevel
 
TabLevel(int) - Constructor for class com.peterphi.std.io.TabLevel
 
TabLevel(int, boolean) - Constructor for class com.peterphi.std.io.TabLevel
 
TABSIZE_IN_SPACES - Static variable in class com.peterphi.std.io.TabLevel
If using spaces mode, the number of space characters to use for a single tab (defaults to 4)
tail(List<T>) - Static method in class com.peterphi.std.util.ListUtility
Returns a sublist containing all the items in the list after the first
TCP - com.peterphi.std.net.IPProtocol
 
TCP6 - com.peterphi.std.net.IPProtocol
 
TEN_SECONDS - Static variable in class com.peterphi.std.threading.Timeout
Ten seconds
TERABITS - com.peterphi.std.types.StorageUnit
One Terabit (ISO: Tb).
TERABYTES - com.peterphi.std.types.StorageUnit
One Terabyte (ISO: TiB)
The ISO long form name for this unit is Tebibyte (which we avoid using as the enum name to avoid confusion)
THIRTY_MINUTES - Static variable in class com.peterphi.std.threading.Timeout
30 minutes
THIRTY_SECONDS - Static variable in class com.peterphi.std.threading.Timeout
Thirty seconds
ThreadRenameCallableWrap<V> - Class in com.peterphi.std.threading
Created by bmcleod on 06/09/2016.
ThreadRenameCallableWrap(String, Callable<V>) - Constructor for class com.peterphi.std.threading.ThreadRenameCallableWrap
 
Ticker - Class in com.peterphi.std.util
Keeps track of how long it has been since a given timestamp (by default, when the instance was created)
This is mainly designed for testing timing
Ticker() - Constructor for class com.peterphi.std.util.Ticker
 
Ticker(long) - Constructor for class com.peterphi.std.util.Ticker
 
Ticker(Calendar) - Constructor for class com.peterphi.std.util.Ticker
 
Ticker(Date) - Constructor for class com.peterphi.std.util.Ticker
 
Timebase - Class in com.peterphi.std.types
Describes a timebase, expressed as a rational number.
Timebase(int, int) - Constructor for class com.peterphi.std.types.Timebase
 
Timecode - Class in com.peterphi.std.types
Represents a timecode, dd:hh:mm:ss:ff - where ff may be an arbitrary length
Timecodes containing days are not well supported.
TimecodeBuilder - Class in com.peterphi.std.types
Constructs Timecode instances
TimecodeBuilder() - Constructor for class com.peterphi.std.types.TimecodeBuilder
 
TimecodeComparator - Class in com.peterphi.std.types
Compares Timecodes in order of how much time they represent
This means that 00:00:00:02@25 is greater than 00:00:00:1920@48kHz
TimecodeComparator() - Constructor for class com.peterphi.std.types.TimecodeComparator
 
TimecodeRange - Class in com.peterphi.std.types
Represents a range between two non-null timecodes
TimecodeRange(Timecode, SampleCount) - Constructor for class com.peterphi.std.types.TimecodeRange
 
TimecodeRange(Timecode, Timecode) - Constructor for class com.peterphi.std.types.TimecodeRange
 
Timeout - Class in com.peterphi.std.threading
Represents an immutable Timeout (ie.
Timeout(long) - Constructor for class com.peterphi.std.threading.Timeout
Constructs a deadline using a given period of time
Timeout(long, TimeUnit) - Constructor for class com.peterphi.std.threading.Timeout
Constructs a deadline using a given period of time
Timeout(Duration) - Constructor for class com.peterphi.std.threading.Timeout
 
toBits(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
 
toBits(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
 
toBytes(long) - Method in enum com.peterphi.std.types.StorageUnit
 
toBytes(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
 
toBytes(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
 
toComparableString() - Method in class com.peterphi.std.types.Version
 
toDuration() - Method in class com.peterphi.std.threading.Timeout
 
toEncodedString() - Method in class com.peterphi.std.types.Timebase
Return the encoded string representation of this Timebase
N.B.
toEncodedString() - Method in class com.peterphi.std.types.Timecode
Returns the timecode in the Encoded Timecode format for this library.
toEncodedString(boolean) - Method in class com.peterphi.std.types.Timecode
Returns the timecode in the Encoded Timecode format for this library.
toEnglishString() - Method in class com.peterphi.std.threading.Timeout
 
toFfmpegString() - Method in class com.peterphi.std.types.SampleCount
Returns the sample count in FFmpeg's time-based duration format.
toFfmpegString() - Method in class com.peterphi.std.types.Timecode
Returns the timecode in FFmpeg format.
toHex(byte...) - Static method in class com.peterphi.std.util.HexHelper
Encodes a series of bytes into a hexidecimal string (potentially with leading zeroes) with no separators between each source byte
toHex(char, byte...) - Static method in class com.peterphi.std.util.HexHelper
Encodes a series of bytes into a hexidecimal string with each source byte (represented in the output as a 2 digit hexidecimal pair) separated by separator
toISODurationWithFrames(boolean) - Method in class com.peterphi.std.types.Timecode
Returns the timecode in a format that is similar to the ISO 8601 Duration format, except with an F field for frames.
toMap() - Method in class com.peterphi.std.io.PropertyFile
Converts the name/value pairs stored in this PropertyFile to a Map of key/value pairs
toOffset(Timecode) - Method in class com.peterphi.std.types.TimecodeRange
Constructs a new TimecodeRange where the values are expressed as offsets from reference.
toPlainString() - Method in class com.peterphi.std.types.StorageSize
Return a String version of this size (e.g.
toPlainString(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
Return a String version of this size (e.g.
toProperties() - Method in class com.peterphi.std.io.PropertyFile
Converts the name/value pairs stored in this PropertyFile to the Java Properties propertyfile type
toRootFirst(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Take a chain and return a (Read-only) chain with the root certificate as the first entry
toRootLast(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Take a chain and return a (Read-only) chain with the root certificate as the last entry
toShortString() - Method in class com.peterphi.std.types.StorageSize
Return a short ISO String version of this size (e.g.
toShortString(StorageUnit) - Method in class com.peterphi.std.types.StorageSize
Return a short ISO String version of this size using the provided unit (e.g.
toSMPTEString() - Method in class com.peterphi.std.types.Timecode
Return a SMPTE string of the format, dropping the days component.
toSMPTEString(boolean) - Method in class com.peterphi.std.types.Timecode
Return a SMPTE-style string of the format [-][dd:]hh:mm:ss:ff (or [-][dd:]hh:mm:ss;ff for drop-frame timecode)
toString() - Method in class com.peterphi.std.io.TabLevel
 
toString() - Method in class com.peterphi.std.threading.Deadline
 
toString() - Method in class com.peterphi.std.threading.RunnableCallableFuture
 
toString() - Method in class com.peterphi.std.threading.Timeout
 
toString() - Method in class com.peterphi.std.types.BooleanMessage
 
toString() - Method in class com.peterphi.std.types.Both
 
toString() - Method in class com.peterphi.std.types.Either
 
toString() - Method in class com.peterphi.std.types.Id
 
toString() - Method in class com.peterphi.std.types.InetSubnet
Emits this subnet in CIDR notation using the prefix (eg.
toString() - Method in class com.peterphi.std.types.SampleCount
Encode the SampleCount as samples@[str_timebase|nom[:denom]] (e.g.
toString() - Method in class com.peterphi.std.types.StorageSize
 
toString() - Method in class com.peterphi.std.types.Timebase
 
toString() - Method in class com.peterphi.std.types.Timecode
Returns the timecode as a String, formatted as either: hh:mm:ss:ff for non-dropframe timecode (where ff is of arbitrary length) hh:mm:ss;ff for dropframe timecode (where ff is of arbitrary length)
toString() - Method in class com.peterphi.std.types.TimecodeBuilder
 
toString() - Method in class com.peterphi.std.types.TimecodeRange
 
toString() - Method in class com.peterphi.std.types.Version
 
toString() - Method in class com.peterphi.std.util.jaxb.type.MultiXSDSchemaFile
 
toString() - Method in class com.peterphi.std.util.Ticker
 
toString(boolean, Set<ChmodBit>) - Static method in enum com.peterphi.std.io.ChmodBit
 
toString(long) - Method in enum com.peterphi.std.types.StorageUnit
 
toString(long, boolean) - Method in enum com.peterphi.std.types.StorageUnit
 
toString(BigDecimal) - Method in enum com.peterphi.std.types.StorageUnit
 
toString(BigDecimal, boolean) - Method in enum com.peterphi.std.types.StorageUnit
 
toString(BigInteger) - Method in enum com.peterphi.std.types.StorageUnit
 
toString(BigInteger, boolean) - Method in enum com.peterphi.std.types.StorageUnit
 
toString(Set<ChmodBit>, Set<ChmodBit>) - Static method in enum com.peterphi.std.io.ChmodBit
 
touch(File) - Static method in class com.peterphi.std.io.FileHelper
Creates/updates a file with the modify date set to now
toVidispineString() - Method in class com.peterphi.std.types.SampleCount
Deprecated.
toVidispineString() - Method in class com.peterphi.std.types.Timecode
Deprecated.
use getSampleCount().toEncodedString();
Tracing - Class in com.peterphi.std.util.tracing
 
TracingConstants - Class in com.peterphi.std.util.tracing
 
TRUE - Static variable in class com.peterphi.std.types.BooleanMessage
 
trySymlink(File, File) - Static method in class com.peterphi.std.io.FileHelper
 

U

UDP - com.peterphi.std.net.IPProtocol
 
UDP6 - com.peterphi.std.net.IPProtocol
 
union(Collection<? extends T>...) - Static method in class com.peterphi.std.util.ListUtility
Concatenates a number of Collections into a single Set
USE_GENERIC_TEMP_DIRECTORY - Static variable in class com.peterphi.std.crypto.openssl.OpenSSLPKCS12
 
utility(Iterable<String>) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
utility(String...) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
utilityAs(String, Iterable<String>) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)
utilityAs(String, String...) - Static method in class com.peterphi.std.system.exec.Exec
Runs a command in "utility" mode: redirecting stderr to stdout and optionally executing as a different user (eg root)

V

validate(Node) - Method in class com.peterphi.std.util.jaxb.XSDValidator
Validate some XML against this schema
value - Variable in class com.peterphi.std.io.PropertyFile.NameValuePair
 
value() - Method in annotation type com.peterphi.std.annotation.Doc
Some textual documentation
value() - Method in annotation type com.peterphi.std.annotation.ServiceName
A friendly name the service can be known as
valueOf(String) - Static method in enum com.peterphi.std.io.ActionOnConflict
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.peterphi.std.io.ChmodBit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.peterphi.std.net.IPProtocol
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.peterphi.std.types.SampleCount
Parse a sample count & timebase as samples@[str_timebase|nom[:denom]] N.B.
valueOf(String) - Static method in enum com.peterphi.std.types.StorageUnit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class com.peterphi.std.types.Timebase
Parses an encoded timebase.
valueOf(String) - Static method in class com.peterphi.std.types.Timecode
Parse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase).
values() - Static method in enum com.peterphi.std.io.ActionOnConflict
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.peterphi.std.io.ChmodBit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.peterphi.std.net.IPProtocol
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.peterphi.std.types.StorageUnit
Returns an array containing the constants of this enum type, in the order they are declared.
vars - Variable in class com.peterphi.std.io.PropertyFile
 
verbose - Variable in class com.peterphi.std.util.tracing.Tracing
 
verify(String, char[]) - Static method in class com.peterphi.std.crypto.BCrypt
Check that a plaintext password matches a previously hashed one
verifyChain(List<X509Certificate>) - Static method in class com.peterphi.std.crypto.CertificateChainUtil
Verifies that a certificate chain is valid
Version - Class in com.peterphi.std.types
Title: Version
Version() - Constructor for class com.peterphi.std.types.Version
Deprecated.
DO NOT USE THIS METHOD - FOR BEAN SERIALISER ONLY. CREATES INVALID VERSIONS
Version(int...) - Constructor for class com.peterphi.std.types.Version
 
Version(String) - Constructor for class com.peterphi.std.types.Version
Constructs a new version.

W

waitFor(Object, boolean) - Method in class com.peterphi.std.threading.Deadline
Waits on the listed monitor until it returns or until this deadline has expired; if mayInterrupt is true then an interrupt will cause this method to return true
waitForTermination(Daemon, long) - Static method in class com.peterphi.std.threading.Daemon
 
waitForTermination(List<? extends Daemon>, long) - Static method in class com.peterphi.std.threading.Daemon
 
WARN_ON_PRECISION_LOSS - Static variable in class com.peterphi.std.types.Timebase
 
WATCH - Static variable in class com.peterphi.std.util.Logging
 
withDays(long) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withDropFrame(boolean) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withFrames(long) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withHours(long) - Method in class com.peterphi.std.types.TimecodeBuilder
 
within(Timecode) - Method in class com.peterphi.std.types.TimecodeRange
Tests whether a timecode lies within (or on the boundaries of) this range
within(TimecodeRange) - Method in class com.peterphi.std.types.TimecodeRange
Test whether a given timecode range lies wholly within (or on the boundaries of) this range
within(Version, Version) - Method in class com.peterphi.std.types.Version
Tests (inclusively) whether this version is within a given range
withLoosenXmlAnyConstraints(boolean) - Method in class com.peterphi.std.util.jaxb.MultiXSDGenerator
 
withLoosenXmlAnyConstraints(boolean) - Method in class com.peterphi.std.util.jaxb.MultiXSDSchemaCollector
 
withMinutes(long) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withNegative(boolean) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withRate(Timebase) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withSeconds(long) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withTime(Date) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withTime(DateTime) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withTime(LocalTime) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withTime(LocalTime, Timebase) - Method in class com.peterphi.std.types.TimecodeBuilder
 
withTimecode(Timecode) - Method in class com.peterphi.std.types.TimecodeBuilder
Reset this builder to the values in the provided Timecode
write(byte[]) - Method in class com.peterphi.std.io.NullOutputStream
 
write(byte[], int, int) - Method in class com.peterphi.std.io.NullOutputStream
 
write(int) - Method in class com.peterphi.std.io.NullOutputStream
 
write(File, Reader) - Static method in class com.peterphi.std.io.FileHelper
 
write(File, String) - Static method in class com.peterphi.std.io.FileHelper
 
write(File, StringBuilder) - Static method in class com.peterphi.std.io.FileHelper
 
writePID(File, long) - Static method in class com.peterphi.std.io.FileHelper
 
writePID(File, String) - Static method in class com.peterphi.std.io.FileHelper
 

X

XSDValidator - Class in com.peterphi.std.util.jaxb
Wrapper class that performs XSD Validation
XSDValidator(MultiXSDSchemaFiles) - Constructor for class com.peterphi.std.util.jaxb.XSDValidator
 
XSDValidator(Source...) - Constructor for class com.peterphi.std.util.jaxb.XSDValidator
 
XSDValidator(Schema) - Constructor for class com.peterphi.std.util.jaxb.XSDValidator
 

Y

YOTTABITS - com.peterphi.std.types.StorageUnit
One yottabit (ISO Yb).
YOTTABYTES - com.peterphi.std.types.StorageUnit
One yottabyte (ISO YiB)
The ISO long form name for this unit is Yobibyte (which we avoid using as the enum name to avoid confusion)

Z

ZERO - Static variable in class com.peterphi.std.threading.Timeout
A zero-length timeout
ZERO - Static variable in class com.peterphi.std.types.StorageSize
 
ZETTABITS - com.peterphi.std.types.StorageUnit
One zettabit (ISO Zb).
ZETTABYTES - com.peterphi.std.types.StorageUnit
One zettabyte (ISO ZiB)
The ISO long form name for this unit is Zebibyte (which we avoid using as the enum name to avoid confusion)

_

_clear() - Method in class com.peterphi.std.io.PropertyFile
 
_contains(String) - Method in class com.peterphi.std.io.PropertyFile
 
_get(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
_get_core(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
_rm(String) - Method in class com.peterphi.std.io.PropertyFile
 
_set(String, String) - Method in class com.peterphi.std.io.PropertyFile
 
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 
Skip navigation links

Copyright © 2018. All rights reserved.