Home | History | Annotate | Download | only in io
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2 <!--NewPage-->
      3 <HTML>
      4 <HEAD>
      5 <!-- Generated by javadoc (build 1.6.0-google-internal) on Mon Jan 04 20:47:59 PST 2010 -->
      6 <TITLE>
      7 NullOutputStream (Guava Libraries 2010.01.04)
      8 </TITLE>
      9 
     10 <META NAME="date" CONTENT="2010-01-04">
     11 
     12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
     13 
     14 <SCRIPT type="text/javascript">
     15 function windowTitle()
     16 {
     17     if (location.href.indexOf('is-external=true') == -1) {
     18         parent.document.title="NullOutputStream (Guava Libraries 2010.01.04)";
     19     }
     20 }
     21 </SCRIPT>
     22 <NOSCRIPT>
     23 </NOSCRIPT>
     24 
     25 </HEAD>
     26 
     27 <BODY BGCOLOR="white" onload="windowTitle();">
     28 <HR>
     29 
     30 
     31 <!-- ========= START OF TOP NAVBAR ======= -->
     32 <A NAME="navbar_top"><!-- --></A>
     33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
     34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
     35 <TR>
     36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
     37 <A NAME="navbar_top_firstrow"><!-- --></A>
     38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
     39   <TR ALIGN="center" VALIGN="top">
     40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
     41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
     42   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
     43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/NullOutputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
     44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
     45   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
     46   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
     47   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
     48   </TR>
     49 </TABLE>
     50 </TD>
     51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
     52 </EM>
     53 </TD>
     54 </TR>
     55 
     56 <TR>
     57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
     58 &nbsp;<A HREF="../../../../com/google/common/io/LineReader.html" title="class in com.google.common.io"><B>PREV CLASS</B></A>&nbsp;
     59 &nbsp;<A HREF="../../../../com/google/common/io/OutputSupplier.html" title="interface in com.google.common.io"><B>NEXT CLASS</B></A></FONT></TD>
     60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
     61   <A HREF="../../../../index.html?com/google/common/io/NullOutputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
     62 &nbsp;<A HREF="NullOutputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
     63 &nbsp;<SCRIPT type="text/javascript">
     64   <!--
     65   if(window==top) {
     66     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
     67   }
     68   //-->
     69 </SCRIPT>
     70 <NOSCRIPT>
     71   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
     72 </NOSCRIPT>
     73 
     74 
     75 </FONT></TD>
     76 </TR>
     77 <TR>
     78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
     79   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
     80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
     81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
     82 </TR>
     83 </TABLE>
     84 <A NAME="skip-navbar_top"></A>
     85 <!-- ========= END OF TOP NAVBAR ========= -->
     86 
     87 <HR>
     88 <!-- ======== START OF CLASS DATA ======== -->
     89 <H2>
     90 <FONT SIZE="-1">
     91 com.google.common.io</FONT>
     92 <BR>
     93 Class NullOutputStream</H2>
     94 <PRE>
     95 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
     96   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">java.io.OutputStream</A>
     97       <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.common.io.NullOutputStream</B>
     98 </PRE>
     99 <DL>
    100 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</A></DD>
    101 </DL>
    102 <HR>
    103 <DL>
    104 <DT><PRE>public class <B>NullOutputStream</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></DL>
    105 </PRE>
    106 
    107 <P>
    108 Implementation of <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><CODE>OutputStream</CODE></A> that simply discards written bytes.
    109 <P>
    110 
    111 <P>
    112 <DL>
    113 <DT><B>Since:</B></DT>
    114   <DD>2009.09.15 <b>tentative</b></DD>
    115 <DT><B>Author:</B></DT>
    116   <DD>Spencer Kimball</DD>
    117 </DL>
    118 <HR>
    119 
    120 <P>
    121 
    122 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
    123 
    124 <A NAME="constructor_summary"><!-- --></A>
    125 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    126 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    127 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    128 <B>Constructor Summary</B></FONT></TH>
    129 </TR>
    130 <TR BGCOLOR="white" CLASS="TableRowColor">
    131 <TD><CODE><B><A HREF="../../../../com/google/common/io/NullOutputStream.html#NullOutputStream()">NullOutputStream</A></B>()</CODE>
    132 
    133 <BR>
    134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
    135 </TR>
    136 </TABLE>
    137 &nbsp;
    138 <!-- ========== METHOD SUMMARY =========== -->
    139 
    140 <A NAME="method_summary"><!-- --></A>
    141 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    142 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    143 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    144 <B>Method Summary</B></FONT></TH>
    145 </TR>
    146 <TR BGCOLOR="white" CLASS="TableRowColor">
    147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    148 <CODE>&nbsp;void</CODE></FONT></TD>
    149 <TD><CODE><B><A HREF="../../../../com/google/common/io/NullOutputStream.html#write(byte[], int, int)">write</A></B>(byte[]&nbsp;b,
    150       int&nbsp;off,
    151       int&nbsp;len)</CODE>
    152 
    153 <BR>
    154 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Discards the specified byte array.</TD>
    155 </TR>
    156 <TR BGCOLOR="white" CLASS="TableRowColor">
    157 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    158 <CODE>&nbsp;void</CODE></FONT></TD>
    159 <TD><CODE><B><A HREF="../../../../com/google/common/io/NullOutputStream.html#write(int)">write</A></B>(int&nbsp;b)</CODE>
    160 
    161 <BR>
    162 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Discards the specified byte.</TD>
    163 </TR>
    164 </TABLE>
    165 &nbsp;<A NAME="methods_inherited_from_class_java.io.OutputStream"><!-- --></A>
    166 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    167 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
    168 <TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></B></TH>
    169 </TR>
    170 <TR BGCOLOR="white" CLASS="TableRowColor">
    171 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#close()" title="class or interface in java.io">close</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#flush()" title="class or interface in java.io">flush</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(byte[])" title="class or interface in java.io">write</A></CODE></TD>
    172 </TR>
    173 </TABLE>
    174 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
    175 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    176 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
    177 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
    178 </TR>
    179 <TR BGCOLOR="white" CLASS="TableRowColor">
    180 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
    181 </TR>
    182 </TABLE>
    183 &nbsp;
    184 <P>
    185 
    186 <!-- ========= CONSTRUCTOR DETAIL ======== -->
    187 
    188 <A NAME="constructor_detail"><!-- --></A>
    189 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    190 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    191 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    192 <B>Constructor Detail</B></FONT></TH>
    193 </TR>
    194 </TABLE>
    195 
    196 <A NAME="NullOutputStream()"><!-- --></A><H3>
    197 NullOutputStream</H3>
    198 <PRE>
    199 public <B>NullOutputStream</B>()</PRE>
    200 <DL>
    201 </DL>
    202 
    203 <!-- ============ METHOD DETAIL ========== -->
    204 
    205 <A NAME="method_detail"><!-- --></A>
    206 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    207 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    208 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    209 <B>Method Detail</B></FONT></TH>
    210 </TR>
    211 </TABLE>
    212 
    213 <A NAME="write(int)"><!-- --></A><H3>
    214 write</H3>
    215 <PRE>
    216 public void <B>write</B>(int&nbsp;b)</PRE>
    217 <DL>
    218 <DD>Discards the specified byte.
    219 <P>
    220 <DD><DL>
    221 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(int)" title="class or interface in java.io">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></DL>
    222 </DD>
    223 <DD><DL>
    224 </DL>
    225 </DD>
    226 </DL>
    227 <HR>
    228 
    229 <A NAME="write(byte[], int, int)"><!-- --></A><H3>
    230 write</H3>
    231 <PRE>
    232 public void <B>write</B>(byte[]&nbsp;b,
    233                   int&nbsp;off,
    234                   int&nbsp;len)</PRE>
    235 <DL>
    236 <DD>Discards the specified byte array.
    237 <P>
    238 <DD><DL>
    239 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(byte[], int, int)" title="class or interface in java.io">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></DL>
    240 </DD>
    241 <DD><DL>
    242 </DL>
    243 </DD>
    244 </DL>
    245 <!-- ========= END OF CLASS DATA ========= -->
    246 <HR>
    247 
    248 
    249 <!-- ======= START OF BOTTOM NAVBAR ====== -->
    250 <A NAME="navbar_bottom"><!-- --></A>
    251 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
    252 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
    253 <TR>
    254 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
    255 <A NAME="navbar_bottom_firstrow"><!-- --></A>
    256 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    257   <TR ALIGN="center" VALIGN="top">
    258   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    259   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    260   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    261   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/NullOutputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
    262   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    263   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    264   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    265   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    266   </TR>
    267 </TABLE>
    268 </TD>
    269 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
    270 </EM>
    271 </TD>
    272 </TR>
    273 
    274 <TR>
    275 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    276 &nbsp;<A HREF="../../../../com/google/common/io/LineReader.html" title="class in com.google.common.io"><B>PREV CLASS</B></A>&nbsp;
    277 &nbsp;<A HREF="../../../../com/google/common/io/OutputSupplier.html" title="interface in com.google.common.io"><B>NEXT CLASS</B></A></FONT></TD>
    278 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    279   <A HREF="../../../../index.html?com/google/common/io/NullOutputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
    280 &nbsp;<A HREF="NullOutputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
    281 &nbsp;<SCRIPT type="text/javascript">
    282   <!--
    283   if(window==top) {
    284     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
    285   }
    286   //-->
    287 </SCRIPT>
    288 <NOSCRIPT>
    289   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
    290 </NOSCRIPT>
    291 
    292 
    293 </FONT></TD>
    294 </TR>
    295 <TR>
    296 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    297   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
    298 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    299 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
    300 </TR>
    301 </TABLE>
    302 <A NAME="skip-navbar_bottom"></A>
    303 <!-- ======== END OF BOTTOM NAVBAR ======= -->
    304 
    305 <HR>
    306 
    307 </BODY>
    308 </HTML>
    309