| 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 | Method and Description |
|---|---|
static Map<URI,ChangeLog> |
ChangeLogSerializer.readAllChangeLogs(INonThrowingRunnableWithParameter<String> aErrorCallback) |
static Map<URI,ChangeLog> |
ChangeLogSerializer.readAllChangeLogs(INonThrowingRunnableWithParameter<String> aErrorCallback,
ClassLoader aClassLoader) |
static ChangeLog |
ChangeLogSerializer.readChangeLog(IInputStreamProvider aISP,
INonThrowingRunnableWithParameter<String> aErrorCallback)
Read the change log resource specified by the input stream provider.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
URLResource.getInputStream(int nConnectTimeoutMS,
int nReadTimeoutMS,
INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier,
IWrapper<IOException> aExceptionHolder) |
| Modifier and Type | Method and Description |
|---|---|
static void |
StreamUtils.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 |
StreamUtils.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.
|
static void |
StreamUtils.readStreamLines(InputStream aIS,
String sCharset,
INonThrowingRunnableWithParameter<String> aLineCallback)
Deprecated.
|
static void |
StreamUtils.readStreamLines(InputStream aIS,
String sCharset,
int nLinesToSkip,
int nLinesToRead,
INonThrowingRunnableWithParameter<String> aLineCallback)
Deprecated.
|
| 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 |
|---|---|
static InputStream |
URLUtils.getInputStream(URL aURL,
int nConnectTimeoutMS,
int nReadTimeoutMS,
INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier,
IWrapper<IOException> aExceptionHolder)
Get an input stream from the specified URL.
|
static InputStream |
URLUtils.postAndGetInputStream(URL aURL,
int nConnectTimeoutMS,
int nReadTimeoutMS,
IMimeType aContentType,
byte[] aContentBytes,
Map<String,String> aAdditionalHTTPHeaders,
INonThrowingRunnableWithParameter<URLConnection> aConnectionModifier,
IWrapper<IOException> aExceptionHolder)
POST something to a URL.
|
Copyright © 2006–2015 phloc systems. All rights reserved.