Sfoglia il codice sorgente

add getOutputStreamClass

tags/2.0.1
Jonathan Cobb 4 anni fa
parent
commit
69f425b7ae
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/main/java/org/cobbzilla/util/io/FilterInputStreamViaOutputStream.java

+ 2
- 0
src/main/java/org/cobbzilla/util/io/FilterInputStreamViaOutputStream.java Vedi File

@@ -23,6 +23,8 @@ public class FilterInputStreamViaOutputStream extends PipedInputStream implement
private OutputStream out;
private Thread thread;

public Class<? extends OutputStream> getOutputStreamClass () { return out == null ? null : out.getClass(); }

public FilterInputStreamViaOutputStream(InputStream in, Class<? extends OutputStream> outStreamClass) {
super(DEFAULT_PIPE_BUFFER_SIZE);
this.in = in;


Caricamento…
Annulla
Salva