org.apache.maven.wagon.providers.webdav
Class PutInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.apache.maven.wagon.providers.webdav.PutInputStream
All Implemented Interfaces:
java.io.Closeable

public class PutInputStream
extends java.io.FileInputStream

Put Input Stream is borrowed from wagon-http, and is used to properly notify the listeners of transfer events on a put request.

Author:
Joakim Erdfelt

Constructor Summary
PutInputStream(java.io.File file, org.apache.maven.wagon.resource.Resource resource, org.apache.maven.wagon.Wagon wagon, org.apache.maven.wagon.events.TransferEventSupport eventSupport)
           
 
Method Summary
 int read()
           
 int read(byte[] buffer)
           
 int read(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutInputStream

public PutInputStream(java.io.File file,
                      org.apache.maven.wagon.resource.Resource resource,
                      org.apache.maven.wagon.Wagon wagon,
                      org.apache.maven.wagon.events.TransferEventSupport eventSupport)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

read

public int read(byte[] buffer)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException


Copyright © 2003-2008 Apache Software Foundation. All Rights Reserved.