Java InputStream Read inputStreamReadBytesUntil(int endInd, InputStream is, byte[] buf, int off)

Here you can find the source of inputStreamReadBytesUntil(int endInd, InputStream is, byte[] buf, int off)

Description

input Stream Read Bytes Until

License

Open Source License

Declaration

public static void inputStreamReadBytesUntil(int endInd, InputStream is, byte[] buf, int off)
            throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;
import java.io.InputStream;

public class Main {
    public static void inputStreamReadBytesUntil(int endInd, InputStream is, byte[] buf, int off)
            throws IOException {
        while (off < endInd)
            off += is.read(buf, off, endInd - off);
    }//from   ww  w.  j  ava2s .c om
}

Related

  1. getInputStreamLength(InputStream in)
  2. getInputStreamReader(InputStream in, String charset)
  3. getInputStreamReaderAsResource(Class clazz, String fileName)
  4. getInputStreamString(final InputStream in)
  5. getInputStreamToBytes(InputStream is)
  6. inputStreamToList(InputStream stream)