OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:InputSupplier
(Results
1 - 25
of
26
) sorted by null
1
2
/external/guava/guava/src/com/google/common/io/
InputSupplier.java
27
public interface
InputSupplier
<T> {
CharStreams.java
65
public static
InputSupplier
<StringReader> newReaderSupplier(
68
return new
InputSupplier
<StringReader>() {
84
public static
InputSupplier
<InputStreamReader> newReaderSupplier(
85
final
InputSupplier
<? extends InputStream> in, final Charset charset) {
88
return new
InputSupplier
<InputStreamReader>() {
148
W extends Appendable & Closeable> long copy(
InputSupplier
<R> from,
178
InputSupplier
<R> from, Appendable to) throws IOException {
235
InputSupplier
<R> supplier) throws IOException {
261
InputSupplier
<R> supplier) throws IOException {
283
InputSupplier
<R> supplier) throws IOException
[
all
...]
Resources.java
54
public static
InputSupplier
<InputStream> newInputStreamSupplier(
57
return new
InputSupplier
<InputStream>() {
73
public static
InputSupplier
<InputStreamReader> newReaderSupplier(
FileBackedOutputStream.java
45
private final
InputSupplier
<InputStream> supplier;
69
* not reset the data when the {@link
InputSupplier
} returned by
81
* optionally resets the data when the {@link
InputSupplier
} returned
87
* be called when the {@link
InputSupplier
} returned by {@link
97
supplier = new
InputSupplier
<InputStream>() {
112
supplier = new
InputSupplier
<InputStream>() {
125
public
InputSupplier
<InputStream> getSupplier() {
MultiInputStream.java
32
private Iterator<? extends
InputSupplier
<? extends InputStream>> it;
41
Iterator<? extends
InputSupplier
<? extends InputStream>> it)
MultiReader.java
32
private final Iterator<? extends
InputSupplier
<? extends Reader>> it;
35
MultiReader(Iterator<? extends
InputSupplier
<? extends Reader>> readers)
ByteStreams.java
60
public static
InputSupplier
<ByteArrayInputStream> newInputStreamSupplier(
74
public static
InputSupplier
<ByteArrayInputStream> newInputStreamSupplier(
76
return new
InputSupplier
<ByteArrayInputStream>() {
113
public static long copy(
InputSupplier
<? extends InputStream> from,
142
public static long copy(
InputSupplier
<? extends InputStream> from,
247
InputSupplier
<? extends InputStream> supplier) throws IOException {
572
public static long length(
InputSupplier
<? extends InputStream> supplier)
601
public static boolean equal(
InputSupplier
<? extends InputStream> supplier1,
602
InputSupplier
<? extends InputStream> supplier2) throws IOException {
701
public static <T> T readBytes(
InputSupplier
<? extends InputStream> supplier
[
all
...]
Files.java
99
public static
InputSupplier
<FileInputStream> newInputStreamSupplier(
102
return new
InputSupplier
<FileInputStream>() {
150
public static
InputSupplier
<InputStreamReader> newReaderSupplier(File file,
234
public static void copy(
InputSupplier
<? extends InputStream> from, File to)
299
InputSupplier
<R> from, File to, Charset charset) throws IOException {
/external/guava/guava-tests/test/com/google/common/io/
MultiInputStreamTest.java
49
final
InputSupplier
<InputStream> supplier = newByteSupplier(0, 50);
51
InputSupplier
<InputStream> checker = new
InputSupplier
<InputStream>() {
72
List<
InputSupplier
<InputStream>> suppliers = Lists.newArrayList();
78
InputSupplier
<InputStream> joined = ByteStreams.join(suppliers);
83
InputSupplier
<InputStream> supplier = newByteSupplier(0, 10);
85
InputSupplier
<InputStream> joined = ByteStreams.join(supplier, supplier);
100
Collections.singleton(new
InputSupplier
<InputStream>() {
117
private static
InputSupplier
<InputStream> newByteSupplier(final int start, final int size) {
118
return new
InputSupplier
<InputStream>()
[
all
...]
MultiReaderTest.java
35
final
InputSupplier
<Reader> supplier = newReader(testString);
37
InputSupplier
<Reader> reader = new
InputSupplier
<Reader>() {
58
InputSupplier
<Reader> supplier = newReader("a");
59
Iterable<? extends
InputSupplier
<? extends Reader>> list = ImmutableList.of(supplier, supplier);
71
InputSupplier
<Reader> supplier = newReader(testString);
80
private static
InputSupplier
<Reader> newReader(final String text) {
81
return new
InputSupplier
<Reader>() {
108
InputSupplier
<Reader> supplier = newReader("a");
109
Iterable<? extends
InputSupplier
<? extends Reader>> list = ImmutableList.of(supplier, supplier)
[
all
...]
CheckCloseSupplier.java
41
implements
InputSupplier
<T> {
42
private final
InputSupplier
<? extends T> delegate;
44
public Input(
InputSupplier
<? extends T> delegate) {
CharStreamsTest.java
49
static final
InputSupplier
<? extends Reader> BROKEN_READ
55
static final
InputSupplier
<? extends Reader> BROKEN_CLOSE_INPUT
61
static final
InputSupplier
<? extends Reader> BROKEN_GET_INPUT
67
private static final ImmutableSet<
InputSupplier
<? extends Reader>> BROKEN_INPUTS =
103
InputSupplier
<StringReader> r = CharStreams.newReaderSupplier("a\nb\nc");
228
InputSupplier
<? extends Reader> in, OutputSupplier<? extends Writer> out) {
292
InputSupplier
<? extends Reader> delegate) {
FileBackedOutputStreamTest.java
82
InputSupplier
<InputStream> supplier = out.getSupplier();
132
InputSupplier
<InputStream> supplier = out.getSupplier();
153
InputSupplier
<InputStream> supplier = out.getSupplier();
ByteStreamsTest.java
50
static final
InputSupplier
<InputStream> BROKEN_READ
51
= new
InputSupplier
<InputStream>() {
76
static final
InputSupplier
<InputStream> BROKEN_CLOSE_INPUT =
77
new
InputSupplier
<InputStream>() {
102
static final
InputSupplier
<InputStream> BROKEN_GET_INPUT =
103
new
InputSupplier
<InputStream>() {
119
private static final ImmutableSet<
InputSupplier
<InputStream>> BROKEN_INPUTS =
153
new
InputSupplier
<InputStream>() {
350
InputSupplier
<? extends InputStream> in, OutputSupplier<OutputStream> out) {
739
assertEquals(100, ByteStreams.length(new
InputSupplier
<InputStream>()
[
all
...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
CreateFileChange.java
24
import com.google.common.io.
InputSupplier
;
83
InputSupplier
<FileInputStream> supplier = Files.newInputStreamSupplier(mSource);