org.apache.maven.wagon.providers.webdav

Class PutInputStream


public class PutInputStream
extends 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(File file, Resource resource, Wagon wagon, TransferEventSupport eventSupport)

Method Summary

int
read()
int
read(buffer[] )
int
read(buffer[] , int offset, int length)

Constructor Details

PutInputStream

public PutInputStream(File file,
                      Resource resource,
                      Wagon wagon,
                      TransferEventSupport eventSupport)
            throws FileNotFoundException

Method Details

read

public int read()
            throws IOException

read

public int read(buffer[] )
            throws IOException

read

public int read(buffer[] ,
                int offset,
                int length)
            throws IOException