@Override public int read(byte[] b) throws IOException { return read(b, 0, b.length); }
public int read(byte[] b) throws IOException { return read(b, 0, b.length); }
public void run() { isRunning = true; try { int readwait = LogViewerPlugin.getDefault().getPreferenceStore().getInt(ILogViewerConstants.PREF_READWAIT); inStream = getInputStream(); while(isRunning) { int available = inStream.available(); if (available > 0) { byte[] readed = new byte[available]; inStream.read(readed, 0, available); outStream.write(readed); //continue; } wait(readwait); } } catch(InterruptedException ie) { } catch(NullPointerException npe) { } catch (IOException e) { } finally { } isRunning = false; }