public class Channels extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
readLines(InputStream inputStream,
Charset charset,
Consumer<String> consumer) |
static void |
readLines(InputStream inputStream,
Charset charset,
Consumer2<Integer,String> consumer) |
static void |
readLines(InputStream inputStream,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
readLines(InputStream inputStream,
Consumer<String> consumer) |
static void |
readLines(InputStream inputStream,
Consumer2<Integer,String> consumer) |
static void |
readLines(InputStream inputStream,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
readLines(ReadableByteChannel channel,
Charset charset,
Consumer<String> consumer) |
static void |
readLines(ReadableByteChannel channel,
Charset charset,
Consumer2<Integer,String> consumer) |
static void |
readLines(ReadableByteChannel channel,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
readLines(ReadableByteChannel channel,
Consumer<String> consumer) |
static void |
readUsingDelimiter(InputStream inputStream,
String delimiter,
Charset charset,
Consumer<String> consumer) |
static void |
readUsingDelimiter(InputStream inputStream,
String delimiter,
Charset charset,
Consumer2<Integer,String> consumer) |
static void |
readUsingDelimiter(InputStream inputStream,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakConsumer) |
static void |
readUsingDelimiter(InputStream inputStream,
String delimiter,
Consumer<byte[]> consumer) |
static void |
readUsingDelimiter(InputStream inputStream,
String delimiter,
Consumer2<Integer,byte[]> consumer) |
static void |
readUsingDelimiter(InputStream inputStream,
String delimiter,
Predicate2<Integer,byte[]> consumePredicate,
Consumer2<Integer,byte[]> consumer,
Predicate2<Integer,byte[]> breakPredicate) |
static void |
readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Charset charset,
Consumer<String> consumer) |
static void |
readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Charset charset,
Consumer2<Integer,String> consumer) |
static void |
readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate)
在消费之前,把 byte[] 转为 String
|
static void |
readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Consumer<byte[]> consumer) |
static void |
readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Consumer2<Integer,byte[]> consumer) |
static void |
readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Predicate2<Integer,byte[]> consumePredicate,
Consumer2<Integer,byte[]> consumer,
Predicate2<Integer,byte[]> breakPredicate)
所有方法最终都是走这个
|
public static void readUsingDelimiter(@NonNull InputStream inputStream, @NonNull String delimiter, @NonNull Consumer2<Integer,byte[]> consumer)
public static void readUsingDelimiter(@NonNull InputStream inputStream, @NonNull String delimiter, @NonNull Consumer<byte[]> consumer)
public static void readUsingDelimiter(@NonNull InputStream inputStream, @NonNull String delimiter, @Nullable Predicate2<Integer,byte[]> consumePredicate, @NonNull Consumer2<Integer,byte[]> consumer, @Nullable Predicate2<Integer,byte[]> breakPredicate)
public static void readUsingDelimiter(@NonNull ReadableByteChannel channel, @NonNull String delimiter, @NonNull Consumer2<Integer,byte[]> consumer)
public static void readUsingDelimiter(@NonNull ReadableByteChannel channel, @NonNull String delimiter, @NonNull Consumer<byte[]> consumer)
public static void readUsingDelimiter(@NonNull ReadableByteChannel channel, @NonNull String delimiter, @Nullable Predicate2<Integer,byte[]> consumePredicate, @NonNull Consumer2<Integer,byte[]> consumer, @Nullable Predicate2<Integer,byte[]> breakPredicate)
public static void readUsingDelimiter(@NonNull InputStream inputStream, @NonNull String delimiter, @NonNull Charset charset, Consumer<String> consumer)
public static void readUsingDelimiter(@NonNull InputStream inputStream, @NonNull String delimiter, @NonNull Charset charset, Consumer2<Integer,String> consumer)
public static void readUsingDelimiter(@NonNull InputStream inputStream, @NonNull String delimiter, @NonNull Charset charset, Predicate2<Integer,String> consumePredicate, Consumer2<Integer,String> consumer, Predicate2<Integer,String> breakConsumer)
public static void readUsingDelimiter(@NonNull ReadableByteChannel channel, @NonNull String delimiter, @NonNull Charset charset, @NonNull Consumer<String> consumer)
public static void readUsingDelimiter(@NonNull ReadableByteChannel channel, @NonNull String delimiter, @NonNull Charset charset, @NonNull Consumer2<Integer,String> consumer)
public static void readUsingDelimiter(@NonNull ReadableByteChannel channel, @NonNull String delimiter, @NonNull Charset charset, @Nullable Predicate2<Integer,String> consumePredicate, @NonNull Consumer2<Integer,String> consumer, @Nullable Predicate2<Integer,String> breakPredicate)
public static void readLines(@NonNull InputStream inputStream, @NonNull Consumer<String> consumer)
public static void readLines(@NonNull InputStream inputStream, @NonNull Consumer2<Integer,String> consumer)
public static void readLines(@NonNull InputStream inputStream, @Nullable Predicate2<Integer,String> consumePredicate, @NonNull Consumer2<Integer,String> consumer, @Nullable Predicate2<Integer,String> breakPredicate)
public static void readLines(@NonNull InputStream inputStream, @NonNull Charset charset, @NonNull Consumer<String> consumer)
public static void readLines(@NonNull InputStream inputStream, @NonNull Charset charset, @NonNull Consumer2<Integer,String> consumer)
public static void readLines(@NonNull InputStream inputStream, @NonNull Charset charset, @Nullable Predicate2<Integer,String> consumePredicate, @NonNull Consumer2<Integer,String> consumer, @Nullable Predicate2<Integer,String> breakPredicate)
public static void readLines(@NonNull ReadableByteChannel channel, @NonNull Consumer<String> consumer)
public static void readLines(@NonNull ReadableByteChannel channel, @NonNull Charset charset, @NonNull Consumer<String> consumer)
public static void readLines(@NonNull ReadableByteChannel channel, @NonNull Charset charset, @NonNull Consumer2<Integer,String> consumer)
Copyright © 2022. All rights reserved.