| Modifier and Type | Class and Description |
|---|---|
class |
AdapterRunnableToRunnableWithParameter<PARAMTYPE>
A helper class that converts a
Runnable into an
IThrowingRunnableWithParameter. |
| Modifier and Type | Method and Description |
|---|---|
INonThrowingRunnableWithParameter<PARAMTYPE> |
AdapterRunnableToCallableWithParameter.getRunnable() |
| Modifier and Type | Method and Description |
|---|---|
static <PARAMTYPE> |
AdapterRunnableToCallableWithParameter.createAdapter(INonThrowingRunnableWithParameter<PARAMTYPE> aRunnable)
Create a callable that always returns
null. |
static <DATATYPE,PARAMTYPE> |
AdapterRunnableToCallableWithParameter.createAdapter(INonThrowingRunnableWithParameter<PARAMTYPE> aRunnable,
DATATYPE aResult)
Create a callable that always returns the passed value.
|
| Constructor and Description |
|---|
AdapterRunnableToCallableWithParameter(INonThrowingRunnableWithParameter<PARAMTYPE> aRunnable) |
AdapterRunnableToCallableWithParameter(INonThrowingRunnableWithParameter<PARAMTYPE> aRunnable,
DATATYPE aResult) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IChangeLogSerializerCallback
Callback for change log serializer read actions.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingChangeLogSerializerCallback
Logging implementation of
IChangeLogSerializerCallback. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
URLResource.getInputStream(int nConnectTimeoutMS,
int nReadTimeoutMS,
INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier,
IMutableWrapper<IOException> aExceptionHolder) |
| Modifier and Type | Method and Description |
|---|---|
static void |
StreamHelper.readStreamLines(InputStream aIS,
Charset aCharset,
INonThrowingRunnableWithParameter<String> aLineCallback)
Read the complete content of the passed stream and pass each line
separately to the passed callback.
|
static void |
StreamHelper.readStreamLines(InputStream aIS,
Charset aCharset,
int nLinesToSkip,
int nLinesToRead,
INonThrowingRunnableWithParameter<String> aLineCallback)
Read the content of the passed stream line by line and invoking a callback
on all matching lines.
|
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> void |
CombinationGeneratorFlexible.iterateAllCombinations(List<DATATYPE> aElements,
boolean bAllowEmpty,
INonThrowingRunnableWithParameter<List<DATATYPE>> aCallback) |
void |
CombinationGeneratorFlexible.iterateAllCombinations(List<DATATYPE> aElements,
INonThrowingRunnableWithParameter<List<DATATYPE>> aCallback)
Iterate all combination, no matter they are unique or not.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IScope.runAtomic(INonThrowingRunnableWithParameter<IScope> aRunnable)
Perform stuff as a single action.
|
void |
AbstractMapBasedScope.runAtomic(INonThrowingRunnableWithParameter<IScope> aRunnable) |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
URLHelper.getInputStream(URL aURL,
int nConnectTimeoutMS,
int nReadTimeoutMS,
INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier,
IMutableWrapper<IOException> aExceptionHolder)
Get an input stream from the specified URL.
|
static InputStream |
URLHelper.postAndGetInputStream(URL aURL,
int nConnectTimeoutMS,
int nReadTimeoutMS,
IMimeType aContentType,
byte[] aContentBytes,
Map<String,String> aAdditionalHTTPHeaders,
INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier,
IMutableWrapper<IOException> aExceptionHolder)
Deprecated.
Use Apache http client or the like for a much better handling
|
Copyright © 2014–2016 Philip Helger. All rights reserved.