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:48:01 PST 2010 --> 6 <TITLE> 7 Uses of Interface com.google.common.io.LineProcessor (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="Uses of Interface com.google.common.io.LineProcessor (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> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 PREV 59 NEXT</FONT></TD> 60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../../../index.html?com/google/common/io//class-useLineProcessor.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="LineProcessor.html" target="_top"><B>NO FRAMES</B></A> 63 <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 </TABLE> 78 <A NAME="skip-navbar_top"></A> 79 <!-- ========= END OF TOP NAVBAR ========= --> 80 81 <HR> 82 <CENTER> 83 <H2> 84 <B>Uses of Interface<br>com.google.common.io.LineProcessor</B></H2> 85 </CENTER> 86 87 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 88 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 89 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 90 Packages that use <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io">LineProcessor</A></FONT></TH> 91 </TR> 92 <TR BGCOLOR="white" CLASS="TableRowColor"> 93 <TD><A HREF="#com.google.common.io"><B>com.google.common.io</B></A></TD> 94 <TD> </TD> 95 </TR> 96 </TABLE> 97 98 <P> 99 <A NAME="com.google.common.io"><!-- --></A> 100 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 101 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 102 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 103 Uses of <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io">LineProcessor</A> in <A HREF="../../../../../com/google/common/io/package-summary.html">com.google.common.io</A></FONT></TH> 104 </TR> 105 </TABLE> 106 107 <P> 108 109 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 110 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 111 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/io/package-summary.html">com.google.common.io</A> with parameters of type <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io">LineProcessor</A></FONT></TH> 112 </TR> 113 <TR BGCOLOR="white" CLASS="TableRowColor"> 114 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 115 <CODE>static 116 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 117 <TR ALIGN="right" VALIGN=""> 118 <TD NOWRAP><FONT SIZE="-1"> 119 <CODE><T> T</CODE></FONT></TD> 120 </TR> 121 </TABLE> 122 </CODE></FONT></TD> 123 <TD><CODE><B>Files.</B><B><A HREF="../../../../../com/google/common/io/Files.html#readLines(java.io.File, java.nio.charset.Charset, com.google.common.io.LineProcessor)">readLines</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> file, 124 <A HREF="http://java.sun.com/javase/6/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</A> charset, 125 <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io">LineProcessor</A><T> callback)</CODE> 126 127 <BR> 128 Streams lines from a <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io"><CODE>File</CODE></A>, stopping when our callback returns 129 false, or we have read all of the lines.</TD> 130 </TR> 131 <TR BGCOLOR="white" CLASS="TableRowColor"> 132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 133 <CODE>static 134 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 135 <TR ALIGN="right" VALIGN=""> 136 <TD NOWRAP><FONT SIZE="-1"> 137 <CODE><R extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Readable.html?is-external=true" title="class or interface in java.lang">Readable</A> & <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>,T> 138 <BR> 139 T</CODE></FONT></TD> 140 </TR> 141 </TABLE> 142 </CODE></FONT></TD> 143 <TD><CODE><B>CharStreams.</B><B><A HREF="../../../../../com/google/common/io/CharStreams.html#readLines(com.google.common.io.InputSupplier, com.google.common.io.LineProcessor)">readLines</A></B>(<A HREF="../../../../../com/google/common/io/InputSupplier.html" title="interface in com.google.common.io">InputSupplier</A><R> supplier, 144 <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io">LineProcessor</A><T> callback)</CODE> 145 146 <BR> 147 Streams lines from a <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Readable.html?is-external=true" title="class or interface in java.lang"><CODE>Readable</CODE></A> and <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io"><CODE>Closeable</CODE></A> object 148 supplied by a factory, stopping when our callback returns false, or we 149 have read all of the lines.</TD> 150 </TR> 151 <TR BGCOLOR="white" CLASS="TableRowColor"> 152 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 153 <CODE>static 154 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 155 <TR ALIGN="right" VALIGN=""> 156 <TD NOWRAP><FONT SIZE="-1"> 157 <CODE><T> T</CODE></FONT></TD> 158 </TR> 159 </TABLE> 160 </CODE></FONT></TD> 161 <TD><CODE><B>Resources.</B><B><A HREF="../../../../../com/google/common/io/Resources.html#readLines(java.net.URL, java.nio.charset.Charset, com.google.common.io.LineProcessor)">readLines</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> url, 162 <A HREF="http://java.sun.com/javase/6/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</A> charset, 163 <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io">LineProcessor</A><T> callback)</CODE> 164 165 <BR> 166 Streams lines from a URL, stopping when our callback returns false, or we 167 have read all of the lines.</TD> 168 </TR> 169 </TABLE> 170 171 <P> 172 <HR> 173 174 175 <!-- ======= START OF BOTTOM NAVBAR ====== --> 176 <A NAME="navbar_bottom"><!-- --></A> 177 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 178 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 179 <TR> 180 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 181 <A NAME="navbar_bottom_firstrow"><!-- --></A> 182 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 183 <TR ALIGN="center" VALIGN="top"> 184 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 185 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 186 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/io/LineProcessor.html" title="interface in com.google.common.io"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 187 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 188 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 189 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 190 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 191 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 192 </TR> 193 </TABLE> 194 </TD> 195 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 196 </EM> 197 </TD> 198 </TR> 199 200 <TR> 201 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 202 PREV 203 NEXT</FONT></TD> 204 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 205 <A HREF="../../../../../index.html?com/google/common/io//class-useLineProcessor.html" target="_top"><B>FRAMES</B></A> 206 <A HREF="LineProcessor.html" target="_top"><B>NO FRAMES</B></A> 207 <SCRIPT type="text/javascript"> 208 <!-- 209 if(window==top) { 210 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 211 } 212 //--> 213 </SCRIPT> 214 <NOSCRIPT> 215 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 216 </NOSCRIPT> 217 218 219 </FONT></TD> 220 </TR> 221 </TABLE> 222 <A NAME="skip-navbar_bottom"></A> 223 <!-- ======== END OF BOTTOM NAVBAR ======= --> 224 225 <HR> 226 227 </BODY> 228 </HTML> 229