401495 removed unused getOutputStream
This commit is contained in:
parent
3bc0411e65
commit
c396622770
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------- */
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue