Closeable
, AutoCloseable
public class AutoCRLFInputStream extends InputStream
Constructor | Description |
---|---|
AutoCRLFInputStream(InputStream in,
boolean detectBinary) |
Creates a new InputStream, wrapping the specified stream
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
int |
read() |
|
int |
read(byte[] bs,
int off,
int len) |
available, mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTo
public AutoCRLFInputStream(InputStream in, boolean detectBinary)
in
- raw input streamdetectBinary
- whether binaries should be detectedpublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bs, int off, int len) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class InputStream
IOException
Copyright © 2018. All rights reserved.