wt.fv.master
Class RemoteUploadInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bywt.fv.master.RemoteUploadInputStream

public class RemoteUploadInputStream
extends InputStream


Nested Class Summary
private  class RemoteUploadInputStream.ReplicaUploadSaver
           
 
Field Summary
(package private)  InputStream input
           
(package private)  MasteredOnReplicaItem item
           
(package private)  PipedOutputStream pout
           
(package private)  boolean saveErrorOccured
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
RemoteUploadInputStream(InputStream in, MasteredOnReplicaItem item)
           
 
Method Summary
 int available()
           
private  void initPipe()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void writeToPipe(byte[] inb, int off, int len)
           
 void writeToPipe(int val)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

MasteredOnReplicaItem item

input

InputStream input

pout

PipedOutputStream pout

saveErrorOccured

boolean saveErrorOccured
Constructor Detail

RemoteUploadInputStream

public RemoteUploadInputStream(InputStream in,
                               MasteredOnReplicaItem item)
Method Detail

available

public int available()
              throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] b)
         throws IOException
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Throws:
IOException

initPipe

private void initPipe()

writeToPipe

public void writeToPipe(int val)

writeToPipe

public void writeToPipe(byte[] inb,
                        int off,
                        int len)