| Modifier and Type | Method and Description |
|---|---|
static ESuccess |
ThreadHelper.sleep(long nMilliseconds)
Sleep the current thread for a certain amount of time
|
static ESuccess |
ThreadHelper.sleep(long nDuration,
TimeUnit aTimeUnit)
Sleep the current thread for a certain amount of time
|
static ESuccess |
ThreadHelper.sleep(TimeValue aTimeValue)
Sleep the current thread for a certain amount of time
|
static ESuccess |
ThreadHelper.sleepMinutes(long nMinutes)
Sleep the current thread for a certain amount of time
|
static ESuccess |
ThreadHelper.sleepSeconds(long nSeconds)
Sleep the current thread for a certain amount of time
|
| Modifier and Type | Method and Description |
|---|---|
ESuccess |
AbstractConcurrentCollector.queueObject(DATATYPE aObject) |
ESuccess |
IMutableConcurrentCollector.queueObject(DATATYPE aObject)
Submit an object to the queue.
|
ESuccess |
AbstractConcurrentCollector.stopQueuingNewObjects() |
ESuccess |
IMutableConcurrentCollector.stopQueuingNewObjects()
Stop taking new objects in the collector.
|
| Modifier and Type | Method and Description |
|---|---|
static ESuccess |
PDTConfig.setDefaultDateTimeZoneID(String sDateTimeZoneID)
Set the default date time zone to use.
|
| Modifier and Type | Method and Description |
|---|---|
static ESuccess |
ChannelHelper.close(Channel aChannel) |
static ESuccess |
ChannelHelper.release(FileLock aFileLock) |
| Modifier and Type | Method and Description |
|---|---|
static ESuccess |
SimpleFileIO.writeFile(File aFile,
byte[] aContent) |
static ESuccess |
SimpleFileIO.writeFile(File aFile,
byte[] aContent,
int nOffset,
int nLength) |
static ESuccess |
SimpleFileIO.writeFile(File aFile,
String sContent,
Charset aCharset) |
| Modifier and Type | Method and Description |
|---|---|
default ESuccess |
IFileRelativeIO.appendFile(String sRelativePath,
byte[] aBytes)
Helper function for saving a file with correct error handling.
|
default ESuccess |
IFileRelativeIO.appendFile(String sRelativePath,
String sContent,
Charset aCharset)
Helper function for saving a file with correct error handling.
|
default ESuccess |
IFileRelativeIO.saveFile(String sRelativePath,
byte[] aBytes)
Helper function for saving a file with correct error handling.
|
default ESuccess |
IFileRelativeIO.saveFile(String sRelativePath,
String sContent,
Charset aCharset)
Helper function for saving a file with correct error handling.
|
default ESuccess |
IFileRelativeIO.writeFile(String sRelativePath,
EAppend eAppend,
byte[] aBytes)
Helper function for saving a file with correct error handling.
|
| Modifier and Type | Method and Description |
|---|---|
static ESuccess |
StreamHelper.close(AutoCloseable aCloseable)
Close the passed stream by encapsulating the declared
IOException. |
static ESuccess |
StreamHelper.closeWithoutFlush(AutoCloseable aCloseable)
Close the passed object, without trying to call flush on it.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStream(InputStream aIS,
boolean bCloseIS,
OutputStream aOS,
boolean bCloseOS,
byte[] aBuffer,
Long aLimit,
IExceptionCallback<IOException> aExceptionCallback,
MutableLong aCopyByteCount)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStream(InputStream aIS,
OutputStream aOS)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStream(InputStream aIS,
OutputStream aOS,
byte[] aBuffer)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStream(InputStream aIS,
OutputStream aOS,
byte[] aBuffer,
MutableLong aCopyByteCount)
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStream(InputStream aIS,
OutputStream aOS,
byte[] aBuffer,
MutableLong aCopyByteCount,
Long aLimit)
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStream(InputStream aIS,
OutputStream aOS,
MutableLong aCopyByteCount)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStreamAndCloseOS(InputStream aIS,
OutputStream aOS)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStreamWithLimit(InputStream aIS,
OutputStream aOS,
long nLimit)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyInputStreamToOutputStreamWithLimitAndCloseOS(InputStream aIS,
OutputStream aOS,
long nLimit)
Pass the content of the given input stream to the given output stream.
|
static ESuccess |
StreamHelper.copyReaderToWriter(Reader aReader,
boolean bCloseReader,
Writer aWriter,
boolean bCloseWriter,
char[] aBuffer,
Long aLimit,
IExceptionCallback<IOException> aExceptionCallback,
MutableLong aCopyCharCount)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriter(Reader aReader,
Writer aWriter)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriter(Reader aReader,
Writer aWriter,
char[] aBuffer)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriter(Reader aReader,
Writer aWriter,
char[] aBuffer,
MutableLong aCopyCharCount)
|
static ESuccess |
StreamHelper.copyReaderToWriter(Reader aReader,
Writer aWriter,
char[] aBuffer,
MutableLong aCopyCharCount,
Long aLimit)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriter(Reader aReader,
Writer aWriter,
MutableLong aCopyCharCount)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriterAndCloseWriter(Reader aReader,
Writer aWriter)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriterWithLimit(Reader aReader,
Writer aWriter,
long nLimit)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.copyReaderToWriterWithLimitAndCloseWriter(Reader aReader,
Writer aWriter,
long nLimit)
Pass the content of the given reader to the given writer.
|
static ESuccess |
StreamHelper.flush(Flushable aFlushable)
Flush the passed object encapsulating the declared
IOException. |
static ESuccess |
StreamHelper.writeStream(OutputStream aOS,
byte[] aBuf)
Write bytes to an
OutputStream. |
static ESuccess |
StreamHelper.writeStream(OutputStream aOS,
byte[] aBuf,
int nOfs,
int nLen)
Write bytes to an
OutputStream. |
static ESuccess |
StreamHelper.writeStream(OutputStream aOS,
String sContent,
Charset aCharset)
Write bytes to an
OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
ESuccess |
IMutableObjectPool.returnObject(DATATYPE aItem)
Return a previously borrowed object back to the pool.
|
ESuccess |
ObjectPool.returnObject(DATATYPE aItem) |
| Modifier and Type | Method and Description |
|---|---|
default ESuccess |
ISuccessIndicator.and(ISuccessIndicator aSuccess) |
default ESuccess |
ISuccessIndicator.or(ISuccessIndicator aSuccess) |
static ESuccess |
ESuccess.valueOf(boolean bSuccess) |
static ESuccess |
ESuccess.valueOf(ISuccessIndicator aSuccessIndicator) |
static ESuccess |
ESuccess.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ESuccess |
ESuccess.valueOfChange(IChangeIndicator aChange) |
static ESuccess[] |
ESuccess.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2014–2019 Philip Helger. All rights reserved.