- 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.
- 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
- 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
- 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.
- 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.
- 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.
- 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
- 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.
- 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
-
- 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.
- member(String) - Method in class com.peterphi.std.types.InetSubnet
-
Deprecated.
- member(InetAddress) - Method in class com.peterphi.std.types.InetSubnet
-
Deprecated.
- 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
-
- 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
-
- safeMove(File, File) - Static method in class com.peterphi.std.io.FileHelper
-
Deprecated.
- 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.
- 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
-
- 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.
- 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
-