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.4.2_06) on Mon Jul 25 11:24:18 JST 2005 --> |
6 |
<TITLE> |
7 |
NodeImpl (estraier) |
8 |
</TITLE> |
9 |
|
10 |
<META NAME="keywords" CONTENT="estraier.NodeImpl class"> |
11 |
|
12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> |
13 |
|
14 |
<SCRIPT type="text/javascript"> |
15 |
function windowTitle() |
16 |
{ |
17 |
parent.document.title="NodeImpl (estraier)"; |
18 |
} |
19 |
</SCRIPT> |
20 |
|
21 |
</HEAD> |
22 |
|
23 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
24 |
|
25 |
|
26 |
<!-- ========= START OF TOP NAVBAR ======= --> |
27 |
<A NAME="navbar_top"><!-- --></A> |
28 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
29 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
30 |
<TR> |
31 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
32 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
33 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
34 |
<TR ALIGN="center" VALIGN="top"> |
35 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
36 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
37 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
40 |
</TR> |
41 |
</TABLE> |
42 |
</TD> |
43 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
44 |
</EM> |
45 |
</TD> |
46 |
</TR> |
47 |
|
48 |
<TR> |
49 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
50 |
<A HREF="../estraier/Node.html" title="interface in estraier"><B>PREV CLASS</B></A> |
51 |
<A HREF="../estraier/NodeResult.html" title="interface in estraier"><B>NEXT CLASS</B></A></FONT></TD> |
52 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
53 |
<A HREF="../index.html" target="_top"><B>FRAMES</B></A> |
54 |
<A HREF="NodeImpl.html" target="_top"><B>NO FRAMES</B></A> |
55 |
<SCRIPT type="text/javascript"> |
56 |
<!-- |
57 |
if(window==top) { |
58 |
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); |
59 |
} |
60 |
//--> |
61 |
</SCRIPT> |
62 |
<NOSCRIPT> |
63 |
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A> |
64 |
</NOSCRIPT> |
65 |
|
66 |
</FONT></TD> |
67 |
</TR> |
68 |
<TR> |
69 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
70 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
71 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
72 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
73 |
</TR> |
74 |
</TABLE> |
75 |
<A NAME="skip-navbar_top"></A> |
76 |
<!-- ========= END OF TOP NAVBAR ========= --> |
77 |
|
78 |
<HR> |
79 |
<!-- ======== START OF CLASS DATA ======== --> |
80 |
<H2> |
81 |
<FONT SIZE="-1"> |
82 |
estraier</FONT> |
83 |
<BR> |
84 |
Class NodeImpl</H2> |
85 |
<PRE> |
86 |
java.lang.Object |
87 |
<IMG SRC="../resources/inherit.gif" ALT="extended by"><B>estraier.NodeImpl</B> |
88 |
</PRE> |
89 |
<DL> |
90 |
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></DD> |
91 |
</DL> |
92 |
<HR> |
93 |
<DL> |
94 |
<DT>public class <B>NodeImpl</B><DT>extends java.lang.Object<DT>implements <A HREF="../estraier/Node.html" title="interface in estraier">Node</A></DL> |
95 |
|
96 |
<P> |
97 |
Implementation of connection to P2P node. |
98 |
<P> |
99 |
|
100 |
<P> |
101 |
<HR> |
102 |
|
103 |
<P> |
104 |
<!-- ======== NESTED CLASS SUMMARY ======== --> |
105 |
|
106 |
|
107 |
<!-- =========== FIELD SUMMARY =========== --> |
108 |
|
109 |
|
110 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
111 |
|
112 |
<A NAME="constructor_summary"><!-- --></A> |
113 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
114 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
115 |
<TD COLSPAN=2><FONT SIZE="+2"> |
116 |
<B>Constructor Summary</B></FONT></TD> |
117 |
</TR> |
118 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
119 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#NodeImpl()">NodeImpl</A></B>()</CODE> |
120 |
|
121 |
<BR> |
122 |
</TD> |
123 |
</TR> |
124 |
</TABLE> |
125 |
|
126 |
<!-- ========== METHOD SUMMARY =========== --> |
127 |
|
128 |
<A NAME="method_summary"><!-- --></A> |
129 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
130 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
131 |
<TD COLSPAN=2><FONT SIZE="+2"> |
132 |
<B>Method Summary</B></FONT></TD> |
133 |
</TR> |
134 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
135 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
136 |
<CODE> int</CODE></FONT></TD> |
137 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#doc_num()">doc_num</A></B>()</CODE> |
138 |
|
139 |
<BR> |
140 |
Get the number of documents.</TD> |
141 |
</TR> |
142 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
143 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
144 |
<CODE> java.lang.String</CODE></FONT></TD> |
145 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#get_doc_attr_by_uri(java.lang.String, java.lang.String)">get_doc_attr_by_uri</A></B>(java.lang.String uri, |
146 |
java.lang.String name)</CODE> |
147 |
|
148 |
<BR> |
149 |
Retrieve the value of an attribute of a document specified by URI</TD> |
150 |
</TR> |
151 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
152 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
153 |
<CODE> java.lang.String</CODE></FONT></TD> |
154 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#get_doc_attr(int, java.lang.String)">get_doc_attr</A></B>(int id, |
155 |
java.lang.String name)</CODE> |
156 |
|
157 |
<BR> |
158 |
Retrieve the value of an attribute of a document.</TD> |
159 |
</TR> |
160 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
161 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
162 |
<CODE> <A HREF="../estraier/Document.html" title="interface in estraier">Document</A></CODE></FONT></TD> |
163 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#get_doc_by_uri(java.lang.String)">get_doc_by_uri</A></B>(java.lang.String uri)</CODE> |
164 |
|
165 |
<BR> |
166 |
Retrieve a document specified by URI.</TD> |
167 |
</TR> |
168 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
169 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
170 |
<CODE> <A HREF="../estraier/Document.html" title="interface in estraier">Document</A></CODE></FONT></TD> |
171 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#get_doc(int)">get_doc</A></B>(int id)</CODE> |
172 |
|
173 |
<BR> |
174 |
Retrieve a document.</TD> |
175 |
</TR> |
176 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
177 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
178 |
<CODE> java.lang.String</CODE></FONT></TD> |
179 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#label()">label</A></B>()</CODE> |
180 |
|
181 |
<BR> |
182 |
Get the label.</TD> |
183 |
</TR> |
184 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
185 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
186 |
<CODE> java.lang.String</CODE></FONT></TD> |
187 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#name()">name</A></B>()</CODE> |
188 |
|
189 |
<BR> |
190 |
Get the name.</TD> |
191 |
</TR> |
192 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
193 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
194 |
<CODE> boolean</CODE></FONT></TD> |
195 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#out_doc_by_uri(java.lang.String)">out_doc_by_uri</A></B>(java.lang.String uri)</CODE> |
196 |
|
197 |
<BR> |
198 |
Remove a document specified by URI.</TD> |
199 |
</TR> |
200 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
201 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
202 |
<CODE> boolean</CODE></FONT></TD> |
203 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#out_doc(int)">out_doc</A></B>(int id)</CODE> |
204 |
|
205 |
<BR> |
206 |
Remove a document.</TD> |
207 |
</TR> |
208 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
209 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
210 |
<CODE> boolean</CODE></FONT></TD> |
211 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#put_doc(estraier.Document)">put_doc</A></B>(<A HREF="../estraier/Document.html" title="interface in estraier">Document</A> doc)</CODE> |
212 |
|
213 |
<BR> |
214 |
Add a document.</TD> |
215 |
</TR> |
216 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
217 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
218 |
<CODE> <A HREF="../estraier/NodeResult.html" title="interface in estraier">NodeResult</A></CODE></FONT></TD> |
219 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#search(estraier.Condition, int)">search</A></B>(<A HREF="../estraier/Condition.html" title="interface in estraier">Condition</A> cond, |
220 |
int depth)</CODE> |
221 |
|
222 |
<BR> |
223 |
Search documents corresponding a condition.</TD> |
224 |
</TR> |
225 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
226 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
227 |
<CODE> void</CODE></FONT></TD> |
228 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#set_auth(java.lang.String, java.lang.String)">set_auth</A></B>(java.lang.String name, |
229 |
java.lang.String password)</CODE> |
230 |
|
231 |
<BR> |
232 |
Set the authentication information.</TD> |
233 |
</TR> |
234 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
235 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
236 |
<CODE> boolean</CODE></FONT></TD> |
237 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#set_link(java.lang.String, java.lang.String, int)">set_link</A></B>(java.lang.String url, |
238 |
java.lang.String label, |
239 |
int credit)</CODE> |
240 |
|
241 |
<BR> |
242 |
Manage a link.</TD> |
243 |
</TR> |
244 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
245 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
246 |
<CODE> void</CODE></FONT></TD> |
247 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#set_proxy(java.lang.String, int)">set_proxy</A></B>(java.lang.String host, |
248 |
int port)</CODE> |
249 |
|
250 |
<BR> |
251 |
Set the proxy information.</TD> |
252 |
</TR> |
253 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
254 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
255 |
<CODE> void</CODE></FONT></TD> |
256 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#set_timeout(int)">set_timeout</A></B>(int msec)</CODE> |
257 |
|
258 |
<BR> |
259 |
Set timeout.</TD> |
260 |
</TR> |
261 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
262 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
263 |
<CODE> void</CODE></FONT></TD> |
264 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#set_url(java.lang.String)">set_url</A></B>(java.lang.String url)</CODE> |
265 |
|
266 |
<BR> |
267 |
Set the URL of a node server.</TD> |
268 |
</TR> |
269 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
270 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
271 |
<CODE> boolean</CODE></FONT></TD> |
272 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#set_user(java.lang.String, int)">set_user</A></B>(java.lang.String name, |
273 |
int mode)</CODE> |
274 |
|
275 |
<BR> |
276 |
Manage a user account.</TD> |
277 |
</TR> |
278 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
279 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
280 |
<CODE> double</CODE></FONT></TD> |
281 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#size()">size</A></B>()</CODE> |
282 |
|
283 |
<BR> |
284 |
Get the size of the datbase of a node.</TD> |
285 |
</TR> |
286 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
287 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
288 |
<CODE> int</CODE></FONT></TD> |
289 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#status()">status</A></B>()</CODE> |
290 |
|
291 |
<BR> |
292 |
Get the status code of the last request.</TD> |
293 |
</TR> |
294 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
295 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
296 |
<CODE> int</CODE></FONT></TD> |
297 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#uri_to_id(java.lang.String)">uri_to_id</A></B>(java.lang.String uri)</CODE> |
298 |
|
299 |
<BR> |
300 |
Get the ID of a document spacified by URI.</TD> |
301 |
</TR> |
302 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
303 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
304 |
<CODE> int</CODE></FONT></TD> |
305 |
<TD><CODE><B><A HREF="../estraier/NodeImpl.html#word_num()">word_num</A></B>()</CODE> |
306 |
|
307 |
<BR> |
308 |
Get the number of unique words.</TD> |
309 |
</TR> |
310 |
</TABLE> |
311 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
312 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
313 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
314 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
315 |
</TR> |
316 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
317 |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
318 |
</TR> |
319 |
</TABLE> |
320 |
|
321 |
<P> |
322 |
|
323 |
<!-- ============ FIELD DETAIL =========== --> |
324 |
|
325 |
|
326 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
327 |
|
328 |
<A NAME="constructor_detail"><!-- --></A> |
329 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
330 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
331 |
<TD COLSPAN=1><FONT SIZE="+2"> |
332 |
<B>Constructor Detail</B></FONT></TD> |
333 |
</TR> |
334 |
</TABLE> |
335 |
|
336 |
<A NAME="NodeImpl()"><!-- --></A><H3> |
337 |
NodeImpl</H3> |
338 |
<PRE> |
339 |
public <B>NodeImpl</B>()</PRE> |
340 |
<DL> |
341 |
</DL> |
342 |
|
343 |
<!-- ============ METHOD DETAIL ========== --> |
344 |
|
345 |
<A NAME="method_detail"><!-- --></A> |
346 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
347 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
348 |
<TD COLSPAN=1><FONT SIZE="+2"> |
349 |
<B>Method Detail</B></FONT></TD> |
350 |
</TR> |
351 |
</TABLE> |
352 |
|
353 |
<A NAME="doc_num()"><!-- --></A><H3> |
354 |
doc_num</H3> |
355 |
<PRE> |
356 |
public int <B>doc_num</B>()</PRE> |
357 |
<DL> |
358 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
359 |
<DD>Get the number of documents. |
360 |
<P> |
361 |
<DD><DL> |
362 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#doc_num()">doc_num</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
363 |
</DD> |
364 |
<DD><DL> |
365 |
|
366 |
<DT><B>Returns:</B><DD>the number of documents. On error, -1 is returned.</DL> |
367 |
</DD> |
368 |
</DL> |
369 |
<HR> |
370 |
|
371 |
<A NAME="get_doc_attr_by_uri(java.lang.String, java.lang.String)"><!-- --></A><H3> |
372 |
get_doc_attr_by_uri</H3> |
373 |
<PRE> |
374 |
public java.lang.String <B>get_doc_attr_by_uri</B>(java.lang.String uri, |
375 |
java.lang.String name)</PRE> |
376 |
<DL> |
377 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
378 |
<DD>Retrieve the value of an attribute of a document specified by URI |
379 |
<P> |
380 |
<DD><DL> |
381 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#get_doc_attr_by_uri(java.lang.String, java.lang.String)">get_doc_attr_by_uri</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
382 |
</DD> |
383 |
<DD><DL> |
384 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document.<DD><CODE>name</CODE> - the name of an attribute. |
385 |
<DT><B>Returns:</B><DD>the value of the attribute or null if it does not exist.</DL> |
386 |
</DD> |
387 |
</DL> |
388 |
<HR> |
389 |
|
390 |
<A NAME="get_doc_attr(int, java.lang.String)"><!-- --></A><H3> |
391 |
get_doc_attr</H3> |
392 |
<PRE> |
393 |
public java.lang.String <B>get_doc_attr</B>(int id, |
394 |
java.lang.String name)</PRE> |
395 |
<DL> |
396 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
397 |
<DD>Retrieve the value of an attribute of a document. |
398 |
<P> |
399 |
<DD><DL> |
400 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#get_doc_attr(int, java.lang.String)">get_doc_attr</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
401 |
</DD> |
402 |
<DD><DL> |
403 |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID number of a registered document.<DD><CODE>name</CODE> - the name of an attribute. |
404 |
<DT><B>Returns:</B><DD>the value of the attribute or null if it does not exist.</DL> |
405 |
</DD> |
406 |
</DL> |
407 |
<HR> |
408 |
|
409 |
<A NAME="get_doc_by_uri(java.lang.String)"><!-- --></A><H3> |
410 |
get_doc_by_uri</H3> |
411 |
<PRE> |
412 |
public <A HREF="../estraier/Document.html" title="interface in estraier">Document</A> <B>get_doc_by_uri</B>(java.lang.String uri)</PRE> |
413 |
<DL> |
414 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
415 |
<DD>Retrieve a document specified by URI. |
416 |
<P> |
417 |
<DD><DL> |
418 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#get_doc_by_uri(java.lang.String)">get_doc_by_uri</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
419 |
</DD> |
420 |
<DD><DL> |
421 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document. |
422 |
<DT><B>Returns:</B><DD>a document object. On error, null is returned.</DL> |
423 |
</DD> |
424 |
</DL> |
425 |
<HR> |
426 |
|
427 |
<A NAME="get_doc(int)"><!-- --></A><H3> |
428 |
get_doc</H3> |
429 |
<PRE> |
430 |
public <A HREF="../estraier/Document.html" title="interface in estraier">Document</A> <B>get_doc</B>(int id)</PRE> |
431 |
<DL> |
432 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
433 |
<DD>Retrieve a document. |
434 |
<P> |
435 |
<DD><DL> |
436 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#get_doc(int)">get_doc</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
437 |
</DD> |
438 |
<DD><DL> |
439 |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID number of a registered document. |
440 |
<DT><B>Returns:</B><DD>a document object. On error, null is returned.</DL> |
441 |
</DD> |
442 |
</DL> |
443 |
<HR> |
444 |
|
445 |
<A NAME="label()"><!-- --></A><H3> |
446 |
label</H3> |
447 |
<PRE> |
448 |
public java.lang.String <B>label</B>()</PRE> |
449 |
<DL> |
450 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
451 |
<DD>Get the label. |
452 |
<P> |
453 |
<DD><DL> |
454 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#label()">label</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
455 |
</DD> |
456 |
<DD><DL> |
457 |
|
458 |
<DT><B>Returns:</B><DD>the label. On error, null is returned.</DL> |
459 |
</DD> |
460 |
</DL> |
461 |
<HR> |
462 |
|
463 |
<A NAME="name()"><!-- --></A><H3> |
464 |
name</H3> |
465 |
<PRE> |
466 |
public java.lang.String <B>name</B>()</PRE> |
467 |
<DL> |
468 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
469 |
<DD>Get the name. |
470 |
<P> |
471 |
<DD><DL> |
472 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#name()">name</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
473 |
</DD> |
474 |
<DD><DL> |
475 |
|
476 |
<DT><B>Returns:</B><DD>the name. On error, null is returned.</DL> |
477 |
</DD> |
478 |
</DL> |
479 |
<HR> |
480 |
|
481 |
<A NAME="out_doc_by_uri(java.lang.String)"><!-- --></A><H3> |
482 |
out_doc_by_uri</H3> |
483 |
<PRE> |
484 |
public boolean <B>out_doc_by_uri</B>(java.lang.String uri)</PRE> |
485 |
<DL> |
486 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
487 |
<DD>Remove a document specified by URI. |
488 |
<P> |
489 |
<DD><DL> |
490 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#out_doc_by_uri(java.lang.String)">out_doc_by_uri</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
491 |
</DD> |
492 |
<DD><DL> |
493 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document. |
494 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
495 |
</DD> |
496 |
</DL> |
497 |
<HR> |
498 |
|
499 |
<A NAME="out_doc(int)"><!-- --></A><H3> |
500 |
out_doc</H3> |
501 |
<PRE> |
502 |
public boolean <B>out_doc</B>(int id)</PRE> |
503 |
<DL> |
504 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
505 |
<DD>Remove a document. |
506 |
<P> |
507 |
<DD><DL> |
508 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#out_doc(int)">out_doc</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
509 |
</DD> |
510 |
<DD><DL> |
511 |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID number of a registered document. |
512 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
513 |
</DD> |
514 |
</DL> |
515 |
<HR> |
516 |
|
517 |
<A NAME="put_doc(estraier.Document)"><!-- --></A><H3> |
518 |
put_doc</H3> |
519 |
<PRE> |
520 |
public boolean <B>put_doc</B>(<A HREF="../estraier/Document.html" title="interface in estraier">Document</A> doc)</PRE> |
521 |
<DL> |
522 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
523 |
<DD>Add a document. |
524 |
<P> |
525 |
<DD><DL> |
526 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#put_doc(estraier.Document)">put_doc</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
527 |
</DD> |
528 |
<DD><DL> |
529 |
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - a document object to register. |
530 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
531 |
</DD> |
532 |
</DL> |
533 |
<HR> |
534 |
|
535 |
<A NAME="search(estraier.Condition, int)"><!-- --></A><H3> |
536 |
search</H3> |
537 |
<PRE> |
538 |
public <A HREF="../estraier/NodeResult.html" title="interface in estraier">NodeResult</A> <B>search</B>(<A HREF="../estraier/Condition.html" title="interface in estraier">Condition</A> cond, |
539 |
int depth)</PRE> |
540 |
<DL> |
541 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
542 |
<DD>Search documents corresponding a condition. |
543 |
<P> |
544 |
<DD><DL> |
545 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#search(estraier.Condition, int)">search</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
546 |
</DD> |
547 |
<DD><DL> |
548 |
<DT><B>Parameters:</B><DD><CODE>cond</CODE> - a condition object.<DD><CODE>depth</CODE> - the depth of meta search. |
549 |
<DT><B>Returns:</B><DD>a node result object. On error, null is returned.</DL> |
550 |
</DD> |
551 |
</DL> |
552 |
<HR> |
553 |
|
554 |
<A NAME="set_auth(java.lang.String, java.lang.String)"><!-- --></A><H3> |
555 |
set_auth</H3> |
556 |
<PRE> |
557 |
public void <B>set_auth</B>(java.lang.String name, |
558 |
java.lang.String password)</PRE> |
559 |
<DL> |
560 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
561 |
<DD>Set the authentication information. |
562 |
<P> |
563 |
<DD><DL> |
564 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#set_auth(java.lang.String, java.lang.String)">set_auth</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
565 |
</DD> |
566 |
<DD><DL> |
567 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of authentication.<DD><CODE>password</CODE> - the password of the authentication.</DL> |
568 |
</DD> |
569 |
</DL> |
570 |
<HR> |
571 |
|
572 |
<A NAME="set_link(java.lang.String, java.lang.String, int)"><!-- --></A><H3> |
573 |
set_link</H3> |
574 |
<PRE> |
575 |
public boolean <B>set_link</B>(java.lang.String url, |
576 |
java.lang.String label, |
577 |
int credit)</PRE> |
578 |
<DL> |
579 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
580 |
<DD>Manage a link. |
581 |
<P> |
582 |
<DD><DL> |
583 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#set_link(java.lang.String, java.lang.String, int)">set_link</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
584 |
</DD> |
585 |
<DD><DL> |
586 |
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL of the target node of a link.<DD><CODE>label</CODE> - the label of the link.<DD><CODE>credit</CODE> - the credit of the link. If it is negative, the link is removed. |
587 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
588 |
</DD> |
589 |
</DL> |
590 |
<HR> |
591 |
|
592 |
<A NAME="set_proxy(java.lang.String, int)"><!-- --></A><H3> |
593 |
set_proxy</H3> |
594 |
<PRE> |
595 |
public void <B>set_proxy</B>(java.lang.String host, |
596 |
int port)</PRE> |
597 |
<DL> |
598 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
599 |
<DD>Set the proxy information. |
600 |
<P> |
601 |
<DD><DL> |
602 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#set_proxy(java.lang.String, int)">set_proxy</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
603 |
</DD> |
604 |
<DD><DL> |
605 |
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name of a proxy server.<DD><CODE>port</CODE> - the port number of the proxy server.</DL> |
606 |
</DD> |
607 |
</DL> |
608 |
<HR> |
609 |
|
610 |
<A NAME="set_timeout(int)"><!-- --></A><H3> |
611 |
set_timeout</H3> |
612 |
<PRE> |
613 |
public void <B>set_timeout</B>(int msec)</PRE> |
614 |
<DL> |
615 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
616 |
<DD>Set timeout. |
617 |
<P> |
618 |
<DD><DL> |
619 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#set_timeout(int)">set_timeout</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
620 |
</DD> |
621 |
<DD><DL> |
622 |
<DT><B>Parameters:</B><DD><CODE>msec</CODE> - timeout in seconds.</DL> |
623 |
</DD> |
624 |
</DL> |
625 |
<HR> |
626 |
|
627 |
<A NAME="set_url(java.lang.String)"><!-- --></A><H3> |
628 |
set_url</H3> |
629 |
<PRE> |
630 |
public void <B>set_url</B>(java.lang.String url)</PRE> |
631 |
<DL> |
632 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
633 |
<DD>Set the URL of a node server. |
634 |
<P> |
635 |
<DD><DL> |
636 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#set_url(java.lang.String)">set_url</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
637 |
</DD> |
638 |
<DD><DL> |
639 |
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL of a node server.</DL> |
640 |
</DD> |
641 |
</DL> |
642 |
<HR> |
643 |
|
644 |
<A NAME="set_user(java.lang.String, int)"><!-- --></A><H3> |
645 |
set_user</H3> |
646 |
<PRE> |
647 |
public boolean <B>set_user</B>(java.lang.String name, |
648 |
int mode)</PRE> |
649 |
<DL> |
650 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
651 |
<DD>Manage a user account. |
652 |
<P> |
653 |
<DD><DL> |
654 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#set_user(java.lang.String, int)">set_user</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
655 |
</DD> |
656 |
<DD><DL> |
657 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of a user.<DD><CODE>mode</CODE> - the operation mode. 0 means to delete the account. 1 means to set the |
658 |
account as an administrator. 2 means to set the account as a normal user. |
659 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
660 |
</DD> |
661 |
</DL> |
662 |
<HR> |
663 |
|
664 |
<A NAME="size()"><!-- --></A><H3> |
665 |
size</H3> |
666 |
<PRE> |
667 |
public double <B>size</B>()</PRE> |
668 |
<DL> |
669 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
670 |
<DD>Get the size of the datbase of a node. |
671 |
<P> |
672 |
<DD><DL> |
673 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#size()">size</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
674 |
</DD> |
675 |
<DD><DL> |
676 |
|
677 |
<DT><B>Returns:</B><DD>the size of the datbase of the node. On error, -1.0 is returned.</DL> |
678 |
</DD> |
679 |
</DL> |
680 |
<HR> |
681 |
|
682 |
<A NAME="status()"><!-- --></A><H3> |
683 |
status</H3> |
684 |
<PRE> |
685 |
public int <B>status</B>()</PRE> |
686 |
<DL> |
687 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
688 |
<DD>Get the status code of the last request. |
689 |
<P> |
690 |
<DD><DL> |
691 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#status()">status</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
692 |
</DD> |
693 |
<DD><DL> |
694 |
|
695 |
<DT><B>Returns:</B><DD>the status code of the last request.</DL> |
696 |
</DD> |
697 |
</DL> |
698 |
<HR> |
699 |
|
700 |
<A NAME="uri_to_id(java.lang.String)"><!-- --></A><H3> |
701 |
uri_to_id</H3> |
702 |
<PRE> |
703 |
public int <B>uri_to_id</B>(java.lang.String uri)</PRE> |
704 |
<DL> |
705 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
706 |
<DD>Get the ID of a document spacified by URI. |
707 |
<P> |
708 |
<DD><DL> |
709 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#uri_to_id(java.lang.String)">uri_to_id</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
710 |
</DD> |
711 |
<DD><DL> |
712 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document. |
713 |
<DT><B>Returns:</B><DD>the ID of the document. On error, -1 is returned.</DL> |
714 |
</DD> |
715 |
</DL> |
716 |
<HR> |
717 |
|
718 |
<A NAME="word_num()"><!-- --></A><H3> |
719 |
word_num</H3> |
720 |
<PRE> |
721 |
public int <B>word_num</B>()</PRE> |
722 |
<DL> |
723 |
<DD><B>Description copied from interface: <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></B></DD> |
724 |
<DD>Get the number of unique words. |
725 |
<P> |
726 |
<DD><DL> |
727 |
<DT><B>Specified by:</B><DD><CODE><A HREF="../estraier/Node.html#word_num()">word_num</A></CODE> in interface <CODE><A HREF="../estraier/Node.html" title="interface in estraier">Node</A></CODE></DL> |
728 |
</DD> |
729 |
<DD><DL> |
730 |
|
731 |
<DT><B>Returns:</B><DD>the number of unique words. On error, -1 is returned.</DL> |
732 |
</DD> |
733 |
</DL> |
734 |
<!-- ========= END OF CLASS DATA ========= --> |
735 |
<HR> |
736 |
|
737 |
|
738 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
739 |
<A NAME="navbar_bottom"><!-- --></A> |
740 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
741 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
742 |
<TR> |
743 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
744 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
745 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
746 |
<TR ALIGN="center" VALIGN="top"> |
747 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
748 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
749 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
750 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
751 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
752 |
</TR> |
753 |
</TABLE> |
754 |
</TD> |
755 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
756 |
</EM> |
757 |
</TD> |
758 |
</TR> |
759 |
|
760 |
<TR> |
761 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
762 |
<A HREF="../estraier/Node.html" title="interface in estraier"><B>PREV CLASS</B></A> |
763 |
<A HREF="../estraier/NodeResult.html" title="interface in estraier"><B>NEXT CLASS</B></A></FONT></TD> |
764 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
765 |
<A HREF="../index.html" target="_top"><B>FRAMES</B></A> |
766 |
<A HREF="NodeImpl.html" target="_top"><B>NO FRAMES</B></A> |
767 |
<SCRIPT type="text/javascript"> |
768 |
<!-- |
769 |
if(window==top) { |
770 |
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); |
771 |
} |
772 |
//--> |
773 |
</SCRIPT> |
774 |
<NOSCRIPT> |
775 |
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A> |
776 |
</NOSCRIPT> |
777 |
|
778 |
</FONT></TD> |
779 |
</TR> |
780 |
<TR> |
781 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
782 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
783 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
784 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
785 |
</TR> |
786 |
</TABLE> |
787 |
<A NAME="skip-navbar_bottom"></A> |
788 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
789 |
|
790 |
<HR> |
791 |
|
792 |
</BODY> |
793 |
</HTML> |