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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? logreader.html

?? 網(wǎng)絡(luò)爬蟲開源代碼
?? HTML
?? 第 1 頁 / 共 5 頁
字號(hào):
<a name="439" href="#439">439</a>             <strong>return</strong> <strong>null</strong>;<a name="440" href="#440">440</a>         }<a name="441" href="#441">441</a>     }<a name="442" href="#442">442</a> <a name="443" href="#443">443</a>     <em>/**<em>*</em></em><a name="444" href="#444">444</a> <em>     * Returns all lines in a log/file matching a given regular expression.  </em><a name="445" href="#445">445</a> <em>     * Possible to get lines immediately following the matched line.  Also </em><a name="446" href="#446">446</a> <em>     * possible to have each line prepended by it's line number.</em><a name="447" href="#447">447</a> <em>     *</em><a name="448" href="#448">448</a> <em>     * @param reader The reader of the log/file</em><a name="449" href="#449">449</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="450" href="#450">450</a> <em>     * @param addLines How many lines (in addition to the matched line) to add. </em><a name="451" href="#451">451</a> <em>     *                 A value less then 1 will mean that only the matched line </em><a name="452" href="#452">452</a> <em>     *                 will be included. If another matched line is hit before </em><a name="453" href="#453">453</a> <em>     *                 we reach this limit it will be included and this counter</em><a name="454" href="#454">454</a> <em>     *                 effectively reset for it.</em><a name="455" href="#455">455</a> <em>     * @param prependLineNumbers If true, then each line will be prepended by </em><a name="456" href="#456">456</a> <em>     *                           it's line number in the file.</em><a name="457" href="#457">457</a> <em>     * @param skipFirstMatches The first number of matches up to this value will</em><a name="458" href="#458">458</a> <em>     *                         be skipped over.</em><a name="459" href="#459">459</a> <em>     * @param numberOfMatches Once past matches that are to be skipped this many</em><a name="460" href="#460">460</a> <em>     *                        matches will be added to the return value. A</em><a name="461" href="#461">461</a> <em>     *                        value of 0 will cause all matching lines to be</em><a name="462" href="#462">462</a> <em>     *                        included.</em><a name="463" href="#463">463</a> <em>     * @param logsize Size of the log in bytes</em><a name="464" href="#464">464</a> <em>     * @return An array of two strings is returned. At index 0 all lines in a</em><a name="465" href="#465">465</a> <em>     *         log/file matching a given regular expression is located.</em><a name="466" href="#466">466</a> <em>     *         At index 1 there is an informational string about how large a</em><a name="467" href="#467">467</a> <em>     *         segment of the file is being returned.</em><a name="468" href="#468">468</a> <em>     *         Null is returned if errors occur (file not found or io exception)</em><a name="469" href="#469">469</a> <em>     *         If a PatternSyntaxException occurs, it's error message will be</em><a name="470" href="#470">470</a> <em>     *         returned and the informational string will be empty (not null).</em><a name="471" href="#471">471</a> <em>     */</em><a name="472" href="#472">472</a>     <strong>public</strong> <strong>static</strong> String[] getByRegExpr(InputStreamReader reader,<a name="473" href="#473">473</a>                                       String regExpr,<a name="474" href="#474">474</a>                                       <strong>int</strong> addLines,<a name="475" href="#475">475</a>                                       <strong>boolean</strong> prependLineNumbers,<a name="476" href="#476">476</a>                                       <strong>int</strong> skipFirstMatches,<a name="477" href="#477">477</a>                                       <strong>int</strong> numberOfMatches,<a name="478" href="#478">478</a>                                       <strong>long</strong> logsize) {<a name="479" href="#479">479</a>         StringBuffer ret = <strong>new</strong> StringBuffer();<a name="480" href="#480">480</a>         String info = <span class="string">""</span>;<a name="481" href="#481">481</a> <a name="482" href="#482">482</a>         <strong>try</strong>{<a name="483" href="#483">483</a>             Pattern p = Pattern.compile(regExpr);<a name="484" href="#484">484</a>             BufferedReader bf = <strong>new</strong> BufferedReader(reader, 8192);<a name="485" href="#485">485</a> <a name="486" href="#486">486</a>             String line = <strong>null</strong>;<a name="487" href="#487">487</a>             <strong>int</strong> i = 1;<a name="488" href="#488">488</a>             <strong>boolean</strong> doAdd = false;<a name="489" href="#489">489</a>             <strong>int</strong> addCount = 0;<a name="490" href="#490">490</a>             <strong>long</strong> linesMatched = 0;<a name="491" href="#491">491</a>             <strong>while</strong> ((line = bf.readLine()) != <strong>null</strong>) {<a name="492" href="#492">492</a>                 <strong>if</strong>(p.matcher(line).matches()){<a name="493" href="#493">493</a>                     <em class="comment">// Found a match</em><a name="494" href="#494">494</a>                     <strong>if</strong>(numberOfMatches > 0 &amp;&amp;<a name="495" href="#495">495</a>                             linesMatched >= skipFirstMatches + numberOfMatches){<a name="496" href="#496">496</a>                         <em class="comment">// Ok, we are done.</em><a name="497" href="#497">497</a>                         <strong>break</strong>;<a name="498" href="#498">498</a>                     }<a name="499" href="#499">499</a>                     linesMatched++;<a name="500" href="#500">500</a>                     <strong>if</strong>(linesMatched > skipFirstMatches){<a name="501" href="#501">501</a>                         <strong>if</strong>(prependLineNumbers){<a name="502" href="#502">502</a>                             ret.append(i);<a name="503" href="#503">503</a>                             ret.append(<span class="string">". "</span>);<a name="504" href="#504">504</a>                         }<a name="505" href="#505">505</a>                         ret.append(line);<a name="506" href="#506">506</a>                         ret.append(<span class="string">"\n"</span>);<a name="507" href="#507">507</a>                         doAdd = <strong>true</strong>;<a name="508" href="#508">508</a>                         addCount = 0;<a name="509" href="#509">509</a>                     }<a name="510" href="#510">510</a>                 } <strong>else</strong> <strong>if</strong>(doAdd) {<a name="511" href="#511">511</a>                     <strong>if</strong>(addCount &lt; addLines){<a name="512" href="#512">512</a>                         <em class="comment">//Ok, still within addLines</em><a name="513" href="#513">513</a>                         linesMatched++;<a name="514" href="#514">514</a>                         <strong>if</strong>(prependLineNumbers){<a name="515" href="#515">515</a>                             ret.append(i);<a name="516" href="#516">516</a>                             ret.append(<span class="string">". "</span>);<a name="517" href="#517">517</a>                         }<a name="518" href="#518">518</a>                         ret.append(line);<a name="519" href="#519">519</a>                         ret.append(<span class="string">"\n"</span>);<a name="520" href="#520">520</a>                     }<strong>else</strong>{<a name="521" href="#521">521</a>                         doAdd = false;<a name="522" href="#522">522</a>                         addCount = 0;<a name="523" href="#523">523</a>                     }<a name="524" href="#524">524</a>                 }<a name="525" href="#525">525</a>                 i++;<a name="526" href="#526">526</a>             }<a name="527" href="#527">527</a>             info = buildDisplayingHeader(ret.length(), logsize);<a name="528" href="#528">528</a>         }<strong>catch</strong>(FileNotFoundException e){<a name="529" href="#529">529</a>             <strong>return</strong> <strong>null</strong>;<a name="530" href="#530">530</a>         }<strong>catch</strong>(IOException e){<a name="531" href="#531">531</a>             e.printStackTrace();<a name="532" href="#532">532</a>             <strong>return</strong> <strong>null</strong>;<a name="533" href="#533">533</a>         }<strong>catch</strong>(PatternSyntaxException e){<a name="534" href="#534">534</a>             ret = <strong>new</strong> StringBuffer(e.getMessage());<a name="535" href="#535">535</a>         }<a name="536" href="#536">536</a>         String[] tmp = {ret.toString(),info};<a name="537" href="#537">537</a>         <strong>return</strong> tmp;<a name="538" href="#538">538</a>     }<a name="539" href="#539">539</a> <a name="540" href="#540">540</a>     <em>/**<em>*</em></em><a name="541" href="#541">541</a> <em>     * Returns all lines in a log/file matching a given regular expression.  </em><a name="542" href="#542">542</a> <em>     * Possible to get lines immediately following the matched line.  Also </em><a name="543" href="#543">543</a> <em>     * possible to have each line prepended by it's line number.</em><a name="544" href="#544">544</a> <em>     *</em><a name="545" href="#545">545</a> <em>     * @param aFileName The filename of the log/file</em><a name="546" href="#546">546</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="547" href="#547">547</a> <em>     * @param addLines Any lines following a match that &lt;b>begin&lt;/b> with this </em><a name="548" href="#548">548</a> <em>     *                 string will also be included. We will stop including new </em><a name="549" href="#549">549</a> <em>     *                 lines once we hit the first that does not match.</em><a name="550" href="#550">550</a> <em>     * @param prependLineNumbers If true, then each line will be prepended by </em><a name="551" href="#551">551</a> <em>     *                           it's line number in the file.</em><a name="552" href="#552">552</a> <em>     * @param skipFirstMatches The first number of matches up to this value will</em><a name="553" href="#553">553</a> <em>     *                         be skipped over.</em><a name="554" href="#554">554</a> <em>     * @param numberOfMatches Once past matches that are to be skipped this many</em><a name="555" href="#555">555</a> <em>     *                        matches will be added to the return value. A</em><a name="556" href="#556">556</a> <em>     *                        value of 0 will cause all matching lines to be</em><a name="557" href="#557">557</a> <em>     *                        included.</em><a name="558" href="#558">558</a> <em>     * @return An array of two strings is returned. At index 0 tall lines in a</em><a name="559" href="#559">559</a> <em>     *         log/file matching a given regular expression is located.</em><a name="560" href="#560">560</a> <em>     *         At index 1 there is an informational string about how large a</em><a name="561" href="#561">561</a> <em>     *         segment of the file is being returned.</em><a name="562" href="#562">562</a> <em>     *         Null is returned if errors occur (file not found or io exception)</em><a name="563" href="#563">563</a> <em>     *         If a PatternSyntaxException occurs, it's error message will be</em><a name="564" href="#564">564</a> <em>     *         returned and the informational string will be empty (not null).</em><a name="565" href="#565">565</a> <em>     */</em><a name="566" href="#566">566</a>     <strong>public</strong> <strong>static</strong> String[] getByRegExpr(String aFileName, <a name="567" href="#567">567</a>                                         String regExpr, <a name="568" href="#568">568</a>                                         String addLines, <a name="569" href="#569">569</a>                                         <strong>boolean</strong> prependLineNumbers,<a name="570" href="#570">570</a>                                         <strong>int</strong> skipFirstMatches,<a name="571" href="#571">571</a>                                         <strong>int</strong> numberOfMatches){<a name="572" href="#572">572</a>         <strong>try</strong> {<a name="573" href="#573">573</a>             File f = <strong>new</strong> File(aFileName);<a name="574" href="#574">574</a>             <strong>return</strong> getByRegExpr(<a name="575" href="#575">575</a>                     <strong>new</strong> FileReader(f),<a name="576" href="#576">576</a>                     regExpr,<a name="577" href="#577">577</a>                     addLines,<a name="578" href="#578">578</a>                     prependLineNumbers,<a name="579" href="#579">579</a>                     skipFirstMatches,<a name="580" href="#580">580</a>                     numberOfMatches,<a name="581" href="#581">581</a>                     f.length());<a name="582" href="#582">582</a>         } <strong>catch</strong> (FileNotFoundException e) {<a name="583" href="#583">583</a>             e.printStackTrace();<a name="584" href="#584">584</a>             <strong>return</strong> <strong>null</strong>;<a name="585" href="#585">585</a>         }<a name="586" href="#586">586</a>     }<a name="587" href="#587">587</a> 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产中文字幕精品| 精品视频一区二区三区免费| 国产精品丝袜在线| 欧美在线免费观看视频| 老司机午夜精品| 亚洲精品视频自拍| 欧美v日韩v国产v| 成人免费高清视频| 亚洲免费观看高清完整| 日韩欧美精品三级| 欧美视频一区在线| 91免费国产在线观看| 国内精品伊人久久久久av影院| 亚洲天堂a在线| 国产欧美日韩在线| 久久在线观看免费| 日韩一区二区在线观看视频播放| 91国偷自产一区二区三区观看| 国产69精品久久久久毛片| 免费xxxx性欧美18vr| 午夜影院久久久| 婷婷综合在线观看| 亚洲国产成人91porn| 亚洲激情在线播放| 一区二区三区波多野结衣在线观看| 中国色在线观看另类| 久久久亚洲国产美女国产盗摄| 欧美日韩亚洲高清一区二区| 91麻豆国产在线观看| 91福利社在线观看| 色香色香欲天天天影视综合网| www.亚洲在线| 91免费国产视频网站| 欧美挠脚心视频网站| 91精品国产免费久久综合| 日韩欧美卡一卡二| 久久香蕉国产线看观看99| 久久综合久久综合久久综合| 欧美在线不卡视频| 麻豆一区二区99久久久久| 韩国av一区二区三区| 国产成a人亚洲精| 色婷婷香蕉在线一区二区| 777午夜精品免费视频| 日韩免费高清av| 国产欧美日韩不卡| 亚洲精品一二三四区| 亚洲国产日韩一区二区| 久久99精品久久久久久| 成人黄动漫网站免费app| 欧美亚洲一区二区三区四区| 欧美大胆人体bbbb| 国产精品二区一区二区aⅴ污介绍| 一区二区三区精品在线| 久久99最新地址| 在线看国产一区二区| 国产午夜亚洲精品不卡| 午夜日韩在线观看| 99久久婷婷国产综合精品| 91精品国产综合久久香蕉麻豆| 国产精品免费久久久久| 蜜桃视频在线观看一区| 欧美日韩亚洲国产综合| 国产精品美女www爽爽爽| 精品亚洲免费视频| 欧美精品一二三| 亚洲美女视频一区| 9色porny自拍视频一区二区| 精品少妇一区二区三区日产乱码 | 欧美在线免费视屏| 欧日韩精品视频| 国产精品福利一区二区| 成人网页在线观看| 久久综合久久综合久久综合| 蜜桃精品视频在线观看| 制服丝袜日韩国产| 日本欧美一区二区三区乱码| 99精品视频一区二区三区| 国产精品久久久久aaaa| 大白屁股一区二区视频| 国产精品三级电影| av在线播放不卡| 亚洲色图制服丝袜| 日本精品视频一区二区三区| 亚洲综合在线视频| 欧美日韩一区二区电影| 日日夜夜精品视频免费| 欧美日韩三级一区二区| 天天免费综合色| 久久综合狠狠综合久久综合88 | 91色九色蝌蚪| 午夜精品视频一区| 久久久久亚洲蜜桃| 91在线观看美女| 全国精品久久少妇| 国产女人aaa级久久久级| 在线影院国内精品| 国产美女久久久久| 亚洲人成7777| 日韩欧美自拍偷拍| 91亚洲永久精品| 久久国产剧场电影| 亚洲免费av高清| 欧美日韩国产天堂| 亚洲午夜久久久久久久久电影院| 91精品在线麻豆| av在线不卡网| 麻豆精品一区二区| 一区二区三区.www| 国产精品无圣光一区二区| 欧美视频一区二区三区四区 | 青青国产91久久久久久 | 欧美精品一区二区三区久久久| 成人av资源网站| 国产91精品在线观看| 天堂影院一区二区| 亚洲一区二区在线免费看| 26uuu另类欧美| 精品乱码亚洲一区二区不卡| 欧美精品少妇一区二区三区| 91蜜桃在线观看| 91视频在线观看| 99精品欧美一区二区蜜桃免费| 国产精品69久久久久水密桃| 狠狠色狠狠色综合| 久久 天天综合| 国产在线精品一区二区不卡了 | 尤物视频一区二区| 亚洲人成网站精品片在线观看| 国产精品久久久久久久久动漫| 久久久久久免费毛片精品| 亚洲精品一区二区三区在线观看| 欧美xfplay| 欧美一区二区三区日韩| 精品国产免费人成电影在线观看四季| 欧美日韩视频第一区| 日韩午夜av一区| 久久久久成人黄色影片| 久久精品亚洲麻豆av一区二区 | 亚洲精品视频一区二区| 亚洲一区二区高清| 免费在线观看视频一区| 国产另类ts人妖一区二区| 99精品国产99久久久久久白柏| 国产成人超碰人人澡人人澡| 床上的激情91.| 欧美日韩在线播| 久久午夜色播影院免费高清| 国产精品乱码妇女bbbb| 亚洲午夜电影在线观看| 九一九一国产精品| aaa国产一区| 精品欧美一区二区久久| 亚洲最新在线观看| 国产高清在线精品| 在线观看成人免费视频| 中文字幕乱码日本亚洲一区二区| 亚洲图片欧美视频| 色综合久久久久综合体桃花网| 欧美精品 国产精品| 中文字幕在线不卡一区二区三区| 日韩精品一卡二卡三卡四卡无卡 | 国产精品乡下勾搭老头1| 欧美日韩一二三| 国产精品理论片| 国产成人在线网站| 精品久久久久一区二区国产| 亚洲愉拍自拍另类高清精品| 99久久精品国产毛片| 久久久蜜桃精品| 国产在线播放一区| 在线精品视频小说1| 久久久久亚洲综合| 日韩1区2区3区| 337p亚洲精品色噜噜| 亚洲成人精品影院| 日本高清免费不卡视频| 中文字幕亚洲综合久久菠萝蜜| 精久久久久久久久久久| 26uuu欧美| 国产suv精品一区二区三区| 91精品国产综合久久福利| 日韩精品电影在线观看| 日韩一卡二卡三卡四卡| 久久精品国产秦先生| 精品乱人伦小说| 顶级嫩模精品视频在线看| 中文字幕欧美区| 91亚洲精品一区二区乱码| 亚洲男女一区二区三区| 欧美午夜精品一区二区三区| 午夜精品久久一牛影视| 欧美精品一区二区三区四区 | 美国一区二区三区在线播放| 日韩一区二区影院| 懂色一区二区三区免费观看| 国产精品久久777777| 欧美亚洲高清一区二区三区不卡| 亚洲小说欧美激情另类| 久久久久久久久一|