401495 removed unused getOutputStream

This commit is contained in:
Greg Wilkins 2013-03-04 17:38:00 +11:00
parent 3bc0411e65
commit c396622770
7 changed files with 2 additions and 64 deletions

View File

@ -318,7 +318,7 @@ public abstract class AbstractCompressedStream extends ServletOutputStream
}
/**
* @see org.eclipse.jetty.http.gzip.CompressedStream#getOutputStream()
* @see org.eclipse.jetty.http.gzip.CompressedStream#createOutputStream()
*/
public OutputStream getOutputStream()
{

View File

@ -90,14 +90,6 @@ class BadResource extends URLResource
throw new FileNotFoundException(_message);
}
/* --------------------------------------------------------- */
@Override
public OutputStream getOutputStream()
throws java.io.IOException, SecurityException
{
throw new FileNotFoundException(_message);
}
/* --------------------------------------------------------- */
@Override
public boolean delete()

View File

@ -276,17 +276,6 @@ public class FileResource extends URLResource
{
return FileChannel.open(_file.toPath(),StandardOpenOption.READ);
}
/* --------------------------------------------------------- */
/**
* Returns an output stream to the resource
*/
@Override
public OutputStream getOutputStream()
throws java.io.IOException, SecurityException
{
return new FileOutputStream(_file);
}
/* --------------------------------------------------------- */
/**

View File

@ -396,13 +396,6 @@ public abstract class Resource implements ResourceFactory
public abstract ReadableByteChannel getReadableByteChannel()
throws java.io.IOException;
/* ------------------------------------------------------------ */
/**
* Returns an output stream to the resource
*/
public abstract OutputStream getOutputStream()
throws java.io.IOException, SecurityException;
/* ------------------------------------------------------------ */
/**
* Deletes the given resource

View File

@ -362,22 +362,6 @@ public class ResourceCollection extends Resource
return null;
}
/* ------------------------------------------------------------ */
@Override
public OutputStream getOutputStream() throws IOException, SecurityException
{
if(_resources==null)
throw new IllegalStateException("*resources* not set.");
for(Resource r : _resources)
{
OutputStream os = r.getOutputStream();
if(os!=null)
return os;
}
return null;
}
/* ------------------------------------------------------------ */
@Override
public URL getURL()

View File

@ -232,17 +232,6 @@ public class URLResource extends Resource
return null;
}
/* ------------------------------------------------------------ */
/**
* Returns an output stream to the resource
*/
@Override
public OutputStream getOutputStream()
throws java.io.IOException, SecurityException
{
throw new IOException( "Output not supported");
}
/* ------------------------------------------------------------ */
/**
* Deletes the given resource

View File

@ -111,16 +111,7 @@ public class OrderingTest
{
return _name;
}
/**
* @see org.eclipse.jetty.util.resource.Resource#getOutputStream()
*/
@Override
public OutputStream getOutputStream() throws IOException, SecurityException
{
return null;
}
/**
* @see org.eclipse.jetty.util.resource.Resource#getURL()
*/