Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.net.http
Class ContentLengthOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by weblogic.net.http.ContentLengthOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

Deprecated. Deprecated in WebLogic Server 9.0

public final class ContentLengthOutputStream
extends OutputStream

An output stream that enforces that the writer writes exactly a stated content-length of bytes. An HTTP POST requires a content length, and this will save having to count the content-length before sending a big file (and the resulting OutOfMemoryErrors).


Method Summary
 void close()
          Deprecated.  
 void write(byte[] b)
          Deprecated.  
 void write(byte[] b, int off, int len)
          Deprecated.  
 void write(int i)
          Deprecated.  

 

Methods inherited from class java.io.OutputStream
flush

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

write

public void write(int i)
           throws IOException
Deprecated. 
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Deprecated. 
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Deprecated. 
Overrides:
write in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Deprecated. 
Specified by:
close in interface Closeable
Specified by:
close in interface AutoCloseable
Overrides:
close in class OutputStream
Throws:
IOException

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09