Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5827 amar.kumar 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_26) on Fri Aug 17 13:40:06 IST 2012 -->
6
<TITLE>
7
RegExpScraper (stat4j API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2012-08-17">
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="RegExpScraper (stat4j API)";
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/RegExpScraper.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="../../../../net/sourceforge/stat4j/filter/MetricCollector.html" title="class in net.sourceforge.stat4j.filter"><B>PREV CLASS</B></A>&nbsp;
59
&nbsp;NEXT CLASS</FONT></TD>
60
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61
  <A HREF="../../../../index.html?net/sourceforge/stat4j/filter/RegExpScraper.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62
&nbsp;<A HREF="RegExpScraper.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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
net.sourceforge.stat4j.filter</FONT>
92
<BR>
93
Class RegExpScraper</H2>
94
<PRE>
95
java.lang.Object
96
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sourceforge.stat4j.filter.RegExpScraper</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>RegExpScraper</B><DT>extends java.lang.Object</DL>
101
</PRE>
102
 
103
<P>
104
Name:           RegExpScraper.java
105
 Date:          Sep 4, 2004
106
 Description:
107
 
108
 Class that implements basic scraping logic given a scap pattern 
109
 conforming to standard regular expressions.
110
 
111
 For example:   
112
 
113
 pattern:               
114
 text:
115
 value:
116
<P>
117
 
118
<P>
119
<DL>
120
<DT><B>Author:</B></DT>
121
  <DD>Lara D'Abreo</DD>
122
</DL>
123
<HR>
124
 
125
<P>
126
<!-- =========== FIELD SUMMARY =========== -->
127
 
128
<A NAME="field_summary"><!-- --></A>
129
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132
<B>Field Summary</B></FONT></TH>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#decimalFormat">decimalFormat</A></B></CODE>
138
 
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>protected &nbsp;java.lang.ThreadLocal</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#format">format</A></B></CODE>
146
 
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>protected &nbsp;java.util.Map</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#patterns">patterns</A></B></CODE>
154
 
155
<BR>
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157
</TR>
158
</TABLE>
159
&nbsp;
160
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
161
 
162
<A NAME="constructor_summary"><!-- --></A>
163
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
165
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
166
<B>Constructor Summary</B></FONT></TH>
167
</TR>
168
<TR BGCOLOR="white" CLASS="TableRowColor">
169
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#RegExpScraper()">RegExpScraper</A></B>()</CODE>
170
 
171
<BR>
172
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173
</TR>
174
</TABLE>
175
&nbsp;
176
<!-- ========== METHOD SUMMARY =========== -->
177
 
178
<A NAME="method_summary"><!-- --></A>
179
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
182
<B>Method Summary</B></FONT></TH>
183
</TR>
184
<TR BGCOLOR="white" CLASS="TableRowColor">
185
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186
<CODE>&nbsp;void</CODE></FONT></TD>
187
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#dispose()">dispose</A></B>()</CODE>
188
 
189
<BR>
190
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
191
</TR>
192
<TR BGCOLOR="white" CLASS="TableRowColor">
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194
<CODE>&nbsp;java.util.regex.Pattern</CODE></FONT></TD>
195
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#getPattern(java.lang.String)">getPattern</A></B>(java.lang.String&nbsp;regexp)</CODE>
196
 
197
<BR>
198
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202
<CODE>static&nbsp;void</CODE></FONT></TD>
203
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
204
 
205
<BR>
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210
<CODE>&nbsp;java.lang.Double</CODE></FONT></TD>
211
<TD><CODE><B><A HREF="../../../../net/sourceforge/stat4j/filter/RegExpScraper.html#scrapUserDefinedValue(java.lang.String, java.lang.String)">scrapUserDefinedValue</A></B>(java.lang.String&nbsp;text,
212
                      java.lang.String&nbsp;pattern)</CODE>
213
 
214
<BR>
215
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
216
</TR>
217
</TABLE>
218
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
219
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
220
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
221
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
222
</TR>
223
<TR BGCOLOR="white" CLASS="TableRowColor">
224
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
225
</TR>
226
</TABLE>
227
&nbsp;
228
<P>
229
 
230
<!-- ============ FIELD DETAIL =========== -->
231
 
232
<A NAME="field_detail"><!-- --></A>
233
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
235
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
236
<B>Field Detail</B></FONT></TH>
237
</TR>
238
</TABLE>
239
 
240
<A NAME="decimalFormat"><!-- --></A><H3>
241
decimalFormat</H3>
242
<PRE>
243
protected java.lang.String <B>decimalFormat</B></PRE>
244
<DL>
245
<DL>
246
</DL>
247
</DL>
248
<HR>
249
 
250
<A NAME="patterns"><!-- --></A><H3>
251
patterns</H3>
252
<PRE>
253
protected java.util.Map <B>patterns</B></PRE>
254
<DL>
255
<DL>
256
</DL>
257
</DL>
258
<HR>
259
 
260
<A NAME="format"><!-- --></A><H3>
261
format</H3>
262
<PRE>
263
protected java.lang.ThreadLocal <B>format</B></PRE>
264
<DL>
265
<DL>
266
</DL>
267
</DL>
268
 
269
<!-- ========= CONSTRUCTOR DETAIL ======== -->
270
 
271
<A NAME="constructor_detail"><!-- --></A>
272
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
273
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
274
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
275
<B>Constructor Detail</B></FONT></TH>
276
</TR>
277
</TABLE>
278
 
279
<A NAME="RegExpScraper()"><!-- --></A><H3>
280
RegExpScraper</H3>
281
<PRE>
282
public <B>RegExpScraper</B>()</PRE>
283
<DL>
284
</DL>
285
 
286
<!-- ============ METHOD DETAIL ========== -->
287
 
288
<A NAME="method_detail"><!-- --></A>
289
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
290
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
291
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
292
<B>Method Detail</B></FONT></TH>
293
</TR>
294
</TABLE>
295
 
296
<A NAME="scrapUserDefinedValue(java.lang.String, java.lang.String)"><!-- --></A><H3>
297
scrapUserDefinedValue</H3>
298
<PRE>
299
public java.lang.Double <B>scrapUserDefinedValue</B>(java.lang.String&nbsp;text,
300
                                              java.lang.String&nbsp;pattern)</PRE>
301
<DL>
302
<DD><DL>
303
</DL>
304
</DD>
305
</DL>
306
<HR>
307
 
308
<A NAME="getPattern(java.lang.String)"><!-- --></A><H3>
309
getPattern</H3>
310
<PRE>
311
public final java.util.regex.Pattern <B>getPattern</B>(java.lang.String&nbsp;regexp)</PRE>
312
<DL>
313
<DD><DL>
314
</DL>
315
</DD>
316
</DL>
317
<HR>
318
 
319
<A NAME="dispose()"><!-- --></A><H3>
320
dispose</H3>
321
<PRE>
322
public void <B>dispose</B>()</PRE>
323
<DL>
324
<DD><DL>
325
</DL>
326
</DD>
327
</DL>
328
<HR>
329
 
330
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
331
main</H3>
332
<PRE>
333
public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
334
<DL>
335
<DD><DL>
336
</DL>
337
</DD>
338
</DL>
339
<!-- ========= END OF CLASS DATA ========= -->
340
<HR>
341
 
342
 
343
<!-- ======= START OF BOTTOM NAVBAR ====== -->
344
<A NAME="navbar_bottom"><!-- --></A>
345
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
346
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
347
<TR>
348
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
349
<A NAME="navbar_bottom_firstrow"><!-- --></A>
350
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
351
  <TR ALIGN="center" VALIGN="top">
352
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
353
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
354
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
355
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RegExpScraper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
356
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
357
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
358
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
359
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
360
  </TR>
361
</TABLE>
362
</TD>
363
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
364
</EM>
365
</TD>
366
</TR>
367
 
368
<TR>
369
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
370
&nbsp;<A HREF="../../../../net/sourceforge/stat4j/filter/MetricCollector.html" title="class in net.sourceforge.stat4j.filter"><B>PREV CLASS</B></A>&nbsp;
371
&nbsp;NEXT CLASS</FONT></TD>
372
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
373
  <A HREF="../../../../index.html?net/sourceforge/stat4j/filter/RegExpScraper.html" target="_top"><B>FRAMES</B></A>  &nbsp;
374
&nbsp;<A HREF="RegExpScraper.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
375
&nbsp;<SCRIPT type="text/javascript">
376
  <!--
377
  if(window==top) {
378
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
379
  }
380
  //-->
381
</SCRIPT>
382
<NOSCRIPT>
383
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
384
</NOSCRIPT>
385
 
386
 
387
</FONT></TD>
388
</TR>
389
<TR>
390
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
391
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
392
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
393
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
394
</TR>
395
</TABLE>
396
<A NAME="skip-navbar_bottom"></A>
397
<!-- ======== END OF BOTTOM NAVBAR ======= -->
398
 
399
<HR>
400
 
401
</BODY>
402
</HTML>