亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? logreader.html

?? 網絡爬蟲開源代碼
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<a name="290" href="#290">290</a> <em>     *</em><a name="291" href="#291">291</a> <em>     * @param aFileName The filename of the log/file</em><a name="292" href="#292">292</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="293" href="#293">293</a> <em>     * @return The line number (counting from 1, not zero) of the first line</em><a name="294" href="#294">294</a> <em>     *         that matches the given regular expression. -1 is returned if no</em><a name="295" href="#295">295</a> <em>     *         line matches the regular expression. -1 also is returned if </em><a name="296" href="#296">296</a> <em>     *         errors occur (file not found, io exception etc.)</em><a name="297" href="#297">297</a> <em>     */</em><a name="298" href="#298">298</a>     <strong>public</strong> <strong>static</strong> <strong>int</strong> findFirstLineContainingFromSeries(String aFileName, <a name="299" href="#299">299</a>                                                         String regExpr)<a name="300" href="#300">300</a>     {<a name="301" href="#301">301</a>         <strong>try</strong> {<a name="302" href="#302">302</a>             <strong>return</strong> findFirstLineContaining(seriesReader(aFileName), regExpr);<a name="303" href="#303">303</a>         } <strong>catch</strong> (IOException e) {<a name="304" href="#304">304</a>             e.printStackTrace();<a name="305" href="#305">305</a>             <strong>return</strong> -1;<a name="306" href="#306">306</a>         }<a name="307" href="#307">307</a>     }<a name="308" href="#308">308</a> <a name="309" href="#309">309</a>     <em>/**<em>*</em></em><a name="310" href="#310">310</a> <em>     * Return the line number of the first line in the</em><a name="311" href="#311">311</a> <em>     * log/file that matches a given regular expression.</em><a name="312" href="#312">312</a> <em>     *</em><a name="313" href="#313">313</a> <em>     * @param reader The reader of the log/file</em><a name="314" href="#314">314</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="315" href="#315">315</a> <em>     * @return The line number (counting from 1, not zero) of the first line</em><a name="316" href="#316">316</a> <em>     *         that matches the given regular expression. -1 is returned if no</em><a name="317" href="#317">317</a> <em>     *         line matches the regular expression. -1 also is returned if </em><a name="318" href="#318">318</a> <em>     *         errors occur (file not found, io exception etc.)</em><a name="319" href="#319">319</a> <em>     */</em><a name="320" href="#320">320</a>     <strong>public</strong> <strong>static</strong> <strong>int</strong> findFirstLineContaining(InputStreamReader reader, <a name="321" href="#321">321</a>                                               String regExpr)<a name="322" href="#322">322</a>     {<a name="323" href="#323">323</a>         Pattern p = Pattern.compile(regExpr);<a name="324" href="#324">324</a> <a name="325" href="#325">325</a>         <strong>try</strong>{<a name="326" href="#326">326</a>             BufferedReader bf = <strong>new</strong> BufferedReader(reader, 8192);<a name="327" href="#327">327</a> <a name="328" href="#328">328</a>             String line = <strong>null</strong>;<a name="329" href="#329">329</a>             <strong>int</strong> i = 1;<a name="330" href="#330">330</a>             <strong>while</strong> ((line = bf.readLine()) != <strong>null</strong>) {<a name="331" href="#331">331</a>                 <strong>if</strong>(p.matcher(line).matches()){<a name="332" href="#332">332</a>                     <em class="comment">// Found a match</em><a name="333" href="#333">333</a>                     <strong>return</strong> i;<a name="334" href="#334">334</a>                 }<a name="335" href="#335">335</a>                 i++;<a name="336" href="#336">336</a>             }<a name="337" href="#337">337</a>         } <strong>catch</strong>(IOException e){<a name="338" href="#338">338</a>             e.printStackTrace();<a name="339" href="#339">339</a>         }<a name="340" href="#340">340</a>         <strong>return</strong> -1;<a name="341" href="#341">341</a>     }<a name="342" href="#342">342</a> <a name="343" href="#343">343</a>     <em>/**<em>*</em></em><a name="344" href="#344">344</a> <em>     * Returns all lines in a log/file matching a given regular expression.  </em><a name="345" href="#345">345</a> <em>     * Possible to get lines immediately following the matched line.  Also </em><a name="346" href="#346">346</a> <em>     * possible to have each line prepended by it's line number.</em><a name="347" href="#347">347</a> <em>     *</em><a name="348" href="#348">348</a> <em>     * @param aFileName The filename of the log/file</em><a name="349" href="#349">349</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="350" href="#350">350</a> <em>     * @param addLines How many lines (in addition to the matched line) to add. </em><a name="351" href="#351">351</a> <em>     *                 A value less then 1 will mean that only the matched line </em><a name="352" href="#352">352</a> <em>     *                 will be included. If another matched line is hit before </em><a name="353" href="#353">353</a> <em>     *                 we reach this limit it will be included and this counter</em><a name="354" href="#354">354</a> <em>     *                 effectively reset for it.</em><a name="355" href="#355">355</a> <em>     * @param prependLineNumbers If true, then each line will be prepended by </em><a name="356" href="#356">356</a> <em>     *                           it's line number in the file.</em><a name="357" href="#357">357</a> <em>     * @param skipFirstMatches The first number of matches up to this value will</em><a name="358" href="#358">358</a> <em>     *                         be skipped over.</em><a name="359" href="#359">359</a> <em>     * @param numberOfMatches Once past matches that are to be skipped this many</em><a name="360" href="#360">360</a> <em>     *                        matches will be added to the return value. A</em><a name="361" href="#361">361</a> <em>     *                        value of 0 will cause all matching lines to be</em><a name="362" href="#362">362</a> <em>     *                        included.</em><a name="363" href="#363">363</a> <em>     * @return An array of two strings is returned. At index 0 tall lines in a</em><a name="364" href="#364">364</a> <em>     *         log/file matching a given regular expression is located.</em><a name="365" href="#365">365</a> <em>     *         At index 1 there is an informational string about how large a</em><a name="366" href="#366">366</a> <em>     *         segment of the file is being returned.</em><a name="367" href="#367">367</a> <em>     *         Null is returned if errors occur (file not found or io exception)</em><a name="368" href="#368">368</a> <em>     *         If a PatternSyntaxException occurs, it's error message will be</em><a name="369" href="#369">369</a> <em>     *         returned and the informational string will be empty (not null).</em><a name="370" href="#370">370</a> <em>     */</em><a name="371" href="#371">371</a>     <strong>public</strong> <strong>static</strong> String[] getByRegExpr(String aFileName,<a name="372" href="#372">372</a>                                         String regExpr,<a name="373" href="#373">373</a>                                         <strong>int</strong> addLines,<a name="374" href="#374">374</a>                                         <strong>boolean</strong> prependLineNumbers,<a name="375" href="#375">375</a>                                         <strong>int</strong> skipFirstMatches,<a name="376" href="#376">376</a>                                         <strong>int</strong> numberOfMatches) {<a name="377" href="#377">377</a>         <strong>try</strong> {<a name="378" href="#378">378</a>             File f = <strong>new</strong> File(aFileName);<a name="379" href="#379">379</a>             <strong>return</strong> getByRegExpr(<a name="380" href="#380">380</a>                     <strong>new</strong> FileReader(f), <a name="381" href="#381">381</a>                     regExpr, <a name="382" href="#382">382</a>                     addLines, <a name="383" href="#383">383</a>                     prependLineNumbers,<a name="384" href="#384">384</a>                     skipFirstMatches,<a name="385" href="#385">385</a>                     numberOfMatches,<a name="386" href="#386">386</a>                     f.length());<a name="387" href="#387">387</a>         } <strong>catch</strong> (FileNotFoundException e) {<a name="388" href="#388">388</a>             e.printStackTrace();<a name="389" href="#389">389</a>             <strong>return</strong> <strong>null</strong>;<a name="390" href="#390">390</a>         }<a name="391" href="#391">391</a>     }<a name="392" href="#392">392</a> <a name="393" href="#393">393</a>     <em>/**<em>*</em></em><a name="394" href="#394">394</a> <em>     * Returns all lines in a log/file matching a given regular expression.  </em><a name="395" href="#395">395</a> <em>     * Possible to get lines immediately following the matched line.  Also </em><a name="396" href="#396">396</a> <em>     * possible to have each line prepended by it's line number.</em><a name="397" href="#397">397</a> <em>     *</em><a name="398" href="#398">398</a> <em>     * @param aFileName The filename of the log/file</em><a name="399" href="#399">399</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="400" href="#400">400</a> <em>     * @param addLines How many lines (in addition to the matched line) to add. </em><a name="401" href="#401">401</a> <em>     *                 A value less then 1 will mean that only the matched line </em><a name="402" href="#402">402</a> <em>     *                 will be included. If another matched line is hit before </em><a name="403" href="#403">403</a> <em>     *                 we reach this limit it will be included and this counter</em><a name="404" href="#404">404</a> <em>     *                 effectively reset for it.</em><a name="405" href="#405">405</a> <em>     * @param prependLineNumbers If true, then each line will be prepended by </em><a name="406" href="#406">406</a> <em>     *                           it's line number in the file.</em><a name="407" href="#407">407</a> <em>     * @param skipFirstMatches The first number of matches up to this value will</em><a name="408" href="#408">408</a> <em>     *                         be skipped over.</em><a name="409" href="#409">409</a> <em>     * @param numberOfMatches Once past matches that are to be skipped this many</em><a name="410" href="#410">410</a> <em>     *                        matches will be added to the return value. A</em><a name="411" href="#411">411</a> <em>     *                        value of 0 will cause all matching lines to be</em><a name="412" href="#412">412</a> <em>     *                        included.</em><a name="413" href="#413">413</a> <em>     * @return An array of two strings is returned. At index 0 tall lines in a</em><a name="414" href="#414">414</a> <em>     *         log/file matching a given regular expression is located.</em><a name="415" href="#415">415</a> <em>     *         At index 1 there is an informational string about how large a</em><a name="416" href="#416">416</a> <em>     *         segment of the file is being returned.</em><a name="417" href="#417">417</a> <em>     *         Null is returned if errors occur (file not found or io exception)</em><a name="418" href="#418">418</a> <em>     *         If a PatternSyntaxException occurs, it's error message will be</em><a name="419" href="#419">419</a> <em>     *         returned and the informational string will be empty (not null).</em><a name="420" href="#420">420</a> <em>     */</em><a name="421" href="#421">421</a>     <strong>public</strong> <strong>static</strong> String[] getByRegExprFromSeries(String aFileName,<a name="422" href="#422">422</a>                                       String regExpr,<a name="423" href="#423">423</a>                                       <strong>int</strong> addLines,<a name="424" href="#424">424</a>                                       <strong>boolean</strong> prependLineNumbers,<a name="425" href="#425">425</a>                                       <strong>int</strong> skipFirstMatches,<a name="426" href="#426">426</a>                                       <strong>int</strong> numberOfMatches) {<a name="427" href="#427">427</a>         <strong>try</strong> {<a name="428" href="#428">428</a>             File f = <strong>new</strong> File(aFileName);<a name="429" href="#429">429</a>             <strong>return</strong> getByRegExpr(<a name="430" href="#430">430</a>                     seriesReader(aFileName), <a name="431" href="#431">431</a>                     regExpr, <a name="432" href="#432">432</a>                     addLines, <a name="433" href="#433">433</a>                     prependLineNumbers,<a name="434" href="#434">434</a>                     skipFirstMatches,<a name="435" href="#435">435</a>                     numberOfMatches,<a name="436" href="#436">436</a>                     f.length());<a name="437" href="#437">437</a>         } <strong>catch</strong> (IOException e) {<a name="438" href="#438">438</a>             e.printStackTrace();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丝袜国产日韩另类美女| 日本精品一区二区三区高清| 亚洲人xxxx| 亚洲色图另类专区| 国产盗摄一区二区| 精品久久久网站| 老司机精品视频一区二区三区| www.视频一区| 91麻豆免费在线观看| 欧美亚洲一区二区在线观看| 成人动漫一区二区在线| 成人免费观看视频| 一本色道久久综合亚洲91| 91.xcao| 日韩欧美色综合网站| 欧美国产日韩在线观看| 亚洲精品中文字幕乱码三区| 日韩电影在线一区二区三区| 国内欧美视频一区二区 | 奇米亚洲午夜久久精品| 国产成人午夜高潮毛片| 欧美夫妻性生活| 国产精品灌醉下药二区| 精品一二线国产| 欧美一级二级三级蜜桃| 亚洲男同性视频| 国产精品系列在线播放| 日韩一区二区影院| 亚洲国产精品久久人人爱| 成人黄色国产精品网站大全在线免费观看| 色八戒一区二区三区| 亚洲欧洲99久久| 国产91色综合久久免费分享| 久久久久久黄色| 玖玖九九国产精品| 欧美一级搡bbbb搡bbbb| 日韩av网站免费在线| 91麻豆精品久久久久蜜臀| 亚洲成人激情自拍| 欧美狂野另类xxxxoooo| 三级一区在线视频先锋| 337p亚洲精品色噜噜狠狠| 日本不卡一区二区| 欧美大片日本大片免费观看| 免费成人结看片| 久久综合色8888| 99精品国产热久久91蜜凸| 亚洲男人都懂的| 欧美精品99久久久**| 久久精品99国产精品| 精品av综合导航| 91丝袜美女网| 精品一区二区三区在线播放视频| 欧美成人一区二区三区片免费| 国产在线乱码一区二区三区| 欧美激情一区二区在线| 在线观看日韩av先锋影音电影院| 亚洲午夜精品在线| 国产精品午夜电影| 欧美系列在线观看| 国产激情一区二区三区桃花岛亚洲| 成人免费视频在线观看| 欧美视频一区在线| 成人av午夜影院| 久久99精品久久只有精品| 亚洲免费电影在线| 久久久夜色精品亚洲| 91精品啪在线观看国产60岁| 成人性视频免费网站| 男女激情视频一区| 丝袜美腿亚洲色图| 午夜精品久久久久影视| 最新欧美精品一区二区三区| 久久精品一区四区| 久久综合久久综合九色| 日韩一级成人av| 91精品国产色综合久久不卡蜜臀| 91黄视频在线| 91丨九色porny丨蝌蚪| 成人黄色软件下载| 成人高清av在线| 国产河南妇女毛片精品久久久 | 丁香天五香天堂综合| 日韩高清在线一区| 丝袜美腿亚洲色图| 午夜视频在线观看一区| 亚洲在线视频一区| 亚洲欧美日本韩国| 亚洲欧洲中文日韩久久av乱码| 精品人伦一区二区色婷婷| 欧美一级欧美一级在线播放| 色噜噜夜夜夜综合网| 99v久久综合狠狠综合久久| www.日韩av| 色哟哟国产精品免费观看| 91女厕偷拍女厕偷拍高清| 91小视频免费看| 91黄色免费网站| 91网站最新地址| 欧美三级视频在线播放| aaa国产一区| 欧美色图第一页| 欧美精品久久一区二区三区| 欧美一区二区三区思思人| 精品国内二区三区| 亚洲欧美一区二区三区久本道91| 亚洲欧美日韩在线播放| 蜜臀av性久久久久蜜臀aⅴ四虎 | 免费人成在线不卡| 国产福利一区二区三区| 91麻豆精品秘密| 欧美一区二区免费观在线| 久久综合久久综合九色| 亚洲欧美国产77777| 蜜臀av一级做a爰片久久| 粉嫩蜜臀av国产精品网站| 欧美精品丝袜中出| 91麻豆精品91久久久久久清纯| 日韩一级高清毛片| 亚洲人成人一区二区在线观看| 捆绑调教一区二区三区| 色婷婷亚洲综合| 成人欧美一区二区三区在线播放| 轻轻草成人在线| 欧美色偷偷大香| 亚洲同性gay激情无套| 极品少妇一区二区三区精品视频| 欧美中文字幕久久| 亚洲免费视频中文字幕| 成人av电影在线播放| 欧美精品一区二区三区在线播放| 亚洲永久免费av| 欧美日韩精品高清| 欧美国产精品中文字幕| 国产一区二区不卡| 精品国产乱码久久久久久闺蜜| 美女视频免费一区| 精品国产91乱码一区二区三区 | 91免费版在线| 一级中文字幕一区二区| 在线欧美小视频| 午夜视频一区在线观看| 不卡的av电影| 亚洲va欧美va人人爽午夜| 9l国产精品久久久久麻豆| 久久福利资源站| 中文字幕精品一区| 97aⅴ精品视频一二三区| 亚洲日本丝袜连裤袜办公室| 在线欧美日韩国产| 蜜臀av国产精品久久久久| 久久久久久97三级| 97se亚洲国产综合在线| 天天射综合影视| 国产欧美日韩在线| 一道本成人在线| 国产乱码精品一品二品| 亚洲精品老司机| 精品国产自在久精品国产| 99久久婷婷国产综合精品电影 | 69久久夜色精品国产69蝌蚪网| 蜜臀久久久久久久| 亚洲日本va在线观看| 日韩无一区二区| 94-欧美-setu| 精品中文字幕一区二区| 久久嫩草精品久久久久| 91成人网在线| 国内精品伊人久久久久av影院| 国产精品对白交换视频 | 欧美中文字幕久久| 丁香六月综合激情| 久久精品国产免费看久久精品| 国产日韩一级二级三级| 这里只有精品免费| eeuss鲁片一区二区三区在线观看| 日韩在线一区二区三区| 国产精品亲子伦对白| 久久一区二区三区四区| 日韩午夜小视频| 欧美久久久久久蜜桃| 在线观看网站黄不卡| 99综合电影在线视频| heyzo一本久久综合| 另类小说综合欧美亚洲| 日本中文一区二区三区| 夜夜亚洲天天久久| 亚洲精品一卡二卡| 亚洲电影一级片| 天天综合天天综合色| 全部av―极品视觉盛宴亚洲| 蜜桃精品在线观看| 国产成人免费在线视频| 99精品国产99久久久久久白柏| 国产v日产∨综合v精品视频| 成人黄色小视频| 欧美精品色综合| 国产午夜久久久久| 亚洲婷婷在线视频| 偷拍自拍另类欧美|