public final class InputStreams extends Object
InputStream
instances backed by binary or textual data that attempt
to minimize intermediate copying while streaming data.Modifier and Type | Method and Description |
---|---|
static InputStream |
create(byte[] b) |
static InputStream |
create(byte[] b,
int off,
int len) |
static InputStream |
create(ByteArrayBuffer b) |
static InputStream |
create(ByteBuffer b) |
static InputStream |
create(CharSequence s,
Charset charset) |
static InputStream |
createAscii(CharSequence s) |
public static InputStream create(byte[] b, int off, int len)
public static InputStream create(byte[] b)
public static InputStream create(ByteArrayBuffer b)
public static InputStream create(ByteBuffer b)
public static InputStream createAscii(CharSequence s)
public static InputStream create(CharSequence s, Charset charset)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.