| Package | Description |
|---|---|
| net.lecousin.framework.application.libraries |
Library loading and management.
|
| net.lecousin.framework.concurrent |
Multi-threading framework.
|
| net.lecousin.framework.concurrent.synch |
Classes implementing synchronization points such as asynchronous result, join point...
|
| net.lecousin.framework.concurrent.tasks |
Implementations of tasks.
|
| net.lecousin.framework.concurrent.tasks.drives |
Tasks on files or directories.
|
| net.lecousin.framework.concurrent.util.production.simple |
Production model: a producer produces objects that are consumed by a consumer.
This allows asynchronous production and consumption. An example is a server task producing an output, and a consumer sending it over the network. |
| net.lecousin.framework.io |
New java Input/Output model adding more flexibility and asynchronous operations.
|
| net.lecousin.framework.io.buffering |
IO with bufferization.
|
| net.lecousin.framework.io.out2in |
Implementations of IO.OutputToInput.
|
| net.lecousin.framework.io.serialization |
Serialization and deserialization framework.
|
| net.lecousin.framework.io.text |
IO on characters and text.
|
| net.lecousin.framework.io.util |
Utility classes for IO.
|
| net.lecousin.framework.locale |
Localization.
|
| net.lecousin.framework.util |
Utility classes.
|
| net.lecousin.framework.xml |
XML Parsing and generation.
|
| net.lecousin.framework.xml.dom |
Simple (partial) DOM implementation.
|
| net.lecousin.framework.xml.serialization |
XML serialization and deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<Library,Exception> |
LibrariesManager.loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work)
Load a new library.
|
AsyncWork<Library,Exception> |
DefaultLibrariesManager.loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work) |
| Modifier and Type | Class and Description |
|---|---|
class |
Task.Output
Synchronization point holding the result or error of this task.
|
| Modifier and Type | Method and Description |
|---|---|
static <TError extends Exception> |
Threading.waitUnblockedWithError(Collection<AsyncWork<?,TError>> tasks)
Wait for the given tasks to finish, if one has an error this error is immediately thrown without waiting for other tasks.
|
| Modifier and Type | Method and Description |
|---|---|
default AsyncWork<Void,TError> |
ISynchronizationPoint.toAsyncWorkVoid()
Convert this synchronization point into an AsyncWork with Void result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncWork.listenInline(AsyncWork<T,TError> sp)
Forward the result, error, or cancellation to the given AsyncWork.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncWork<Properties,IOException> |
LoadPropertiesFileTask.loadPropertiesFile(BufferedReadableCharacterStream stream,
byte priority,
IO.OperationType closeStreamAtEnd,
Listener<Properties> onDone)
Load properties from a character stream.
|
static AsyncWork<Properties,IOException> |
LoadPropertiesFileTask.loadPropertiesFile(File file,
Charset charset,
byte priority,
Listener<Properties> onDone)
Load properties from a file.
|
static AsyncWork<Properties,IOException> |
LoadPropertiesFileTask.loadPropertiesFile(IO.Readable.Buffered input,
Charset charset,
byte priority,
IO.OperationType closeInputAtEnd,
Listener<Properties> onDone)
Load properties from a Buffered IO.
|
static AsyncWork<Properties,IOException> |
LoadPropertiesFileTask.loadPropertiesFile(IO.Readable input,
Charset charset,
byte priority,
IO.OperationType closeInputAtEnd,
Listener<Properties> onDone)
Load properties from a Readable IO.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FileAccess.getSize(AsyncWork<Long,IOException> sp) |
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<?,? extends Exception> |
ProductTransformation.consume(Input product) |
AsyncWork<?,? extends Exception> |
Consumer.consume(T product)
Consume the given object.
|
AsyncWork<?,? extends Exception> |
ProductTransformation.endOfProduction() |
AsyncWork<?,? extends Exception> |
Consumer.endOfProduction()
Signal the end of production, meaning no new object will be given to consume.
|
AsyncWork<Void,Exception> |
Production.getSyncOnFinished() |
protected abstract AsyncWork<Output,Exception> |
ProductTransformation.process(Input input) |
AsyncWork<T,? extends Exception> |
Producer.produce(Production<T> production)
Ask to produce a new object.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
IOUtil.listenOnDone(AsyncWork<T,IOException> toListen,
AsyncWork<T,IOException> toUnblock,
RunnableWithParameter<Pair<T,IOException>> ondone)
Listen to the given asynchronous operation, then unblock
toUnblock with its result/error/cancellation,
but calls ondone before if not null and the result is not cancelled. |
static <T> void |
IOUtil.listenOnDone(AsyncWork<T,IOException> toListen,
AsyncWork<T,IOException> toUnblock,
RunnableWithParameter<Pair<T,IOException>> ondone)
Listen to the given asynchronous operation, then unblock
toUnblock with its result/error/cancellation,
but calls ondone before if not null and the result is not cancelled. |
static <T,T2> void |
IOUtil.listenOnDone(AsyncWork<T,IOException> toListen,
Listener<T> onReady,
ISynchronizationPoint<IOException> onErrorOrCancel,
RunnableWithParameter<Pair<T2,IOException>> ondone)
Listen to
toListen, then calls onReady if it succeed. |
static <T,T2> void |
IOUtil.listenOnDone(AsyncWork<T,IOException> toListen,
Task<?,?> onReady,
ISynchronizationPoint<IOException> onErrorOrCancel,
RunnableWithParameter<Pair<T2,IOException>> ondone)
Listen to
toListen, then launch onReady if it succeed. |
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<Integer,IOException> |
ICharacterStream.Readable.readAsync(char[] buf,
int offset,
int length)
Read characters.
|
AsyncWork<Integer,IOException> |
BufferedReadableCharacterStreamLocation.readAsync(char[] buf,
int offset,
int length) |
AsyncWork<Integer,IOException> |
BufferedReadableCharacterStream.readAsync(char[] buf,
int off,
int len) |
default AsyncWork<Integer,IOException> |
ICharacterStream.Readable.readFullyAsync(char[] buf,
int offset,
int length)
Read all requested characters.
|
| Modifier and Type | Method and Description |
|---|---|
default AsyncWork<String,NoException> |
ILocalizableString.appLocalization()
Return the string localized in the application language.
|
default AsyncWork<String,NoException> |
ILocalizableString.localize(String languageTag)
Return the localized string, based on language tag.
|
AsyncWork<String,NoException> |
FixedLocalizedString.localize(String languageTag) |
AsyncWork<String,NoException> |
LocalizableStringBuffer.localize(String[] languageTag) |
AsyncWork<String,NoException> |
LocalizableString.localize(String[] languageTag) |
AsyncWork<String,NoException> |
ILocalizableString.localize(String[] languageTag)
Return the localized string, based on language tag.
|
AsyncWork<String,NoException> |
FixedLocalizedString.localize(String[] languageTag) |
AsyncWork<String,NoException> |
CompositeLocalizable.localize(String[] languageTag) |
AsyncWork<String,NoException> |
LocalizedProperties.localize(String[] languageTag,
String namespace,
String key,
Object... values)
Localization.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<List<? extends ElementType>,Exception> |
HierarchyProvider.Asynchronous.getChildren(ElementType element,
boolean refresh,
byte priority)
Return the children of the given element.
|
AsyncWork<Boolean,Exception> |
HierarchyProvider.Asynchronous.hasChildren(ElementType element,
boolean refresh,
byte priority)
Return true if the given element has children.
|
AsyncWork<Integer,IOException> |
UnprotectedStringBuffer.CS.readAsync(char[] buf,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<Boolean,Exception> |
XMLStreamEventsAsync.goInto(XMLStreamEvents.ElementContext rootContext,
String... innerElements)
Go successively into the given elements.
|
AsyncWork<Boolean,Exception> |
XMLStreamEventsAsync.nextInnerElement(XMLStreamEvents.ElementContext parent)
Go to the next inner element.
|
AsyncWork<Boolean,Exception> |
XMLStreamEventsAsync.nextInnerElement(XMLStreamEvents.ElementContext parent,
String childName)
Go to the next inner element having the given name.
|
AsyncWork<Map<String,String>,Exception> |
XMLStreamEventsAsync.readInnerElementsText()
Read all inner elements with their text, and return a mapping with the element's name as key and inner text as value.
|
AsyncWork<UnprotectedStringBuffer,Exception> |
XMLStreamEventsAsync.readInnerText()
Read inner text and close element.
|
static AsyncWork<XMLStreamReader,Exception> |
XMLStreamReader.start(IO.Readable.Buffered io,
int charactersBufferSize)
Utility method that initialize a XMLStreamReader, initialize it, and
return an AsyncWork which is unblocked when characters are available to be read.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncWork<XMLElement,Exception> |
XMLElement.create(XMLDocument doc,
XMLStreamEventsAsync stream)
Create an Element from a XMLStreamEvents.
|
static AsyncWork<XMLDocument,Exception> |
XMLDocument.create(XMLStreamEventsAsync stream)
Create a document from a XMLStreamEvents.
|
Copyright © 2018. All rights reserved.