diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java index 4144efae000..21d4c29f467 100644 --- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java @@ -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() { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/BadResource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/BadResource.java index d796ecfb1b9..410ae2cbe58 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/BadResource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/BadResource.java @@ -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() diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java index aa72097f39f..030f02a314c 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java @@ -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); - } /* --------------------------------------------------------- */ /** diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java index 15cfc7a6270..a9630e6019c 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java @@ -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 diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/ResourceCollection.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/ResourceCollection.java index 800fb902741..35ab1be7970 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/ResourceCollection.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/ResourceCollection.java @@ -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() diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java index 9a747e6142b..2431b880088 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java @@ -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 diff --git a/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/OrderingTest.java b/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/OrderingTest.java index 9289efb8164..7c19ca0d23a 100644 --- a/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/OrderingTest.java +++ b/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/OrderingTest.java @@ -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() */