home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09961.iso / java / mojo1-2e.exe / MOJODISK / DATA.4 / lib / packages / java.def next >
Encoding:
Text File  |  1996-07-01  |  185.7 KB  |  7,704 lines

  1. DEF_COMPONENTNAME
  2. Scrollbar
  3. DEF_SUPERCLASS
  4. Component
  5. DEF_SUPERCOMPONENT
  6.  
  7. DEF_PACKAGE
  8. java
  9. awt
  10. DEF_ENDLIST
  11. DEF_SUBCOMPONENTLIST
  12. DEF_ENDLIST
  13. DEF_SUBCOMPONENTCLASSLIST
  14. DEF_ENDLIST
  15. DEF_CATEGORY
  16.  
  17. DEF_BITMAP
  18.  
  19. DEF_THUMBNAIL_UP
  20.  
  21. DEF_THUMBNAIL_DOWN
  22.  
  23. DEF_BASE
  24. DEF_IMPORTS
  25. DEF_ENDLIST
  26. DEF_REQUIRES
  27. DEF_ENDLIST
  28. DEF_IMPLEMENTS
  29. DEF_ENDLIST
  30. DEF_DECLARATION
  31. // A Scrollbar component.
  32. DEF_ENDLIST
  33. DEF_METHOD
  34. public Scrollbar()
  35. //    Constructs a new vertical Scrollbar.
  36. // 
  37. DEF_ENDLIST
  38. DEF_METHOD
  39. public Scrollbar(int orientation)
  40. //    Constructs a new Scrollbar with the specified orientation.
  41. //   
  42. //      Parameters:
  43. //      orientation - either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL
  44. //      Throws: IllegalArgumentException
  45. //      When an illegal scrollbar orientation is given.
  46. //   
  47. // 
  48. DEF_ENDLIST
  49. DEF_METHOD
  50. public Scrollbar(int orientation,
  51.                  int value,
  52.                  int visible,
  53.                  int minimum,
  54.                  int maximum)
  55. //    Constructs a new Scrollbar with the specified orientation,
  56. // value, page size,  and minumum and maximum values.
  57. //   
  58. //      Parameters:
  59. //      orientation - either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL
  60. //      value - the scrollbar's value
  61. //      visible - the size of the visible portion of the
  62. // scrollable area. The scrollbar will use this value when paging up
  63. // or down by a page.
  64. //      minimum - the minimum value of the scrollbar
  65. //      maximum - the maximum value of the scrollbar
  66. //   
  67. // 
  68. DEF_ENDLIST
  69. DEF_METHOD
  70. public synchronized void addNotify()
  71. //    Creates the Scrollbar's peer.  The peer allows you to modify
  72. // the appearance of the Scrollbar without changing any of its
  73. // functionality.
  74. //   
  75. //      Overrides:
  76. //      addNotify in class Component
  77. //   
  78. // 
  79. DEF_ENDLIST
  80. DEF_METHOD
  81. public int getOrientation()
  82. //    Returns the orientation for this Scrollbar.
  83. // 
  84. DEF_ENDLIST
  85. DEF_METHOD
  86. public int getValue()
  87. //    Returns the current value of this Scrollbar.
  88. //   
  89. //      See Also:
  90. //      getMinimum, getMaximum
  91. //   
  92. // 
  93. DEF_ENDLIST
  94. DEF_METHOD
  95. public void setValue(int value)
  96. //    Sets the value of this Scrollbar to the specified value.
  97. //   
  98. //      Parameters:
  99. //      value - the new value of the Scrollbar. If this value is
  100. // below the current minimum or above the current maximum, it becomes the
  101. // new one of those values, respectively.
  102. //      See Also:
  103. //      getValue
  104. //   
  105. // 
  106. DEF_ENDLIST
  107. DEF_METHOD
  108. public int getMinimum()
  109. //    Returns the minimum value of this Scrollbar.
  110. //   
  111. //      See Also:
  112. //      getMaximum, getValue
  113. //   
  114. // 
  115. DEF_ENDLIST
  116. DEF_METHOD
  117. public int getMaximum()
  118. //    Returns the maximum value of this Scrollbar.
  119. //   
  120. //      See Also:
  121. //      getMinimum, getValue
  122. //   
  123. // 
  124. DEF_ENDLIST
  125. DEF_METHOD
  126. public int getVisible()
  127. //    Returns the visible amount of the Scrollbar.
  128. // 
  129. DEF_ENDLIST
  130. DEF_METHOD
  131. public void setLineIncrement(int l)
  132. //    Sets the line increment for this scrollbar. This is the value
  133. // that will be added (subtracted) when the user hits the line down
  134. // (up) gadgets.
  135. // 
  136. DEF_ENDLIST
  137. DEF_METHOD
  138. public int getLineIncrement()
  139. //    Gets the line increment for this scrollbar.
  140. // 
  141. DEF_ENDLIST
  142. DEF_METHOD
  143. public void setPageIncrement(int l)
  144. //    Sets the page increment for this scrollbar. This is the value
  145. // that will be added (subtracted) when the user hits the page down
  146. // (up) gadgets.
  147. // 
  148. DEF_ENDLIST
  149. DEF_METHOD
  150. public int getPageIncrement()
  151. //    Gets the page increment for this scrollbar.
  152. // 
  153. DEF_ENDLIST
  154. DEF_METHOD
  155. public void setValues(int value,
  156.                       int visible,
  157.                       int minimum,
  158.                       int maximum)
  159. //    Sets the values for this Scrollbar.
  160. //   
  161. //      Parameters:
  162. //      value - is the position in the current window.
  163. //      visible - is the amount visible per page
  164. //      minimum - is the minimum value of the scrollbar
  165. //      maximum - is the maximum value of the scrollbar
  166. //   
  167. // 
  168. DEF_ENDLIST
  169. DEF_METHOD
  170. protected String paramString()
  171. //    Returns the String parameters for this Scrollbar.
  172. //   
  173. //      Overrides:
  174. //      paramString in class Component
  175. //   
  176. // 
  177. DEF_ENDLIST
  178. DEF_PROPERTY
  179. LineIncrement
  180. int
  181. setLineIncrement(AVALUE);
  182. AVALUE = getLineIncrement();
  183. 0
  184. DEF_ENDLIST
  185. DEF_PROPERTY
  186. PageIncrement
  187. int
  188. setPageIncrement(AVALUE);
  189. AVALUE = getPageIncrement();
  190. 0
  191. DEF_ENDLIST
  192. DEF_PROPERTY
  193. Position
  194. int
  195. setValue(AVALUE);
  196. AVALUE = getValue();
  197. 0
  198. DEF_ENDLIST
  199. DEF_PROPERTY
  200. AmountVisible
  201. int
  202. setValues(getValue(), AVALUE, getMinimum(), getMaximum());
  203. AVALUE = getVisible();
  204. DEF_ENDLIST
  205. DEF_PROPERTY
  206. MinimumValue
  207. int
  208. setValues(getValue(), getVisible(), AVALUE, getMaximum());
  209. AVALUE = getMinimum();
  210. DEF_ENDLIST
  211. DEF_PROPERTY
  212. MaximumValue
  213. int
  214. setValues(getValue(), getVisible(), getMinimum(), AVALUE);
  215. AVALUE = getMaximum();
  216. DEF_ENDLIST
  217. DEF_ENDCOMPONENT
  218. DEF_COMPONENTNAME
  219. TextComponent
  220. DEF_SUPERCLASS
  221. Component
  222. DEF_SUPERCOMPONENT
  223.  
  224. DEF_PACKAGE
  225. java
  226. awt
  227. DEF_ENDLIST
  228. DEF_SUBCOMPONENTLIST
  229. DEF_ENDLIST
  230. DEF_SUBCOMPONENTCLASSLIST
  231. DEF_ENDLIST
  232. DEF_CATEGORY
  233.  
  234. DEF_BITMAP
  235.  
  236. DEF_THUMBNAIL_UP
  237.  
  238. DEF_THUMBNAIL_DOWN
  239.  
  240. DEF_BASE
  241. DEF_IMPORTS
  242. DEF_ENDLIST
  243. DEF_REQUIRES
  244. DEF_ENDLIST
  245. DEF_IMPLEMENTS
  246. DEF_ENDLIST
  247. DEF_DECLARATION
  248. // A TextComponent is a component that allows the editing of some text.
  249. DEF_ENDLIST
  250. DEF_METHOD
  251. public synchronized void removeNotify()
  252. //    Removes the TextComponent's peer.  The peer allows us to modify the appearance
  253. // of the TextComponent without changing its functionality.
  254. //   
  255. //      Overrides:
  256. //      removeNotify in class Component
  257. //   
  258. // 
  259. DEF_ENDLIST
  260. DEF_METHOD
  261. public void setText(String t)
  262. //    Sets the text of this TextComponent to the specified text.
  263. //   
  264. //      Parameters:
  265. //      t - the new text to be set
  266. //      See Also:
  267. //      getText
  268. //   
  269. // 
  270. DEF_ENDLIST
  271. DEF_METHOD
  272. public String getText()
  273. //    Returns the text contained in this TextComponent.
  274. //   
  275. //      See Also:
  276. //      setText
  277. //   
  278. // 
  279. DEF_ENDLIST
  280. DEF_METHOD
  281. public String getSelectedText()
  282. //    Returns the selected text contained in this TextComponent.
  283. //   
  284. //      See Also:
  285. //      setText
  286. //   
  287. // 
  288. DEF_ENDLIST
  289. DEF_METHOD
  290. public boolean isEditable()
  291. //    Returns the boolean indicating whether this TextComponent is editable or not.
  292. //   
  293. //      See Also:
  294. //      setEditable
  295. //   
  296. // 
  297. DEF_ENDLIST
  298. DEF_METHOD
  299. public void setEditable(boolean t)
  300. //    Sets the specified boolean to indicate whether or not this TextComponent should be 
  301. // editable.
  302. //   
  303. //      Parameters:
  304. //      t - the boolean to be set
  305. //      See Also:
  306. //      isEditable
  307. //   
  308. // 
  309. DEF_ENDLIST
  310. DEF_METHOD
  311. public int getSelectionStart()
  312. //    Returns the selected text's start position.
  313. // 
  314. DEF_ENDLIST
  315. DEF_METHOD
  316. public int getSelectionEnd()
  317. //    Returns the selected text's end position.
  318. // 
  319. DEF_ENDLIST
  320. DEF_METHOD
  321. public void select(int selStart,
  322.                    int selEnd)
  323. //    Selects the text found between the specified start and end locations.
  324. //   
  325. //      Parameters:
  326. //      selStart - the start position of the text
  327. //      selEnd - the end position of the text
  328. //   
  329. // 
  330. DEF_ENDLIST
  331. DEF_METHOD
  332. public void selectAll()
  333. //    Selects all the text in the TextComponent.
  334. // 
  335. DEF_ENDLIST
  336. DEF_METHOD
  337. protected String paramString()
  338. //    Returns the String of parameters for this TextComponent.
  339. //   
  340. //      Overrides:
  341. //      paramString in class Component
  342. //   
  343. // 
  344. DEF_ENDLIST
  345. DEF_PROPERTY
  346. Text
  347. String
  348. setText(AVALUE);
  349. AVALUE = getText();
  350. ""
  351. DEF_ENDLIST
  352. DEF_PROPERTY
  353. Editable
  354. boolean
  355. setEditable(AVALUE);
  356. AVALUE = isEditable();
  357. true
  358. DEF_ENDLIST
  359. DEF_ENDCOMPONENT
  360. DEF_COMPONENTNAME
  361. Toolkit
  362. DEF_SUPERCLASS
  363. Object
  364. DEF_SUPERCOMPONENT
  365.  
  366. DEF_PACKAGE
  367. java
  368. awt
  369. DEF_ENDLIST
  370. DEF_SUBCOMPONENTLIST
  371. DEF_ENDLIST
  372. DEF_SUBCOMPONENTCLASSLIST
  373. DEF_ENDLIST
  374. DEF_CATEGORY
  375.  
  376. DEF_BITMAP
  377.  
  378. DEF_THUMBNAIL_UP
  379.  
  380. DEF_THUMBNAIL_DOWN
  381.  
  382. DEF_BASE
  383. DEF_IMPORTS
  384. DEF_ENDLIST
  385. DEF_REQUIRES
  386. DEF_ENDLIST
  387. DEF_IMPLEMENTS
  388. DEF_ENDLIST
  389. DEF_DECLARATION
  390. // An AWT toolkit. It is used to bind the abstract AWT classes
  391. // to a particular native toolkit implementation.
  392. DEF_ENDLIST
  393. DEF_METHOD
  394. public Toolkit()
  395. //    Uses the specified Peer interface to create a new Button.
  396. //   
  397. //      Parameters:
  398. //      target - the Button to be created
  399. //   
  400. // 
  401. DEF_ENDLIST
  402. DEF_METHOD
  403. protected abstract TextFieldPeer createTextField(TextField target)
  404. //    Uses the specified Peer interface to create a new TextField.
  405. //   
  406. //      Parameters:
  407. //      target - the TextField to be created
  408. //   
  409. // 
  410. DEF_ENDLIST
  411. DEF_METHOD
  412. protected abstract LabelPeer createLabel(Label target)
  413. //    Uses the specified Peer interface to create a new Label.
  414. //   
  415. //      Parameters:
  416. //      target - the Label to be created
  417. //   
  418. // 
  419. DEF_ENDLIST
  420. DEF_METHOD
  421. protected abstract ListPeer createList(List target)
  422. //    Uses the specified Peer interface to create a new List.
  423. //   
  424. //      Parameters:
  425. //      target - the List to be created
  426. //   
  427. // 
  428. DEF_ENDLIST
  429. DEF_METHOD
  430. protected abstract CheckboxPeer createCheckbox(Checkbox target)
  431. //    Uses the specified Peer interface to create a new Checkbox.
  432. //   
  433. //      Parameters:
  434. //      target - the Checkbox to be created
  435. //   
  436. // 
  437. DEF_ENDLIST
  438. DEF_METHOD
  439. protected abstract ScrollbarPeer createScrollbar(Scrollbar target)
  440. //    Uses the specified Peer interface to create a new Scrollbar.
  441. //   
  442. //      Parameters:
  443. //      target - the Scrollbar to be created
  444. //   
  445. // 
  446. DEF_ENDLIST
  447. DEF_METHOD
  448. protected abstract TextAreaPeer createTextArea(TextArea target)
  449. //    Uses the specified Peer interface to create a new TextArea.
  450. //   
  451. //      Parameters:
  452. //      target - the TextArea to be created
  453. //   
  454. // 
  455. DEF_ENDLIST
  456. DEF_METHOD
  457. protected abstract ChoicePeer createChoice(Choice target)
  458. //    Uses the specified Peer interface to create a new Choice.
  459. //   
  460. //      Parameters:
  461. //      target - the Choice to be created
  462. //   
  463. // 
  464. DEF_ENDLIST
  465. DEF_METHOD
  466. protected abstract FramePeer createFrame(Frame target)
  467. //    Uses the specified Peer interface to create a new Frame.
  468. //   
  469. //      Parameters:
  470. //      target - the Frame to be created
  471. //   
  472. // 
  473. DEF_ENDLIST
  474. DEF_METHOD
  475. protected abstract CanvasPeer createCanvas(Canvas target)
  476. //    Uses the specified Peer interface to create a new Canvas.
  477. //   
  478. //      Parameters:
  479. //      target - the Canvas to be created
  480. //   
  481. // 
  482. DEF_ENDLIST
  483. DEF_METHOD
  484. protected abstract PanelPeer createPanel(Panel target)
  485. //    Uses the specified Peer interface to create a new Panel.
  486. //   
  487. //      Parameters:
  488. //      target - the Panel to be created
  489. //   
  490. // 
  491. DEF_ENDLIST
  492. DEF_METHOD
  493. protected abstract WindowPeer createWindow(Window target)
  494. //    Uses the specified Peer interface to create a new Window.
  495. //   
  496. //      Parameters:
  497. //      target - the Window to be created
  498. //   
  499. // 
  500. DEF_ENDLIST
  501. DEF_METHOD
  502. protected abstract DialogPeer createDialog(Dialog target)
  503. //    Uses the specified Peer interface to create a new Dialog.
  504. //   
  505. //      Parameters:
  506. //      target - the Dialog to be created
  507. //   
  508. // 
  509. DEF_ENDLIST
  510. DEF_METHOD
  511. protected abstract MenuBarPeer createMenuBar(MenuBar target)
  512. //    Uses the specified Peer interface to create a new MenuBar.
  513. //   
  514. //      Parameters:
  515. //      target - the MenuBar to be created
  516. //   
  517. // 
  518. DEF_ENDLIST
  519. DEF_METHOD
  520. protected abstract MenuPeer createMenu(Menu target)
  521. //    Uses the specified Peer interface to create a new Menu.
  522. //   
  523. //      Parameters:
  524. //      target - the Menu to be created
  525. //   
  526. // 
  527. DEF_ENDLIST
  528. DEF_METHOD
  529. protected abstract MenuItemPeer createMenuItem(MenuItem target)
  530. //    Uses the specified Peer interface to create a new MenuItem.
  531. //   
  532. //      Parameters:
  533. //      target - the MenuItem to be created
  534. //   
  535. // 
  536. DEF_ENDLIST
  537. DEF_METHOD
  538. protected abstract FileDialogPeer createFileDialog(FileDialog target)
  539. //    Uses the specified Peer interface to create a new FileDialog.
  540. //   
  541. //      Parameters:
  542. //      target - the FileDialog to be created
  543. //   
  544. // 
  545. DEF_ENDLIST
  546. DEF_METHOD
  547. protected abstract CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
  548. //    Uses the specified Peer interface to create a new CheckboxMenuItem.
  549. //   
  550. //      Parameters:
  551. //      target - the CheckboxMenuItem to be created
  552. //   
  553. // 
  554. DEF_ENDLIST
  555. DEF_METHOD
  556. public abstract Dimension getScreenSize()
  557. //    Gets the size of the screen.
  558. // 
  559. DEF_ENDLIST
  560. DEF_METHOD
  561. public abstract int getScreenResolution()
  562. //    Returns the screen resolution in dots-per-inch.
  563. // 
  564. DEF_ENDLIST
  565. DEF_METHOD
  566. public abstract ColorModel getColorModel()
  567. //    Returns the ColorModel of the screen.
  568. // 
  569. DEF_ENDLIST
  570. DEF_METHOD
  571. public abstract String[] getFontList()
  572. //    Returns the names of the available fonts.
  573. // 
  574. DEF_ENDLIST
  575. DEF_METHOD
  576. public abstract FontMetrics getFontMetrics(Font font)
  577. //    Returns the screen metrics of the font.
  578. // 
  579. DEF_ENDLIST
  580. DEF_METHOD
  581. public abstract void sync()
  582. //    Syncs the graphics state; useful when doing animation.
  583. // 
  584. DEF_ENDLIST
  585. DEF_METHOD
  586. public static synchronized Toolkit getDefaultToolkit()
  587. //    Returns the default toolkit. This is controlled by the
  588. // "awt.toolkit" property.
  589. //   
  590. //      Throws: AWTError
  591. //      Toolkit not found or could not be instantiated.
  592. //   
  593. // 
  594. DEF_ENDLIST
  595. DEF_METHOD
  596. public abstract Image getImage(String filename)
  597. //    Returns an image which gets pixel data from the specified file.
  598. //   
  599. //      Parameters:
  600. //      filename - the file containing the pixel data in one of
  601. // the recognized file formats
  602. //   
  603. // 
  604. DEF_ENDLIST
  605. DEF_METHOD
  606. public abstract Image getImage(URL url)
  607. //    Returns an image which gets pixel data from the specified URL.
  608. //   
  609. //      Parameters:
  610. //      url - the URL to use in fetching the pixel data
  611. //   
  612. // 
  613. DEF_ENDLIST
  614. DEF_METHOD
  615. public abstract boolean prepareImage(Image image,
  616.                                      int width,
  617.                                      int height,
  618.                                      ImageObserver observer)
  619. //    Prepares an image for rendering on the default screen at the
  620. // specified width and height.
  621. // 
  622. DEF_ENDLIST
  623. DEF_METHOD
  624. public abstract int checkImage(Image image,
  625.                                int width,
  626.                                int height,
  627.                                ImageObserver observer)
  628. //    Returns the status of the construction of the indicated method
  629. // at the indicated width and height for the default screen.
  630. // 
  631. DEF_ENDLIST
  632. DEF_METHOD
  633. public abstract Image createImage(ImageProducer producer)
  634. //    Creates an image with the specified image producer.
  635. //   
  636. //      Parameters:
  637. //      producer - the image producer to be used
  638. //   
  639. // 
  640. DEF_ENDLIST
  641. DEF_ENDCOMPONENT
  642. DEF_COMPONENTNAME
  643. Window
  644. DEF_SUPERCLASS
  645. Container
  646. DEF_SUPERCOMPONENT
  647.  
  648. DEF_PACKAGE
  649. java
  650. awt
  651. DEF_ENDLIST
  652. DEF_SUBCOMPONENTLIST
  653. DEF_ENDLIST
  654. DEF_SUBCOMPONENTCLASSLIST
  655. DEF_ENDLIST
  656. DEF_CATEGORY
  657.  
  658. DEF_BITMAP
  659.  
  660. DEF_THUMBNAIL_UP
  661.  
  662. DEF_THUMBNAIL_DOWN
  663.  
  664. DEF_BASE
  665. DEF_IMPORTS
  666. DEF_ENDLIST
  667. DEF_REQUIRES
  668. DEF_ENDLIST
  669. DEF_IMPLEMENTS
  670. DEF_ENDLIST
  671. DEF_DECLARATION
  672. // A Window is a top-level window with no borders and no
  673. // menubar. It could be used to implement a pop-up menu.
  674. // The default layout for a window is BorderLayout.
  675. DEF_ENDLIST
  676. DEF_METHOD
  677. public Window(Frame parent)
  678. //    Constructs a new Window initialized to an invisible state. It
  679. // behaves as a modal dialog in that it will block input to other
  680. // windows when shown.
  681. //   
  682. //      Parameters:
  683. //      parent - the owner of the dialog
  684. //      See Also:
  685. //      resize, show
  686. //   
  687. // 
  688. DEF_ENDLIST
  689. DEF_METHOD
  690. public synchronized void addNotify()
  691. //    Creates the Window's peer.  The peer allows us to modify the appearance of the
  692. // Window without changing its functionality.
  693. //   
  694. //      Overrides:
  695. //      addNotify in class Container
  696. //   
  697. // 
  698. DEF_ENDLIST
  699. DEF_METHOD
  700. public synchronized void pack()
  701. //    Packs the components of the Window.
  702. // 
  703. DEF_ENDLIST
  704. DEF_METHOD
  705. public synchronized void show()
  706. //    Shows the Window. This will bring the window to the
  707. // front if the window is already visible.
  708. //   
  709. //      Overrides:
  710. //      show in class Component
  711. //      See Also:
  712. //      hide
  713. //   
  714. // 
  715. DEF_ENDLIST
  716. DEF_METHOD
  717. public synchronized void dispose()
  718. //    Disposes of the Window. This method must
  719. // be called to release the resources that
  720. // are used for the window.
  721. // 
  722. DEF_ENDLIST
  723. DEF_METHOD
  724. public void toFront()
  725. //    Brings the frame to the front of the Window.
  726. // 
  727. DEF_ENDLIST
  728. DEF_METHOD
  729. public void toBack()
  730. //    Sends the frame to the back of the Window.
  731. // 
  732. DEF_ENDLIST
  733. DEF_METHOD
  734. public Toolkit getToolkit()
  735. //    Returns the toolkit of this frame.
  736. //   
  737. //      Overrides:
  738. //      getToolkit in class Component
  739. //      See Also:
  740. //      Toolkit
  741. //   
  742. // 
  743. DEF_ENDLIST
  744. DEF_METHOD
  745. public final String getWarningString()
  746. //    Gets the warning string for this window. This is
  747. // a string that will be displayed somewhere in the
  748. // visible area of windows that are not secure.
  749. // 
  750. DEF_ENDLIST
  751. DEF_ENDCOMPONENT
  752. DEF_COMPONENTNAME
  753. SequenceInputStream
  754. DEF_SUPERCLASS
  755. InputStream
  756. DEF_SUPERCOMPONENT
  757.  
  758. DEF_PACKAGE
  759. java
  760. io
  761. DEF_ENDLIST
  762. DEF_SUBCOMPONENTLIST
  763. DEF_ENDLIST
  764. DEF_SUBCOMPONENTCLASSLIST
  765. DEF_ENDLIST
  766. DEF_CATEGORY
  767.  
  768. DEF_BITMAP
  769.  
  770. DEF_THUMBNAIL_UP
  771.  
  772. DEF_THUMBNAIL_DOWN
  773.  
  774. DEF_BASE
  775. DEF_IMPORTS
  776. java.io.SequenceInputStream
  777. DEF_ENDLIST
  778. DEF_REQUIRES
  779. DEF_ENDLIST
  780. DEF_IMPLEMENTS
  781. DEF_ENDLIST
  782. DEF_DECLARATION
  783. // Converts a sequence of input streams into an InputStream.
  784. DEF_ENDLIST
  785. DEF_METHOD
  786. public SequenceInputStream(Enumeration e)
  787. //    Constructs a new SequenceInputStream initialized to the 
  788. // specified list.
  789. //   
  790. //      Parameters:
  791. //      e - the list
  792. //   
  793. // 
  794. DEF_ENDLIST
  795. DEF_METHOD
  796. public SequenceInputStream(InputStream s1,
  797.                            InputStream s2)
  798. //    Constructs a new SequenceInputStream initialized to the two
  799. // specified input streams.
  800. //   
  801. //      Parameters:
  802. //      s1 - the first input stream
  803. //      s2 - the second input stream
  804. //   
  805. // 
  806. DEF_ENDLIST
  807. DEF_METHOD
  808. public int read() throws IOException
  809. //    Reads a stream, and upon reaching an EOF, flips to the next 
  810. // stream.
  811. //   
  812. //      Overrides:
  813. //      read in class InputStream
  814. //   
  815. // 
  816. DEF_ENDLIST
  817. DEF_METHOD
  818. public int read(byte buf[],
  819.                 int pos,
  820.                 int len) throws IOException
  821. //    Reads data into an array of bytes, and upon reaching an EOF, 
  822. // flips to the next stream.
  823. //   
  824. //      Parameters:
  825. //      buf - the buffer into which the data is read
  826. //      pos - the start position of the data
  827. //      len - the maximum number of bytes read
  828. //      Throws: IOException
  829. //      If an I/O error has occurred.
  830. //      Overrides:
  831. //      read in class InputStream
  832. //   
  833. // 
  834. DEF_ENDLIST
  835. DEF_METHOD
  836. public void close() throws IOException
  837. //    Closes the input stream; flipping to the next stream,
  838. // if an EOF is reached.   This method must be called to release
  839. // any resources associated with the stream.
  840. //   
  841. //      Throws: IOException
  842. //      If an I/O error has occurred.
  843. //      Overrides:
  844. //      close in class InputStream
  845. //   
  846. // 
  847. DEF_ENDLIST
  848. DEF_ENDCOMPONENT
  849. DEF_COMPONENTNAME
  850. StreamTokenizer
  851. DEF_SUPERCLASS
  852. Object
  853. DEF_SUPERCOMPONENT
  854.  
  855. DEF_PACKAGE
  856. java
  857. io
  858. DEF_ENDLIST
  859. DEF_SUBCOMPONENTLIST
  860. DEF_ENDLIST
  861. DEF_SUBCOMPONENTCLASSLIST
  862. DEF_ENDLIST
  863. DEF_CATEGORY
  864.  
  865. DEF_BITMAP
  866.  
  867. DEF_THUMBNAIL_UP
  868.  
  869. DEF_THUMBNAIL_DOWN
  870.  
  871. DEF_BASE
  872. DEF_IMPORTS
  873. java.io.StreamTokenizer
  874. DEF_ENDLIST
  875. DEF_REQUIRES
  876. DEF_ENDLIST
  877. DEF_IMPLEMENTS
  878. DEF_ENDLIST
  879. DEF_DECLARATION
  880. // A class to turn an input stream into a stream of tokens.
  881. // There are a number of methods that define the lexical
  882. // syntax of tokens.
  883. DEF_ENDLIST
  884. DEF_METHOD
  885. public StreamTokenizer(InputStream I)
  886. //    Creates a stream tokenizer that parses the specified input
  887. // stream.
  888. // By default, it recognizes numbers, Strings quoted with 
  889. // single and double quotes, and all the alphabetics.
  890. //   
  891. //      Parameters:
  892. //      I - the input stream
  893. //   
  894. // 
  895. DEF_ENDLIST
  896. DEF_METHOD
  897. public void resetSyntax()
  898. //    Resets the syntax table so that all characters are special.
  899. // 
  900. DEF_ENDLIST
  901. DEF_METHOD
  902. public void wordChars(int low,
  903.                       int hi)
  904. //    Specifies that characters in this range are word characters.
  905. //   
  906. //      Parameters:
  907. //      low - the low end of the range
  908. //      hi - the high end of the range
  909. //   
  910. // 
  911. DEF_ENDLIST
  912. DEF_METHOD
  913. public void whitespaceChars(int low,
  914.                             int hi)
  915. //    Specifies that characters in this range are whitespace 
  916. // characters.
  917. //   
  918. //      Parameters:
  919. //      low - the low end of the range
  920. //      hi - the high end of the range
  921. //   
  922. // 
  923. DEF_ENDLIST
  924. DEF_METHOD
  925. public void ordinaryChars(int low,
  926.                           int hi)
  927. //    Specifies that characters in this range are 'ordinary'.
  928. // Ordinary characters mean that any significance as words, 
  929. // comments, strings, whitespaces or number characters are removed.
  930. // When these characters are encountered by the 
  931. // parser, they return a ttype equal to the character.
  932. //   
  933. //      Parameters:
  934. //      low - the low end of the range
  935. //      hi - the high end of the range
  936. //   
  937. // 
  938. DEF_ENDLIST
  939. DEF_METHOD
  940. public void ordinaryChar(int ch)
  941. //    Specifies that this character is 'ordinary': it removes any
  942. // significance as a word, comment, string, whitespace or number
  943. // character.  When encountered by the parser, it returns a ttype
  944. // equal to the character.
  945. //   
  946. //      Parameters:
  947. //      ch - the character
  948. //   
  949. // 
  950. DEF_ENDLIST
  951. DEF_METHOD
  952. public void commentChar(int ch)
  953. //    Specifies that this character starts a single line comment.
  954. //   
  955. //      Parameters:
  956. //      ch - the character
  957. //   
  958. // 
  959. DEF_ENDLIST
  960. DEF_METHOD
  961. public void quoteChar(int ch)
  962. //    Specifies that matching pairs of this character delimit String
  963. // constants.  When a String constant is recognized, ttype will be
  964. // the character that delimits the String, and sval will have
  965. // the body of the String.
  966. //   
  967. //      Parameters:
  968. //      ch - the character
  969. //   
  970. // 
  971. DEF_ENDLIST
  972. DEF_METHOD
  973. public void parseNumbers()
  974. //    Specifies that numbers should be parsed.  This method accepts 
  975. // double precision floating point numbers and returns a ttype of 
  976. // TT_NUMBER with the value in nval.
  977. // 
  978. DEF_ENDLIST
  979. DEF_METHOD
  980. public void eolIsSignificant(boolean flag)
  981. //    If the flag is true, end-of-lines are significant (TT_EOL will
  982. // be returned by nexttoken).  If false, they will be treated
  983. // as whitespace.
  984. // 
  985. DEF_ENDLIST
  986. DEF_METHOD
  987. public void slashStarComments(boolean flag)
  988. //    If the flag is true, recognize C style( /* ) comments.
  989. // 
  990. DEF_ENDLIST
  991. DEF_METHOD
  992. public void slashSlashComments(boolean flag)
  993. //    If the flag is true, recognize C++ style( // ) comments.
  994. // 
  995. DEF_ENDLIST
  996. DEF_METHOD
  997. public void lowerCaseMode(boolean fl)
  998. //    Examines a boolean to decide whether TT_WORD tokens are
  999. // forced to be lower case.
  1000. //   
  1001. //      Parameters:
  1002. //      fl - the boolean flag
  1003. //   
  1004. // 
  1005. DEF_ENDLIST
  1006. DEF_METHOD
  1007. public int nextToken() throws IOException
  1008. //    Parses a token from the input stream.  The return value is
  1009. // the same as the value of ttype.  Typical clients of this
  1010. // class first set up the syntax tables and then sit in a loop
  1011. // calling nextToken to parse successive tokens until TT_EOF
  1012. // is returned.
  1013. // 
  1014. DEF_ENDLIST
  1015. DEF_METHOD
  1016. public void pushBack()
  1017. //    Pushes back a stream token.
  1018. // 
  1019. DEF_ENDLIST
  1020. DEF_METHOD
  1021. public int lineno()
  1022. //    Return the current line number.
  1023. // 
  1024. DEF_ENDLIST
  1025. DEF_METHOD
  1026. public String toString()
  1027. //    Returns the String representation of the stream token.
  1028. //   
  1029. //      Overrides:
  1030. //      toString in class Object
  1031. //   
  1032. // 
  1033. DEF_ENDLIST
  1034. DEF_ENDCOMPONENT
  1035. DEF_COMPONENTNAME
  1036. StringBufferInputStream
  1037. DEF_SUPERCLASS
  1038. InputStream
  1039. DEF_SUPERCOMPONENT
  1040.  
  1041. DEF_PACKAGE
  1042. java
  1043. io
  1044. DEF_ENDLIST
  1045. DEF_SUBCOMPONENTLIST
  1046. DEF_ENDLIST
  1047. DEF_SUBCOMPONENTCLASSLIST
  1048. DEF_ENDLIST
  1049. DEF_CATEGORY
  1050.  
  1051. DEF_BITMAP
  1052.  
  1053. DEF_THUMBNAIL_UP
  1054.  
  1055. DEF_THUMBNAIL_DOWN
  1056.  
  1057. DEF_BASE
  1058. DEF_IMPORTS
  1059. java.io.StringBufferInputStream
  1060. DEF_ENDLIST
  1061. DEF_REQUIRES
  1062. DEF_ENDLIST
  1063. DEF_IMPLEMENTS
  1064. DEF_ENDLIST
  1065. DEF_DECLARATION
  1066. // This class implements a String buffer that can be
  1067. // used as an InputStream.
  1068. DEF_ENDLIST
  1069. DEF_METHOD
  1070. public StringBufferInputStream(String s)
  1071. //    Creates an StringBufferInputStream from the specified array of 
  1072. // bytes.
  1073. //   
  1074. //      Parameters:
  1075. //      s - the input buffer (not copied)
  1076. //   
  1077. // 
  1078. DEF_ENDLIST
  1079. DEF_METHOD
  1080. public synchronized int read()
  1081. //    Reads a byte of data.
  1082. //   
  1083. //      Returns:
  1084. //      the byte read, or -1 if the end of the
  1085. // stream is reached.
  1086. //      Overrides:
  1087. //      read in class InputStream
  1088. //   
  1089. // 
  1090. DEF_ENDLIST
  1091. DEF_METHOD
  1092. public synchronized int read(byte b[],
  1093.                              int off,
  1094.                              int len)
  1095. //    Reads into an array of bytes.
  1096. //   
  1097. //      Parameters:
  1098. //      b - the buffer into which the data is read
  1099. //      off - the start offset of the data
  1100. //      len - the maximum number of bytes read
  1101. //      Returns:
  1102. //      the actual number of bytes read; -1 is
  1103. // returned when the end of the stream is reached.
  1104. //      Overrides:
  1105. //      read in class InputStream
  1106. //   
  1107. // 
  1108. DEF_ENDLIST
  1109. DEF_METHOD
  1110. public synchronized long skip(long n)
  1111. //    Skips n bytes of input.
  1112. //   
  1113. //      Parameters:
  1114. //      n - the number of bytes to be skipped
  1115. //      Returns:
  1116. //      the actual number of bytes skipped.
  1117. //      Overrides:
  1118. //      skip in class InputStream
  1119. //   
  1120. // 
  1121. DEF_ENDLIST
  1122. DEF_METHOD
  1123. public synchronized int available()
  1124. //    Returns the number of available bytes in the buffer.
  1125. //   
  1126. //      Overrides:
  1127. //      available in class InputStream
  1128. //   
  1129. // 
  1130. DEF_ENDLIST
  1131. DEF_METHOD
  1132. public synchronized void reset()
  1133. //    Resets the buffer to the beginning.
  1134. //   
  1135. //      Overrides:
  1136. //      reset in class InputStream
  1137. //   
  1138. // 
  1139. DEF_ENDLIST
  1140. DEF_ENDCOMPONENT
  1141. DEF_COMPONENTNAME
  1142. UTFDataFormatException
  1143. DEF_SUPERCLASS
  1144. IOException
  1145. DEF_SUPERCOMPONENT
  1146.  
  1147. DEF_PACKAGE
  1148. java
  1149. io
  1150. DEF_ENDLIST
  1151. DEF_SUBCOMPONENTLIST
  1152. DEF_ENDLIST
  1153. DEF_SUBCOMPONENTCLASSLIST
  1154. DEF_ENDLIST
  1155. DEF_CATEGORY
  1156.  
  1157. DEF_BITMAP
  1158.  
  1159. DEF_THUMBNAIL_UP
  1160.  
  1161. DEF_THUMBNAIL_DOWN
  1162.  
  1163. DEF_BASE
  1164. DEF_IMPORTS
  1165. java.io.UTFDataFormatException
  1166. DEF_ENDLIST
  1167. DEF_REQUIRES
  1168. DEF_ENDLIST
  1169. DEF_IMPLEMENTS
  1170. DEF_ENDLIST
  1171. DEF_DECLARATION
  1172. // Signals that a malformed UTF-8 string has been read in a DataInput stream.
  1173. // 
  1174. //      See Also:
  1175. //      IOException, DataInput
  1176. // 
  1177. DEF_ENDLIST
  1178. DEF_METHOD
  1179. public UTFDataFormatException()
  1180. //    Constructs an UTFDataFormatException with no detail message.
  1181. // A detail message is a String that describes this particular exception.
  1182. // 
  1183. DEF_ENDLIST
  1184. DEF_METHOD
  1185. public UTFDataFormatException(String s)
  1186. //    Constructs an UTFDataFormatException with the specified detail message.
  1187. // A detail message is a String that describes this particular exception.
  1188. //   
  1189. //      Parameters:
  1190. //      s - the detail message
  1191. //   
  1192. // 
  1193. DEF_ENDLIST
  1194. DEF_ENDCOMPONENT
  1195. DEF_COMPONENTNAME
  1196. RemoteArray
  1197. DEF_SUPERCLASS
  1198. RemoteObject
  1199. DEF_SUPERCOMPONENT
  1200.  
  1201. DEF_PACKAGE
  1202. java
  1203. lang
  1204. DEF_ENDLIST
  1205. DEF_SUBCOMPONENTLIST
  1206. DEF_ENDLIST
  1207. DEF_SUBCOMPONENTCLASSLIST
  1208. DEF_ENDLIST
  1209. DEF_CATEGORY
  1210.  
  1211. DEF_BITMAP
  1212.  
  1213. DEF_THUMBNAIL_UP
  1214.  
  1215. DEF_THUMBNAIL_DOWN
  1216.  
  1217. DEF_BASE
  1218. DEF_IMPORTS
  1219. DEF_ENDLIST
  1220. DEF_REQUIRES
  1221. DEF_ENDLIST
  1222. DEF_IMPLEMENTS
  1223. DEF_ENDLIST
  1224. DEF_DECLARATION
  1225. // The RemoteArray class allows remote debugging of arrays.
  1226. // 
  1227. //      See Also:
  1228. //      RemoteValue, RemoteDebugger
  1229. // 
  1230. DEF_ENDLIST
  1231. DEF_METHOD
  1232. public final int getSize()
  1233. //    Return the number of elements in the array.
  1234. // 
  1235. DEF_ENDLIST
  1236. DEF_METHOD
  1237. public String typeName()
  1238. //    Return this RemoteValue's type ("array").
  1239. //   
  1240. //      Overrides:
  1241. //      typeName in class RemoteObject
  1242. //   
  1243. // 
  1244. DEF_ENDLIST
  1245. DEF_METHOD
  1246. public String arrayTypeName(int type)
  1247. //    Return the element type as a string.
  1248. // 
  1249. DEF_ENDLIST
  1250. DEF_METHOD
  1251. public final int getElementType() throws Exception
  1252. //    Return the element type as a "TC_" constant, such as "TC_CHAR".
  1253. // 
  1254. DEF_ENDLIST
  1255. DEF_METHOD
  1256. public final RemoteValue getElement(int index) throws Exception
  1257. //    Return an array element.
  1258. //   
  1259. //      Parameters:
  1260. //      index - the index of the element
  1261. //      Returns:
  1262. //      the element as a RemoteValue
  1263. //      Throws: ArrayIndexOutOfBoundsException
  1264. //      when the index is greater than the size of the array
  1265. //   
  1266. // 
  1267. DEF_ENDLIST
  1268. DEF_METHOD
  1269. public final RemoteValue[] getElements() throws Exception
  1270. //    Returns a copy of the array as instances of RemoteValue.
  1271. // 
  1272. DEF_ENDLIST
  1273. DEF_METHOD
  1274. public final RemoteValue[] getElements(int beginIndex,
  1275.                                        int endIndex) throws Exception
  1276. //    Returns a copy of a portion of the array as instances of RemoteValue.
  1277. //   
  1278. //      Parameters:
  1279. //      beginIndex - the beginning array index
  1280. //      endIndex - the final array index
  1281. //      Throws: ArrayIndexOutOfBoundsException
  1282. //      when the index is greater than the size of the array
  1283. //   
  1284. // 
  1285. DEF_ENDLIST
  1286. DEF_METHOD
  1287. public String description()
  1288. //    Return a description of the array.
  1289. //   
  1290. //      Overrides:
  1291. //      description in class RemoteObject
  1292. //   
  1293. // 
  1294. DEF_ENDLIST
  1295. DEF_METHOD
  1296. public String toString()
  1297. //    Return a string version of the array.
  1298. //   
  1299. //      Overrides:
  1300. //      toString in class RemoteObject
  1301. //   
  1302. // 
  1303. DEF_ENDLIST
  1304. DEF_ENDCOMPONENT
  1305. DEF_COMPONENTNAME
  1306. RemoteBoolean
  1307. DEF_SUPERCLASS
  1308. RemoteValue
  1309. DEF_SUPERCOMPONENT
  1310.  
  1311. DEF_PACKAGE
  1312. java
  1313. lang
  1314. DEF_ENDLIST
  1315. DEF_SUBCOMPONENTLIST
  1316. DEF_ENDLIST
  1317. DEF_SUBCOMPONENTCLASSLIST
  1318. DEF_ENDLIST
  1319. DEF_CATEGORY
  1320.  
  1321. DEF_BITMAP
  1322.  
  1323. DEF_THUMBNAIL_UP
  1324.  
  1325. DEF_THUMBNAIL_DOWN
  1326.  
  1327. DEF_BASE
  1328. DEF_IMPORTS
  1329. DEF_ENDLIST
  1330. DEF_REQUIRES
  1331. DEF_ENDLIST
  1332. DEF_IMPLEMENTS
  1333. DEF_ENDLIST
  1334. DEF_DECLARATION
  1335. // The RemoteBoolean class extends RemoteValue for booleans.
  1336. // 
  1337. //      See Also:
  1338. //      RemoteValue, RemoteDebugger
  1339. // 
  1340. DEF_ENDLIST
  1341. DEF_METHOD
  1342. public boolean get()
  1343. //    Return the boolean's value.
  1344. // 
  1345. DEF_ENDLIST
  1346. DEF_METHOD
  1347. public String typeName()
  1348. //    Print this RemoteValue's type ("boolean").
  1349. //   
  1350. //      Overrides:
  1351. //      typeName in class RemoteValue
  1352. //   
  1353. // 
  1354. DEF_ENDLIST
  1355. DEF_METHOD
  1356. public String toString()
  1357. //    Return the boolean's value as a string.
  1358. //   
  1359. //      Overrides:
  1360. //      toString in class Object
  1361. //   
  1362. // 
  1363. DEF_ENDLIST
  1364. DEF_ENDCOMPONENT
  1365. DEF_COMPONENTNAME
  1366. RemoteByte
  1367. DEF_SUPERCLASS
  1368. RemoteValue
  1369. DEF_SUPERCOMPONENT
  1370.  
  1371. DEF_PACKAGE
  1372. java
  1373. lang
  1374. DEF_ENDLIST
  1375. DEF_SUBCOMPONENTLIST
  1376. DEF_ENDLIST
  1377. DEF_SUBCOMPONENTCLASSLIST
  1378. DEF_ENDLIST
  1379. DEF_CATEGORY
  1380.  
  1381. DEF_BITMAP
  1382.  
  1383. DEF_THUMBNAIL_UP
  1384.  
  1385. DEF_THUMBNAIL_DOWN
  1386.  
  1387. DEF_BASE
  1388. DEF_IMPORTS
  1389. DEF_ENDLIST
  1390. DEF_REQUIRES
  1391. DEF_ENDLIST
  1392. DEF_IMPLEMENTS
  1393. DEF_ENDLIST
  1394. DEF_DECLARATION
  1395. // The RemoteByte class extends RemoteValue for bytes.
  1396. // 
  1397. //      See Also:
  1398. //      RemoteValue, RemoteDebugger
  1399. // 
  1400. DEF_ENDLIST
  1401. DEF_METHOD
  1402. public byte get()
  1403. //    Return the byte's value.
  1404. // 
  1405. DEF_ENDLIST
  1406. DEF_METHOD
  1407. public String typeName()
  1408. //    Print this RemoteValue's type ("byte").
  1409. //   
  1410. //      Overrides:
  1411. //      typeName in class RemoteValue
  1412. //   
  1413. // 
  1414. DEF_ENDLIST
  1415. DEF_METHOD
  1416. public String toString()
  1417. //    Return the byte's value as a string.
  1418. //   
  1419. //      Overrides:
  1420. //      toString in class Object
  1421. //   
  1422. // 
  1423. DEF_ENDLIST
  1424. DEF_ENDCOMPONENT
  1425. DEF_COMPONENTNAME
  1426. RemoteChar
  1427. DEF_SUPERCLASS
  1428. RemoteValue
  1429. DEF_SUPERCOMPONENT
  1430.  
  1431. DEF_PACKAGE
  1432. java
  1433. lang
  1434. DEF_ENDLIST
  1435. DEF_SUBCOMPONENTLIST
  1436. DEF_ENDLIST
  1437. DEF_SUBCOMPONENTCLASSLIST
  1438. DEF_ENDLIST
  1439. DEF_CATEGORY
  1440.  
  1441. DEF_BITMAP
  1442.  
  1443. DEF_THUMBNAIL_UP
  1444.  
  1445. DEF_THUMBNAIL_DOWN
  1446.  
  1447. DEF_BASE
  1448. DEF_IMPORTS
  1449. DEF_ENDLIST
  1450. DEF_REQUIRES
  1451. DEF_ENDLIST
  1452. DEF_IMPLEMENTS
  1453. DEF_ENDLIST
  1454. DEF_DECLARATION
  1455. // The RemoteChar class extends RemoteValue for chars.
  1456. // 
  1457. //      See Also:
  1458. //      RemoteValue, RemoteDebugger
  1459. // 
  1460. DEF_ENDLIST
  1461. DEF_METHOD
  1462. public char get()
  1463. //    Return the char's value.
  1464. // 
  1465. DEF_ENDLIST
  1466. DEF_METHOD
  1467. public String typeName()
  1468. //    Print this RemoteValue's type ("char").
  1469. //   
  1470. //      Overrides:
  1471. //      typeName in class RemoteValue
  1472. //   
  1473. // 
  1474. DEF_ENDLIST
  1475. DEF_METHOD
  1476. public String toString()
  1477. //    Return the char's value as a string.
  1478. //   
  1479. //      Overrides:
  1480. //      toString in class Object
  1481. //   
  1482. // 
  1483. DEF_ENDLIST
  1484. DEF_ENDCOMPONENT
  1485. DEF_COMPONENTNAME
  1486. RemoteClass
  1487. DEF_SUPERCLASS
  1488. RemoteObject
  1489. DEF_SUPERCOMPONENT
  1490.  
  1491. DEF_PACKAGE
  1492. java
  1493. lang
  1494. DEF_ENDLIST
  1495. DEF_SUBCOMPONENTLIST
  1496. DEF_ENDLIST
  1497. DEF_SUBCOMPONENTCLASSLIST
  1498. DEF_ENDLIST
  1499. DEF_CATEGORY
  1500.  
  1501. DEF_BITMAP
  1502.  
  1503. DEF_THUMBNAIL_UP
  1504.  
  1505. DEF_THUMBNAIL_DOWN
  1506.  
  1507. DEF_BASE
  1508. DEF_IMPORTS
  1509. DEF_ENDLIST
  1510. DEF_REQUIRES
  1511. DEF_ENDLIST
  1512. DEF_IMPLEMENTS
  1513. DEF_ENDLIST
  1514. DEF_DECLARATION
  1515. // The RemoteClass class allows access to a class in a remote Java
  1516. // interpreter.
  1517. // 
  1518. //      See Also:
  1519. //      RemoteDebugger
  1520. // 
  1521. DEF_ENDLIST
  1522. DEF_METHOD
  1523. public String getName() throws Exception
  1524. //    Returns the name of the class.
  1525. // 
  1526. DEF_ENDLIST
  1527. DEF_METHOD
  1528. public String typeName() throws Exception
  1529. //    Returns the name of the class as its type.
  1530. //   
  1531. //      Overrides:
  1532. //      typeName in class RemoteObject
  1533. //   
  1534. // 
  1535. DEF_ENDLIST
  1536. DEF_METHOD
  1537. public boolean isInterface() throws Exception
  1538. //    Is this RemoteClass an interface?
  1539. // 
  1540. DEF_ENDLIST
  1541. DEF_METHOD
  1542. public RemoteClass getSuperclass() throws Exception
  1543. //    Return the superclass for this class.
  1544. // 
  1545. DEF_ENDLIST
  1546. DEF_METHOD
  1547. public RemoteObject getClassLoader() throws Exception
  1548. //    Return the classloader for this class.
  1549. // 
  1550. DEF_ENDLIST
  1551. DEF_METHOD
  1552. public RemoteClass[] getInterfaces() throws Exception
  1553. //    Return the interfaces for this class.
  1554. // 
  1555. DEF_ENDLIST
  1556. DEF_METHOD
  1557. public String getSourceFileName()
  1558. //    Get the name of the source file referenced by this stackframe.
  1559. // 
  1560. DEF_ENDLIST
  1561. DEF_METHOD
  1562. public InputStream getSourceFile() throws Exception
  1563. //    Get the source file referenced by this stackframe.
  1564. // 
  1565. DEF_ENDLIST
  1566. DEF_METHOD
  1567. public RemoteField[] getFields() throws Exception
  1568. //    Return all the static fields for this class.
  1569. //   
  1570. //      Overrides:
  1571. //      getFields in class RemoteObject
  1572. //   
  1573. // 
  1574. DEF_ENDLIST
  1575. DEF_METHOD
  1576. public RemoteField[] getStaticFields() throws Exception
  1577. //    Return all the static fields for this class.
  1578. // 
  1579. DEF_ENDLIST
  1580. DEF_METHOD
  1581. public RemoteField[] getInstanceFields() throws Exception
  1582. //    Return all the instance fields for this class.
  1583. //  Note:  because this is a RemoteClass method, only the name and
  1584. //         type methods will be valid, not the data.
  1585. // 
  1586. DEF_ENDLIST
  1587. DEF_METHOD
  1588. public RemoteField getField(int n) throws Exception
  1589. //    Return the static field, specified by index.
  1590. //   
  1591. //      Throws: ArrayIndexOutOfBoundsException
  1592. //      when the index is greater than the number of instance variables
  1593. //      Overrides:
  1594. //      getField in class RemoteObject
  1595. //   
  1596. // 
  1597. DEF_ENDLIST
  1598. DEF_METHOD
  1599. public RemoteField getField(String name) throws Exception
  1600. //    Return the static field, specified by name.
  1601. //   
  1602. //      Overrides:
  1603. //      getField in class RemoteObject
  1604. //   
  1605. // 
  1606. DEF_ENDLIST
  1607. DEF_METHOD
  1608. public RemoteField getInstanceField(int n) throws Exception
  1609. //    Return the instance field, specified by its index.
  1610. // Note:  because this is a RemoteClass method, only the name and
  1611. //        type information is valid, not the data.
  1612. //   
  1613. //      Throws: ArrayIndexOutOfBoundsException
  1614. //      when the index is greater than the number of instance variables
  1615. //   
  1616. // 
  1617. DEF_ENDLIST
  1618. DEF_METHOD
  1619. public RemoteValue getFieldValue(int n) throws Exception
  1620. //    Return the value of a static field, specified by its index
  1621. //   
  1622. //      Overrides:
  1623. //      getFieldValue in class RemoteObject
  1624. //   
  1625. // 
  1626. DEF_ENDLIST
  1627. DEF_METHOD
  1628. public RemoteValue getFieldValue(String name) throws Exception
  1629. //    Return the value of a static field, specified by name.
  1630. //   
  1631. //      Overrides:
  1632. //      getFieldValue in class RemoteObject
  1633. //   
  1634. // 
  1635. DEF_ENDLIST
  1636. DEF_METHOD
  1637. public RemoteField getMethod(String name) throws Exception
  1638. //    Return the method, specified by name.
  1639. // 
  1640. DEF_ENDLIST
  1641. DEF_METHOD
  1642. public RemoteField[] getMethods() throws Exception
  1643. //    Return the class's methods.
  1644. // 
  1645. DEF_ENDLIST
  1646. DEF_METHOD
  1647. public String[] getMethodNames() throws Exception
  1648. //    Return the names of all methods supported by this class.
  1649. // 
  1650. DEF_ENDLIST
  1651. DEF_METHOD
  1652. public String setBreakpointLine(int lineno) throws Exception
  1653. //    Set a breakpoint at a specified source line number in a class.
  1654. //   
  1655. //      Parameters:
  1656. //      lineno - the line number where the breakpoint is set
  1657. //      Returns:
  1658. //      an empty string if successful, otherwise a description of the error.
  1659. //   
  1660. // 
  1661. DEF_ENDLIST
  1662. DEF_METHOD
  1663. public String setBreakpointMethod(RemoteField method) throws Exception
  1664. //    Set a breakpoint at the first line of a class method.
  1665. //   
  1666. //      Parameters:
  1667. //      method - the method where the breakpoint is set
  1668. //      Returns:
  1669. //      an empty string if successful, otherwise a description of the error.
  1670. //   
  1671. // 
  1672. DEF_ENDLIST
  1673. DEF_METHOD
  1674. public String clearBreakpoint(int pc) throws Exception
  1675. //    Clear a breakpoint at a specific address in a class.
  1676. //   
  1677. //      Parameters:
  1678. //      pc - the address of the breakpoint to be cleared
  1679. //      Returns:
  1680. //      an empty string if successful, otherwise a description of the error.
  1681. //   
  1682. // 
  1683. DEF_ENDLIST
  1684. DEF_METHOD
  1685. public String clearBreakpointLine(int lineno) throws Exception
  1686. //    Clear a breakpoint at a specified line.
  1687. //   
  1688. //      Parameters:
  1689. //      lineno - the line number of the breakpoint to be cleared
  1690. //      Returns:
  1691. //      an empty string if successful, otherwise a description of the error.
  1692. //   
  1693. // 
  1694. DEF_ENDLIST
  1695. DEF_METHOD
  1696. public String clearBreakpointMethod(RemoteField method) throws Exception
  1697. //    Clear a breakpoint at the start of a specified method.
  1698. //   
  1699. //      Parameters:
  1700. //      method - the method of the breakpoint to be cleared
  1701. //      Returns:
  1702. //      an empty string if successful, otherwise a description of the error.
  1703. //   
  1704. // 
  1705. DEF_ENDLIST
  1706. DEF_METHOD
  1707. public void catchExceptions() throws Exception
  1708. //    Enter the debugger when an instance of this class is thrown.
  1709. //   
  1710. //      Throws: ClassCastException
  1711. //      when this class isn't an exception class
  1712. //   
  1713. // 
  1714. DEF_ENDLIST
  1715. DEF_METHOD
  1716. public void ignoreExceptions() throws Exception
  1717. //    Don't enter the debugger when an instance of this class is thrown.
  1718. //   
  1719. //      Throws: ClassCastException
  1720. //      when this class isn't an exception class
  1721. //   
  1722. // 
  1723. DEF_ENDLIST
  1724. DEF_METHOD
  1725. public String description()
  1726. //    Return a (somewhat verbose) description.
  1727. //   
  1728. //      Overrides:
  1729. //      description in class RemoteObject
  1730. //   
  1731. // 
  1732. DEF_ENDLIST
  1733. DEF_METHOD
  1734. public String toString()
  1735. //    Return a (somewhat verbose) description.
  1736. //   
  1737. //      Overrides:
  1738. //      toString in class RemoteObject
  1739. //   
  1740. // 
  1741. DEF_ENDLIST
  1742. DEF_ENDCOMPONENT
  1743. DEF_COMPONENTNAME
  1744. RemoteDebugger
  1745. DEF_SUPERCLASS
  1746. Object
  1747. DEF_SUPERCOMPONENT
  1748.  
  1749. DEF_PACKAGE
  1750. java
  1751. lang
  1752. DEF_ENDLIST
  1753. DEF_SUBCOMPONENTLIST
  1754. DEF_ENDLIST
  1755. DEF_SUBCOMPONENTCLASSLIST
  1756. DEF_ENDLIST
  1757. DEF_CATEGORY
  1758.  
  1759. DEF_BITMAP
  1760.  
  1761. DEF_THUMBNAIL_UP
  1762.  
  1763. DEF_THUMBNAIL_DOWN
  1764.  
  1765. DEF_BASE
  1766. DEF_IMPORTS
  1767. DEF_ENDLIST
  1768. DEF_REQUIRES
  1769. DEF_ENDLIST
  1770. DEF_IMPLEMENTS
  1771. DEF_ENDLIST
  1772. DEF_DECLARATION
  1773. // The RemoteDebugger class defines a client interface to the Java debugging
  1774. // classes.  It is used to instantiate a connection with the Java interpreter
  1775. // being debugged.
  1776. DEF_ENDLIST
  1777. DEF_METHOD
  1778. public RemoteDebugger(String host,
  1779.                       String password,
  1780.                       DebuggerCallback client,
  1781.                       boolean verbose) throws Exception
  1782. //    Create a remote debugger, connecting it with a running Java
  1783. // interpreter.To connect to a running interpreter, it must be 
  1784. // started with the "-debug" option, whereupon it will print out 
  1785. // the password for that debugging session.
  1786. //   
  1787. //      Parameters:
  1788. //      host - the name of the system where a debuggable Java instance is running (default is localhost).
  1789. //      password - the password reported by the debuggable Java instance.  This should be null when starting a client interpreter.
  1790. //      client - the object to which notification messages are sent (it must support the DebuggerCallback interface)
  1791. //      verbose - turn on internal debugger message text
  1792. //   
  1793. // 
  1794. DEF_ENDLIST
  1795. DEF_METHOD
  1796. public RemoteDebugger(String javaArgs,
  1797.                       DebuggerCallback client,
  1798.                       boolean verbose) throws Exception
  1799. //    Create a remote debugger, and connect it to a new client interpreter.
  1800. //   
  1801. //      Parameters:
  1802. //      javaArgs - optional java command-line parameters, such as -classpath
  1803. //      client - the object to which notification messages are sent (it must support the DebuggerCallback interface)
  1804. //      verbose - turn on internal debugger message text
  1805. //   
  1806. // 
  1807. DEF_ENDLIST
  1808. DEF_METHOD
  1809. public void close()
  1810. //    Close the connection to the remote debugging agent.
  1811. // 
  1812. DEF_ENDLIST
  1813. DEF_METHOD
  1814. public RemoteObject get(Integer id)
  1815. //    Get an object from the remote object cache.
  1816. //   
  1817. //      Parameters:
  1818. //      id - the remote object's id
  1819. //      Returns:
  1820. //      the specified RemoteObject, or null if not cached.
  1821. //   
  1822. // 
  1823. DEF_ENDLIST
  1824. DEF_METHOD
  1825. public RemoteClass[] listClasses() throws Exception
  1826. //    List the currently known classes.
  1827. // 
  1828. DEF_ENDLIST
  1829. DEF_METHOD
  1830. public RemoteClass findClass(String name) throws Exception
  1831. //    Find a specified class.  If the class isn't already known by the
  1832. // remote debugger, the lookup request will be passed to the Java
  1833. // interpreter being debugged.
  1834. // NOTE:  Substrings, such as "String" for "java.lang.String" will
  1835. // return with the first match, and will not be successfully found
  1836. // if the request is passed to the remote interpreter.
  1837. //   
  1838. //      Parameters:
  1839. //      name - the name (or a substring of the name)of the class
  1840. //      Returns:
  1841. //      the specified (Remote)Class, or null if not found.
  1842. //   
  1843. // 
  1844. DEF_ENDLIST
  1845. DEF_METHOD
  1846. public RemoteThreadGroup[] listThreadGroups(RemoteThreadGroup tg) throws Exception
  1847. //    List threadgroups
  1848. //   
  1849. //      Parameters:
  1850. //      tg - the threadgroup which hold the groups to be listed, or null for all threadgroups
  1851. //   
  1852. // 
  1853. DEF_ENDLIST
  1854. DEF_METHOD
  1855. public void gc(RemoteObject save_list[]) throws Exception
  1856. //    Free all objects referenced by the debugger.
  1857. // The remote debugger maintains a copy of each object it has examined,
  1858. // so that references won't become invalidated by the garbage collector
  1859. // of the Java interpreter being debugged.  The gc() method frees all
  1860. // all of these references, except those specified to save.
  1861. //   
  1862. //      Parameters:
  1863. //      save_list - the list of objects to save.
  1864. //   
  1865. // 
  1866. DEF_ENDLIST
  1867. DEF_METHOD
  1868. public void trace(boolean traceOn) throws Exception
  1869. //    Turn on/off method call tracing.
  1870. // When turned on, each method call is reported to the stdout of the
  1871. // Java interpreter being debugged.  This output is not captured in
  1872. // any way by the remote debugger.
  1873. //   
  1874. //      Parameters:
  1875. //      traceOn - turn tracing on or off
  1876. //   
  1877. // 
  1878. DEF_ENDLIST
  1879. DEF_METHOD
  1880. public void itrace(boolean traceOn) throws Exception
  1881. //    Turn on/off instruction tracing.
  1882. // When turned on, each Java instruction is reported to the stdout of the
  1883. // Java interpreter being debugged.  This output is not captured in
  1884. // any way by the remote debugger.
  1885. //   
  1886. //      Parameters:
  1887. //      traceOn - turn tracing on or off
  1888. //   
  1889. // 
  1890. DEF_ENDLIST
  1891. DEF_METHOD
  1892. public int totalMemory() throws Exception
  1893. //    Report the total memory usage of the Java interpreter being debugged.
  1894. // 
  1895. DEF_ENDLIST
  1896. DEF_METHOD
  1897. public int freeMemory() throws Exception
  1898. //    Report the free memory available to the Java interpreter being debugged.
  1899. // 
  1900. DEF_ENDLIST
  1901. DEF_METHOD
  1902. public RemoteThreadGroup run(int argc,
  1903.                              String argv[]) throws Exception
  1904. //    Load and run a runnable Java class, with any optional parameters.
  1905. // The class is started inside a new threadgroup in the Java interpreter
  1906. // being debugged.
  1907. // NOTE:  Although it is possible to run multiple runnable classes from
  1908. // the same Java interpreter, there is no guarantee that all applets
  1909. // will work cleanly with each other.  For example, two applets may want
  1910. // exclusive access to the same shared resource,such as a specific port.
  1911. //   
  1912. //      Parameters:
  1913. //      argc - the number of parameters
  1914. //      argv - the array of parameters:  the class to be run is
  1915. // first, followed by any optional parameters used by that class.
  1916. //      Returns:
  1917. //      the new ThreadGroup the class is running in, or null on error
  1918. //   
  1919. // 
  1920. DEF_ENDLIST
  1921. DEF_METHOD
  1922. public String[] listBreakpoints() throws Exception
  1923. //    Return a list of the breakpoints which are currently set.
  1924. //   
  1925. //      Returns:
  1926. //      an array of Strings of the form "class_name:line_number".
  1927. //   
  1928. // 
  1929. DEF_ENDLIST
  1930. DEF_METHOD
  1931. public String[] getExceptionCatchList() throws Exception
  1932. //    Return the list of the exceptions the debugger will stop on.
  1933. //   
  1934. //      Returns:
  1935. //      an array of exception class names, which may be zero-length.
  1936. //   
  1937. // 
  1938. DEF_ENDLIST
  1939. DEF_METHOD
  1940. public String getSourcePath() throws Exception
  1941. //    Return the source file path the Agent is currently using.
  1942. //   
  1943. //      Returns:
  1944. //      a string consisting of a list of colon-delineated paths.
  1945. //   
  1946. // 
  1947. DEF_ENDLIST
  1948. DEF_METHOD
  1949. public void setSourcePath(String pathList) throws Exception
  1950. //    Specify the list of paths to use when searching for a source file.
  1951. //   
  1952. //      Parameters:
  1953. //      pathList - a string consisting of a list of colon-delineated paths.
  1954. //   
  1955. // 
  1956. DEF_ENDLIST
  1957. DEF_ENDCOMPONENT
  1958. DEF_COMPONENTNAME
  1959. RemoteDouble
  1960. DEF_SUPERCLASS
  1961. RemoteValue
  1962. DEF_SUPERCOMPONENT
  1963.  
  1964. DEF_PACKAGE
  1965. java
  1966. lang
  1967. DEF_ENDLIST
  1968. DEF_SUBCOMPONENTLIST
  1969. DEF_ENDLIST
  1970. DEF_SUBCOMPONENTCLASSLIST
  1971. DEF_ENDLIST
  1972. DEF_CATEGORY
  1973.  
  1974. DEF_BITMAP
  1975.  
  1976. DEF_THUMBNAIL_UP
  1977.  
  1978. DEF_THUMBNAIL_DOWN
  1979.  
  1980. DEF_BASE
  1981. DEF_IMPORTS
  1982. DEF_ENDLIST
  1983. DEF_REQUIRES
  1984. DEF_ENDLIST
  1985. DEF_IMPLEMENTS
  1986. DEF_ENDLIST
  1987. DEF_DECLARATION
  1988. // The RemoteDouble class extends RemoteValue for doubles.
  1989. // 
  1990. //      See Also:
  1991. //      RemoteValue, RemoteDebugger
  1992. // 
  1993. DEF_ENDLIST
  1994. DEF_METHOD
  1995. public double get()
  1996. //    Return the double's value.
  1997. // 
  1998. DEF_ENDLIST
  1999. DEF_METHOD
  2000. public String typeName()
  2001. //    Print this RemoteValue's type ("double").
  2002. //   
  2003. //      Overrides:
  2004. //      typeName in class RemoteValue
  2005. //   
  2006. // 
  2007. DEF_ENDLIST
  2008. DEF_METHOD
  2009. public String toString()
  2010. //    Return the double's value as a string.
  2011. //   
  2012. //      Overrides:
  2013. //      toString in class Object
  2014. //   
  2015. // 
  2016. DEF_ENDLIST
  2017. DEF_ENDCOMPONENT
  2018. DEF_COMPONENTNAME
  2019. RemoteField
  2020. DEF_SUPERCLASS
  2021. Field
  2022. DEF_SUPERCOMPONENT
  2023.  
  2024. DEF_PACKAGE
  2025. java
  2026. lang
  2027. DEF_ENDLIST
  2028. DEF_SUBCOMPONENTLIST
  2029. DEF_ENDLIST
  2030. DEF_SUBCOMPONENTCLASSLIST
  2031. DEF_ENDLIST
  2032. DEF_CATEGORY
  2033.  
  2034. DEF_BITMAP
  2035.  
  2036. DEF_THUMBNAIL_UP
  2037.  
  2038. DEF_THUMBNAIL_DOWN
  2039.  
  2040. DEF_BASE
  2041. DEF_IMPORTS
  2042. DEF_ENDLIST
  2043. DEF_REQUIRES
  2044. DEF_ENDLIST
  2045. DEF_IMPLEMENTS
  2046. AgentConstants
  2047. DEF_ENDLIST
  2048. DEF_DECLARATION
  2049. // A RemoteField allows access to a variable or method of an object
  2050. // or class in a remote Java interpreter.
  2051. // 
  2052. //      See Also:
  2053. //      RemoteStackVariable
  2054. // 
  2055. DEF_ENDLIST
  2056. DEF_METHOD
  2057. public String getName()
  2058. //    Returns the name of the field.
  2059. // 
  2060. DEF_ENDLIST
  2061. DEF_METHOD
  2062. public String getType()
  2063. //    Returns a type string describing the field.
  2064. // 
  2065. DEF_ENDLIST
  2066. DEF_METHOD
  2067. public String getModifiers()
  2068. //    Returns a string with the field's modifiers, such as "public",
  2069. // "static", "final", etc.  If the field has no modifiers, an empty
  2070. // String is returned.
  2071. // 
  2072. DEF_ENDLIST
  2073. DEF_METHOD
  2074. public boolean isStatic()
  2075. //    Returns whether the field is static (a class variable or method).
  2076. // 
  2077. DEF_ENDLIST
  2078. DEF_METHOD
  2079. public String toString()
  2080. //    Returns a String that represents the value of this Object.
  2081. //   
  2082. //      Overrides:
  2083. //      toString in class Object
  2084. //   
  2085. // 
  2086. DEF_ENDLIST
  2087. DEF_ENDCOMPONENT
  2088. DEF_COMPONENTNAME
  2089. RemoteFloat
  2090. DEF_SUPERCLASS
  2091. RemoteValue
  2092. DEF_SUPERCOMPONENT
  2093.  
  2094. DEF_PACKAGE
  2095. java
  2096. lang
  2097. DEF_ENDLIST
  2098. DEF_SUBCOMPONENTLIST
  2099. DEF_ENDLIST
  2100. DEF_SUBCOMPONENTCLASSLIST
  2101. DEF_ENDLIST
  2102. DEF_CATEGORY
  2103.  
  2104. DEF_BITMAP
  2105.  
  2106. DEF_THUMBNAIL_UP
  2107.  
  2108. DEF_THUMBNAIL_DOWN
  2109.  
  2110. DEF_BASE
  2111. DEF_IMPORTS
  2112. DEF_ENDLIST
  2113. DEF_REQUIRES
  2114. DEF_ENDLIST
  2115. DEF_IMPLEMENTS
  2116. DEF_ENDLIST
  2117. DEF_DECLARATION
  2118. // The RemoteFloat class extends RemoteValue for floats.
  2119. // 
  2120. //      See Also:
  2121. //      RemoteValue, RemoteDebugger
  2122. // 
  2123. DEF_ENDLIST
  2124. DEF_METHOD
  2125. public float get()
  2126. //    Return the float's value.
  2127. // 
  2128. DEF_ENDLIST
  2129. DEF_METHOD
  2130. public String typeName()
  2131. //    Print this RemoteValue's type ("float").
  2132. //   
  2133. //      Overrides:
  2134. //      typeName in class RemoteValue
  2135. //   
  2136. // 
  2137. DEF_ENDLIST
  2138. DEF_METHOD
  2139. public String toString()
  2140. //    Return the float's value as a string.
  2141. //   
  2142. //      Overrides:
  2143. //      toString in class Object
  2144. //   
  2145. // 
  2146. DEF_ENDLIST
  2147. DEF_ENDCOMPONENT
  2148. DEF_COMPONENTNAME
  2149. RemoteInt
  2150. DEF_SUPERCLASS
  2151. RemoteValue
  2152. DEF_SUPERCOMPONENT
  2153.  
  2154. DEF_PACKAGE
  2155. java
  2156. lang
  2157. DEF_ENDLIST
  2158. DEF_SUBCOMPONENTLIST
  2159. DEF_ENDLIST
  2160. DEF_SUBCOMPONENTCLASSLIST
  2161. DEF_ENDLIST
  2162. DEF_CATEGORY
  2163.  
  2164. DEF_BITMAP
  2165.  
  2166. DEF_THUMBNAIL_UP
  2167.  
  2168. DEF_THUMBNAIL_DOWN
  2169.  
  2170. DEF_BASE
  2171. DEF_IMPORTS
  2172. DEF_ENDLIST
  2173. DEF_REQUIRES
  2174. DEF_ENDLIST
  2175. DEF_IMPLEMENTS
  2176. DEF_ENDLIST
  2177. DEF_DECLARATION
  2178. // The RemoteInt class extends RemoteValue for ints.
  2179. // 
  2180. //      See Also:
  2181. //      RemoteValue, RemoteDebugger
  2182. // 
  2183. DEF_ENDLIST
  2184. DEF_METHOD
  2185. public RemoteInt(int i)
  2186. //    Return the int's value.
  2187. // 
  2188. DEF_ENDLIST
  2189. DEF_METHOD
  2190. public String typeName()
  2191. //    Print this RemoteValue's type ("int").
  2192. //   
  2193. //      Overrides:
  2194. //      typeName in class RemoteValue
  2195. //   
  2196. // 
  2197. DEF_ENDLIST
  2198. DEF_METHOD
  2199. public String toString()
  2200. //    Return the int's value as a string.
  2201. //   
  2202. //      Overrides:
  2203. //      toString in class Object
  2204. //   
  2205. // 
  2206. DEF_ENDLIST
  2207. DEF_ENDCOMPONENT
  2208. DEF_COMPONENTNAME
  2209. RemoteLong
  2210. DEF_SUPERCLASS
  2211. RemoteValue
  2212. DEF_SUPERCOMPONENT
  2213.  
  2214. DEF_PACKAGE
  2215. java
  2216. lang
  2217. DEF_ENDLIST
  2218. DEF_SUBCOMPONENTLIST
  2219. DEF_ENDLIST
  2220. DEF_SUBCOMPONENTCLASSLIST
  2221. DEF_ENDLIST
  2222. DEF_CATEGORY
  2223.  
  2224. DEF_BITMAP
  2225.  
  2226. DEF_THUMBNAIL_UP
  2227.  
  2228. DEF_THUMBNAIL_DOWN
  2229.  
  2230. DEF_BASE
  2231. DEF_IMPORTS
  2232. DEF_ENDLIST
  2233. DEF_REQUIRES
  2234. DEF_ENDLIST
  2235. DEF_IMPLEMENTS
  2236. DEF_ENDLIST
  2237. DEF_DECLARATION
  2238. // The RemoteLong class extends RemoteValue for longs.
  2239. // 
  2240. //      See Also:
  2241. //      RemoteValue, RemoteDebugger
  2242. // 
  2243. DEF_ENDLIST
  2244. DEF_METHOD
  2245. public long get()
  2246. //    Return the long's value.
  2247. // 
  2248. DEF_ENDLIST
  2249. DEF_METHOD
  2250. public String typeName()
  2251. //    Print this RemoteValue's type ("long").
  2252. //   
  2253. //      Overrides:
  2254. //      typeName in class RemoteValue
  2255. //   
  2256. // 
  2257. DEF_ENDLIST
  2258. DEF_METHOD
  2259. public String toString()
  2260. //    Return the long's value as a string.
  2261. //   
  2262. //      Overrides:
  2263. //      toString in class Object
  2264. //   
  2265. // 
  2266. DEF_ENDLIST
  2267. DEF_ENDCOMPONENT
  2268. DEF_COMPONENTNAME
  2269. RemoteObject
  2270. DEF_SUPERCLASS
  2271. RemoteValue
  2272. DEF_SUPERCOMPONENT
  2273.  
  2274. DEF_PACKAGE
  2275. java
  2276. lang
  2277. DEF_ENDLIST
  2278. DEF_SUBCOMPONENTLIST
  2279. DEF_ENDLIST
  2280. DEF_SUBCOMPONENTCLASSLIST
  2281. DEF_ENDLIST
  2282. DEF_CATEGORY
  2283.  
  2284. DEF_BITMAP
  2285.  
  2286. DEF_THUMBNAIL_UP
  2287.  
  2288. DEF_THUMBNAIL_DOWN
  2289.  
  2290. DEF_BASE
  2291. DEF_IMPORTS
  2292. DEF_ENDLIST
  2293. DEF_REQUIRES
  2294. DEF_ENDLIST
  2295. DEF_IMPLEMENTS
  2296. DEF_ENDLIST
  2297. DEF_DECLARATION
  2298. // The RemoteObject class allows access to an object in a remote
  2299. // Java interpreter.  
  2300. // Remote objects are not created by the local debugger, but are returned
  2301. // by the remote debugging agent when queried for the values of instance
  2302. // or static variables of known objects (such as classes), or from local
  2303. // (stack) variables.
  2304. // Each remote object has a reference cached by the remote Java interpreter,
  2305. // so that the object will not be garbage-collected during examination.  The
  2306. // RemoteDebugger's gc() operation frees references to objects that are no
  2307. // longer being examined.
  2308. // 
  2309. //      See Also:
  2310. //      RemoteDebugger, RemoteClass, RemoteString, RemoteThread, RemoteThreadGroup
  2311. // 
  2312. DEF_ENDLIST
  2313. DEF_METHOD
  2314. public String typeName() throws Exception
  2315. //    Returns the RemoteValue's type name ("Object").
  2316. //   
  2317. //      Overrides:
  2318. //      typeName in class RemoteValue
  2319. //   
  2320. // 
  2321. DEF_ENDLIST
  2322. DEF_METHOD
  2323. public final int getId()
  2324. //    Returns the id of the object.
  2325. // 
  2326. DEF_ENDLIST
  2327. DEF_METHOD
  2328. public final RemoteClass getClazz()
  2329. //    Returns the object's class.
  2330. // 
  2331. DEF_ENDLIST
  2332. DEF_METHOD
  2333. public RemoteValue getFieldValue(int n) throws Exception
  2334. //    Returns the value of an object's instance variable.
  2335. //   
  2336. //      Parameters:
  2337. //      n - the slot number of the variable to be returned.
  2338. //   
  2339. // 
  2340. DEF_ENDLIST
  2341. DEF_METHOD
  2342. public RemoteValue getFieldValue(String name) throws Exception
  2343. //    Returns the value of an object's instance variable.
  2344. //   
  2345. //      Parameters:
  2346. //      name - the name of the instance variable
  2347. //      Returns:
  2348. //      the variable as a RemoteValue, or null if name not found.
  2349. //   
  2350. // 
  2351. DEF_ENDLIST
  2352. DEF_METHOD
  2353. public RemoteField[] getFields() throws Exception
  2354. //    Return the instance (non-static) fields of an object.
  2355. // 
  2356. DEF_ENDLIST
  2357. DEF_METHOD
  2358. public RemoteField getField(int n) throws Exception
  2359. //    Return an instance variable, specified by slot number.
  2360. //   
  2361. //      Parameters:
  2362. //      n - the slot number of the variable to be returned.
  2363. //   
  2364. // 
  2365. DEF_ENDLIST
  2366. DEF_METHOD
  2367. public RemoteField getField(String name) throws Exception
  2368. //    Return an instance variable, specified by name.
  2369. //   
  2370. //      Parameters:
  2371. //      name - the name of the instance variable
  2372. //      Returns:
  2373. //      the variable as a RemoteField, or null if name not found.
  2374. //   
  2375. // 
  2376. DEF_ENDLIST
  2377. DEF_METHOD
  2378. public String description()
  2379. //    Return a description of the object.
  2380. //   
  2381. //      Overrides:
  2382. //      description in class RemoteValue
  2383. //   
  2384. // 
  2385. DEF_ENDLIST
  2386. DEF_METHOD
  2387. public String toString()
  2388. //    Return object as a string.
  2389. //   
  2390. //      Overrides:
  2391. //      toString in class Object
  2392. //   
  2393. // 
  2394. DEF_ENDLIST
  2395. DEF_ENDCOMPONENT
  2396. DEF_COMPONENTNAME
  2397. RemoteShort
  2398. DEF_SUPERCLASS
  2399. RemoteValue
  2400. DEF_SUPERCOMPONENT
  2401.  
  2402. DEF_PACKAGE
  2403. java
  2404. lang
  2405. DEF_ENDLIST
  2406. DEF_SUBCOMPONENTLIST
  2407. DEF_ENDLIST
  2408. DEF_SUBCOMPONENTCLASSLIST
  2409. DEF_ENDLIST
  2410. DEF_CATEGORY
  2411.  
  2412. DEF_BITMAP
  2413.  
  2414. DEF_THUMBNAIL_UP
  2415.  
  2416. DEF_THUMBNAIL_DOWN
  2417.  
  2418. DEF_BASE
  2419. DEF_IMPORTS
  2420. DEF_ENDLIST
  2421. DEF_REQUIRES
  2422. DEF_ENDLIST
  2423. DEF_IMPLEMENTS
  2424. DEF_ENDLIST
  2425. DEF_DECLARATION
  2426. // The RemoteShort class extends RemoteValue for shorts.
  2427. // 
  2428. //      See Also:
  2429. //      RemoteValue, RemoteDebugger
  2430. // 
  2431. DEF_ENDLIST
  2432. DEF_METHOD
  2433. public short get()
  2434. //    Return the short's value.
  2435. // 
  2436. DEF_ENDLIST
  2437. DEF_METHOD
  2438. public String typeName()
  2439. //    Print this RemoteValue's type ("short").
  2440. //   
  2441. //      Overrides:
  2442. //      typeName in class RemoteValue
  2443. //   
  2444. // 
  2445. DEF_ENDLIST
  2446. DEF_METHOD
  2447. public String toString()
  2448. //    Return the short's value as a string.
  2449. //   
  2450. //      Overrides:
  2451. //      toString in class Object
  2452. //   
  2453. // 
  2454. DEF_ENDLIST
  2455. DEF_ENDCOMPONENT
  2456. DEF_COMPONENTNAME
  2457. RemoteStackFrame
  2458. DEF_SUPERCLASS
  2459. StackFrame
  2460. DEF_SUPERCOMPONENT
  2461.  
  2462. DEF_PACKAGE
  2463. java
  2464. lang
  2465. DEF_ENDLIST
  2466. DEF_SUBCOMPONENTLIST
  2467. DEF_ENDLIST
  2468. DEF_SUBCOMPONENTCLASSLIST
  2469. DEF_ENDLIST
  2470. DEF_CATEGORY
  2471.  
  2472. DEF_BITMAP
  2473.  
  2474. DEF_THUMBNAIL_UP
  2475.  
  2476. DEF_THUMBNAIL_DOWN
  2477.  
  2478. DEF_BASE
  2479. DEF_IMPORTS
  2480. DEF_ENDLIST
  2481. DEF_REQUIRES
  2482. DEF_ENDLIST
  2483. DEF_IMPLEMENTS
  2484. DEF_ENDLIST
  2485. DEF_DECLARATION
  2486. // The RemoteStackFrame class provides access to a stackframe of a
  2487. // suspended thread.
  2488. // 
  2489. //      See Also:
  2490. //      RemoteDebugger, RemoteThread
  2491. // 
  2492. DEF_ENDLIST
  2493. DEF_METHOD
  2494. public RemoteStackVariable getLocalVariable(String name) throws Exception
  2495. //    Return a specific (named) stack variable.  A slot number of -1
  2496. // indicates that the variable is not currently in scope.
  2497. // 
  2498. DEF_ENDLIST
  2499. DEF_METHOD
  2500. public RemoteStackVariable[] getLocalVariables() throws Exception
  2501. //    Return an array of all valid local variables and method arguments
  2502. // for this stack frame.
  2503. // 
  2504. DEF_ENDLIST
  2505. DEF_METHOD
  2506. public int getLineNumber()
  2507. //    Return the source file line number.
  2508. // 
  2509. DEF_ENDLIST
  2510. DEF_METHOD
  2511. public String getMethodName()
  2512. //    Get the method name referenced by this stackframe.
  2513. // 
  2514. DEF_ENDLIST
  2515. DEF_METHOD
  2516. public int getPC()
  2517. //    Get the program counter referenced by this stackframe.
  2518. // 
  2519. DEF_ENDLIST
  2520. DEF_METHOD
  2521. public RemoteClass getRemoteClass()
  2522. //    Get the class this stackframe references.
  2523. // 
  2524. DEF_ENDLIST
  2525. DEF_ENDCOMPONENT
  2526. DEF_COMPONENTNAME
  2527. RemoteStackVariable
  2528. DEF_SUPERCLASS
  2529. LocalVariable
  2530. DEF_SUPERCOMPONENT
  2531.  
  2532. DEF_PACKAGE
  2533. java
  2534. lang
  2535. DEF_ENDLIST
  2536. DEF_SUBCOMPONENTLIST
  2537. DEF_ENDLIST
  2538. DEF_SUBCOMPONENTCLASSLIST
  2539. DEF_ENDLIST
  2540. DEF_CATEGORY
  2541.  
  2542. DEF_BITMAP
  2543.  
  2544. DEF_THUMBNAIL_UP
  2545.  
  2546. DEF_THUMBNAIL_DOWN
  2547.  
  2548. DEF_BASE
  2549. DEF_IMPORTS
  2550. DEF_ENDLIST
  2551. DEF_REQUIRES
  2552. DEF_ENDLIST
  2553. DEF_IMPLEMENTS
  2554. DEF_ENDLIST
  2555. DEF_DECLARATION
  2556. // A RemoteStackVariable represents a method argument or local variable.
  2557. // It is similar to a RemoteField, but is much more transient in nature.
  2558. // 
  2559. //      See Also:
  2560. //      RemoteField
  2561. // 
  2562. DEF_ENDLIST
  2563. DEF_METHOD
  2564. public String getName()
  2565. //    Return the name of a stack variable or argument.
  2566. // 
  2567. DEF_ENDLIST
  2568. DEF_METHOD
  2569. public RemoteValue getValue()
  2570. //    Return the value of a stack variable or argument.
  2571. // 
  2572. DEF_ENDLIST
  2573. DEF_METHOD
  2574. public boolean inScope()
  2575. //    Return whether variable is in scope.
  2576. // 
  2577. DEF_ENDLIST
  2578. DEF_ENDCOMPONENT
  2579. DEF_COMPONENTNAME
  2580. RemoteString
  2581. DEF_SUPERCLASS
  2582. RemoteObject
  2583. DEF_SUPERCOMPONENT
  2584.  
  2585. DEF_PACKAGE
  2586. java
  2587. lang
  2588. DEF_ENDLIST
  2589. DEF_SUBCOMPONENTLIST
  2590. DEF_ENDLIST
  2591. DEF_SUBCOMPONENTCLASSLIST
  2592. DEF_ENDLIST
  2593. DEF_CATEGORY
  2594.  
  2595. DEF_BITMAP
  2596.  
  2597. DEF_THUMBNAIL_UP
  2598.  
  2599. DEF_THUMBNAIL_DOWN
  2600.  
  2601. DEF_BASE
  2602. DEF_IMPORTS
  2603. DEF_ENDLIST
  2604. DEF_REQUIRES
  2605. DEF_ENDLIST
  2606. DEF_IMPLEMENTS
  2607. DEF_ENDLIST
  2608. DEF_DECLARATION
  2609. // The RemoteString class allows access to a string in a remote Java
  2610. // interpreter.
  2611. // 
  2612. //      See Also:
  2613. //      RemoteDebugger
  2614. // 
  2615. DEF_ENDLIST
  2616. DEF_METHOD
  2617. public String typeName()
  2618. //    Print this RemoteValue's type ("String").
  2619. //   
  2620. //      Overrides:
  2621. //      typeName in class RemoteObject
  2622. //   
  2623. // 
  2624. DEF_ENDLIST
  2625. DEF_METHOD
  2626. public String description()
  2627. //    Return the string value, or "null"
  2628. //   
  2629. //      Overrides:
  2630. //      description in class RemoteObject
  2631. //   
  2632. // 
  2633. DEF_ENDLIST
  2634. DEF_METHOD
  2635. public String toString()
  2636. //    Return the string value, or "null"
  2637. //   
  2638. //      Overrides:
  2639. //      toString in class RemoteObject
  2640. //   
  2641. // 
  2642. DEF_ENDLIST
  2643. DEF_ENDCOMPONENT
  2644. DEF_COMPONENTNAME
  2645. RemoteThread
  2646. DEF_SUPERCLASS
  2647. RemoteObject
  2648. DEF_SUPERCOMPONENT
  2649.  
  2650. DEF_PACKAGE
  2651. java
  2652. lang
  2653. DEF_ENDLIST
  2654. DEF_SUBCOMPONENTLIST
  2655. DEF_ENDLIST
  2656. DEF_SUBCOMPONENTCLASSLIST
  2657. DEF_ENDLIST
  2658. DEF_CATEGORY
  2659.  
  2660. DEF_BITMAP
  2661.  
  2662. DEF_THUMBNAIL_UP
  2663.  
  2664. DEF_THUMBNAIL_DOWN
  2665.  
  2666. DEF_BASE
  2667. DEF_IMPORTS
  2668. DEF_ENDLIST
  2669. DEF_REQUIRES
  2670. DEF_ENDLIST
  2671. DEF_IMPLEMENTS
  2672. DEF_ENDLIST
  2673. DEF_DECLARATION
  2674. // The RemoteThread class allows access to a thread in a remote Java
  2675. // interpreter.
  2676. // 
  2677. //      See Also:
  2678. //      RemoteDebugger, RemoteThreadGroup
  2679. // 
  2680. DEF_ENDLIST
  2681. DEF_METHOD
  2682. public String getName() throws Exception
  2683. //    Return the name of the thread.
  2684. // 
  2685. DEF_ENDLIST
  2686. DEF_METHOD
  2687. public int getCurrentFrameIndex()
  2688. //    Return the current stackframe index
  2689. // 
  2690. DEF_ENDLIST
  2691. DEF_METHOD
  2692. public void setCurrentFrameIndex(int iFrame)
  2693. //    Set the current stackframe index
  2694. // 
  2695. DEF_ENDLIST
  2696. DEF_METHOD
  2697. public void resetCurrentFrameIndex()
  2698. //    Reset the current stackframe
  2699. // 
  2700. DEF_ENDLIST
  2701. DEF_METHOD
  2702. public void up(int nFrames) throws Exception
  2703. //    Change the current stackframe to be one or more frames higher
  2704. // (as in, away from the current program counter).
  2705. //   
  2706. //      Parameters:
  2707. //      nFrames - the number of stackframes
  2708. //      Throws: IllegalAccessError
  2709. //      when the thread isn't suspended or waiting at a breakpoint
  2710. //      Throws: ArrayIndexOutOfBoundsException
  2711. //      when the requested frame is beyond the stack boundary
  2712. //   
  2713. // 
  2714. DEF_ENDLIST
  2715. DEF_METHOD
  2716. public void down(int nFrames) throws Exception
  2717. //    Change the current stackframe to be one or more frames lower
  2718. // (as in, toward the current program counter).
  2719. //   
  2720. //      Parameters:
  2721. //      nFrames - the number of stackframes
  2722. //      Throws: IllegalAccessError
  2723. //      when the thread isn't suspended or waiting at a breakpoint
  2724. //      Throws: ArrayIndexOutOfBoundsException
  2725. //      when the requested frame is beyond the stack boundary
  2726. //   
  2727. // 
  2728. DEF_ENDLIST
  2729. DEF_METHOD
  2730. public String getStatus() throws Exception
  2731. //    Return the thread status description
  2732. // 
  2733. DEF_ENDLIST
  2734. DEF_METHOD
  2735. public RemoteStackFrame[] dumpStack() throws Exception
  2736. //    Dump the stack.
  2737. // 
  2738. DEF_ENDLIST
  2739. DEF_METHOD
  2740. public RemoteStackFrame getCurrentFrame() throws Exception
  2741. //    Get the current stack frame.
  2742. //   
  2743. //      Throws: IllegalAccessError
  2744. //      when the thread isn't suspended or waiting at a breakpoint
  2745. //   
  2746. // 
  2747. DEF_ENDLIST
  2748. DEF_METHOD
  2749. public void suspend() throws Exception
  2750. //    Suspend execution of this thread.
  2751. // 
  2752. DEF_ENDLIST
  2753. DEF_METHOD
  2754. public void resume() throws Exception
  2755. //    Resume execution of this thread.
  2756. // 
  2757. DEF_ENDLIST
  2758. DEF_METHOD
  2759. public void step(boolean skipLine) throws Exception
  2760. //    Continue execution of this thread to the next instruction or line.
  2761. //   
  2762. //      Parameters:
  2763. //      skipLine - true to execute to next source line, false to
  2764. // next instruction.
  2765. //      Throws: IllegalAccessError
  2766. //      when the thread isn't suspended or waiting at a breakpoint
  2767. //   
  2768. // 
  2769. DEF_ENDLIST
  2770. DEF_METHOD
  2771. public void next() throws Exception
  2772. //    Continue execution of this thread to the next line, but don't step
  2773. // into a method call.  If no line information is available, next()
  2774. // is equivalent to step().
  2775. //   
  2776. //      Throws: IllegalAccessError
  2777. //      when the thread isn't suspended or waiting at a breakpoint
  2778. //   
  2779. // 
  2780. DEF_ENDLIST
  2781. DEF_METHOD
  2782. public boolean isSuspended()
  2783. //    Return whether this thread is suspended.
  2784. // 
  2785. DEF_ENDLIST
  2786. DEF_METHOD
  2787. public void cont() throws Exception
  2788. //    Resume this thread from a breakpoint, unless it previously suspended.
  2789. // 
  2790. DEF_ENDLIST
  2791. DEF_METHOD
  2792. public void stop() throws Exception
  2793. //    Stop the remote thread.
  2794. // 
  2795. DEF_ENDLIST
  2796. DEF_METHOD
  2797. public RemoteStackVariable getStackVariable(String name) throws Exception
  2798. //    Return a stack variable from the current stackframe.
  2799. //   
  2800. //      Returns:
  2801. //      the variable as a RemoteValue, or null if not found.
  2802. //   
  2803. // 
  2804. DEF_ENDLIST
  2805. DEF_METHOD
  2806. public RemoteStackVariable[] getStackVariables() throws Exception
  2807. //    Return the arguments and local variable from the current stackframe.
  2808. //   
  2809. //      Returns:
  2810. //      an array of RemoteValues.
  2811. //   
  2812. // 
  2813. DEF_ENDLIST
  2814. DEF_ENDCOMPONENT
  2815. DEF_COMPONENTNAME
  2816. RemoteThreadGroup
  2817. DEF_SUPERCLASS
  2818. RemoteObject
  2819. DEF_SUPERCOMPONENT
  2820.  
  2821. DEF_PACKAGE
  2822. java
  2823. lang
  2824. DEF_ENDLIST
  2825. DEF_SUBCOMPONENTLIST
  2826. DEF_ENDLIST
  2827. DEF_SUBCOMPONENTCLASSLIST
  2828. DEF_ENDLIST
  2829. DEF_CATEGORY
  2830.  
  2831. DEF_BITMAP
  2832.  
  2833. DEF_THUMBNAIL_UP
  2834.  
  2835. DEF_THUMBNAIL_DOWN
  2836.  
  2837. DEF_BASE
  2838. DEF_IMPORTS
  2839. DEF_ENDLIST
  2840. DEF_REQUIRES
  2841. DEF_ENDLIST
  2842. DEF_IMPLEMENTS
  2843. DEF_ENDLIST
  2844. DEF_DECLARATION
  2845. // The RemoteThreadGroup class allows access to a threadgroup in a
  2846. // remote Java interpreter.
  2847. // 
  2848. //      See Also:
  2849. //      RemoteDebugger, RemoteThreadGroup
  2850. // 
  2851. DEF_ENDLIST
  2852. DEF_METHOD
  2853. public String getName() throws Exception
  2854. //    Return the threadgroup's name.
  2855. // 
  2856. DEF_ENDLIST
  2857. DEF_METHOD
  2858. public void stop() throws Exception
  2859. //    Stop the remote threadgroup.
  2860. // 
  2861. DEF_ENDLIST
  2862. DEF_METHOD
  2863. public RemoteThread[] listThreads(boolean recurse) throws Exception
  2864. //    List a threadgroup's threads
  2865. // 
  2866. DEF_ENDLIST
  2867. DEF_ENDCOMPONENT
  2868. DEF_COMPONENTNAME
  2869. RemoteValue
  2870. DEF_SUPERCLASS
  2871. Object
  2872. DEF_SUPERCOMPONENT
  2873.  
  2874. DEF_PACKAGE
  2875. java
  2876. lang
  2877. DEF_ENDLIST
  2878. DEF_SUBCOMPONENTLIST
  2879. DEF_ENDLIST
  2880. DEF_SUBCOMPONENTCLASSLIST
  2881. DEF_ENDLIST
  2882. DEF_CATEGORY
  2883.  
  2884. DEF_BITMAP
  2885.  
  2886. DEF_THUMBNAIL_UP
  2887.  
  2888. DEF_THUMBNAIL_DOWN
  2889.  
  2890. DEF_BASE
  2891. DEF_IMPORTS
  2892. DEF_ENDLIST
  2893. DEF_REQUIRES
  2894. DEF_ENDLIST
  2895. DEF_IMPLEMENTS
  2896. AgentConstants
  2897. DEF_ENDLIST
  2898. DEF_DECLARATION
  2899. // The RemoteValue class allows access to a copy of a value in the
  2900. // remote Java interpreter.  This value may be a primitive type, such
  2901. // as a boolean or float, or an object, class, array, etc.
  2902. // Remote values are not created by the local debugger, but are returned
  2903. // by the remote debugging agent when queried for the values of instance
  2904. // or static variables of known objects, or from local (stack) variables.
  2905. // 
  2906. //      See Also:
  2907. //      RemoteDebugger, RemoteArray, RemoteBoolean, RemoteByte, RemoteChar, RemoteClass, RemoteDouble, RemoteFloat, RemoteInt, RemoteLong, RemoteObject, RemoteShort, RemoteString, RemoteThread, RemoteThreadGroup
  2908. // 
  2909. DEF_ENDLIST
  2910. DEF_METHOD
  2911. public final int getType()
  2912. //    Returns the RemoteValue's type.
  2913. // 
  2914. DEF_ENDLIST
  2915. DEF_METHOD
  2916. public final boolean isObject()
  2917. //    Returns whether the RemoteValue is an Object (as opposed to
  2918. // a primitive type, such as int).
  2919. // 
  2920. DEF_ENDLIST
  2921. DEF_METHOD
  2922. public abstract String typeName() throws Exception
  2923. //    Returns the RemoteValue's type as a string.
  2924. // 
  2925. DEF_ENDLIST
  2926. DEF_METHOD
  2927. public String description()
  2928. //    Return a description of the RemoteValue.
  2929. // 
  2930. DEF_ENDLIST
  2931. DEF_METHOD
  2932. public static String toHex(int n)
  2933. //    Convert an int to a hexadecimal string.
  2934. // 
  2935. DEF_ENDLIST
  2936. DEF_METHOD
  2937. public static int fromHex(String hexStr)
  2938. //    Convert hexadecimal strings to ints.
  2939. // 
  2940. DEF_ENDLIST
  2941. DEF_ENDCOMPONENT
  2942. DEF_COMPONENTNAME
  2943. Runtime
  2944. DEF_SUPERCLASS
  2945. Object
  2946. DEF_SUPERCOMPONENT
  2947.  
  2948. DEF_PACKAGE
  2949. java
  2950. lang
  2951. DEF_ENDLIST
  2952. DEF_SUBCOMPONENTLIST
  2953. DEF_ENDLIST
  2954. DEF_SUBCOMPONENTCLASSLIST
  2955. DEF_ENDLIST
  2956. DEF_CATEGORY
  2957.  
  2958. DEF_BITMAP
  2959.  
  2960. DEF_THUMBNAIL_UP
  2961.  
  2962. DEF_THUMBNAIL_DOWN
  2963.  
  2964. DEF_BASE
  2965. DEF_IMPORTS
  2966. DEF_ENDLIST
  2967. DEF_REQUIRES
  2968. DEF_ENDLIST
  2969. DEF_IMPLEMENTS
  2970. DEF_ENDLIST
  2971. DEF_DECLARATION
  2972. DEF_ENDLIST
  2973. DEF_METHOD
  2974. public static Runtime getRuntime()
  2975. //    Returns the runtime.
  2976. // 
  2977. DEF_ENDLIST
  2978. DEF_METHOD
  2979. public void exit(int status)
  2980. //    Exits the virtual machine with an exit code. This method does
  2981. // not return, use with caution.
  2982. //   
  2983. //      Parameters:
  2984. //      status - exit status, 0 if successful, other values indicate
  2985. //        various error types.
  2986. //   
  2987. // 
  2988. DEF_ENDLIST
  2989. DEF_METHOD
  2990. public Process exec(String command) throws IOException
  2991. //    Executes the system command specified in the parameter.
  2992. // Returns a Process which has methods for optaining the stdin,
  2993. // stdout, and stderr of the subprocess.  This method fails if
  2994. // executed by untrusted code.
  2995. //   
  2996. //      Parameters:
  2997. //      command - a specified system command
  2998. //      Returns:
  2999. //      an instance of class Process
  3000. //   
  3001. // 
  3002. DEF_ENDLIST
  3003. DEF_METHOD
  3004. public Process exec(String command,
  3005.                     String envp[]) throws IOException
  3006. //    Executes the system command specified in the parameter.
  3007. // Returns a Process which has methods for optaining the stdin,
  3008. // stdout, and stderr of the subprocess.  This method fails if
  3009. // executed by untrusted code.
  3010. //   
  3011. //      Parameters:
  3012. //      command - a specified system command
  3013. //      Returns:
  3014. //      an instance of class Process
  3015. //   
  3016. // 
  3017. DEF_ENDLIST
  3018. DEF_METHOD
  3019. public Process exec(String cmdarray[]) throws IOException
  3020. //    Executes the system command specified by cmdarray[0] with arguments
  3021. // specified by the strings in the rest of the array.
  3022. // Returns a Process which has methods for optaining the stdin,
  3023. // stdout, and stderr of the subprocess.  This method fails if
  3024. // executed by untrusted code.
  3025. //   
  3026. //      Parameters:
  3027. //      an - array containing the command to call and its arguments
  3028. //      envp - array containing environment in format name=value
  3029. //      Returns:
  3030. //      an instance of class Process
  3031. //   
  3032. // 
  3033. DEF_ENDLIST
  3034. DEF_METHOD
  3035. public Process exec(String cmdarray[],
  3036.                     String envp[]) throws IOException
  3037. //    Executes the system command specified by cmdarray[0] with arguments
  3038. // specified by the strings in the rest of the array.
  3039. // Returns a Process which has methods for optaining the stdin,
  3040. // stdout, and stderr of the subprocess.  This method fails if
  3041. // executed by untrusted code.
  3042. //   
  3043. //      Parameters:
  3044. //      an - array containing the command to call and its arguments
  3045. //      envp - array containing environment in format name=value
  3046. //      Returns:
  3047. //      an instance of class Process
  3048. //   
  3049. // 
  3050. DEF_ENDLIST
  3051. DEF_METHOD
  3052. public long freeMemory()
  3053. //    Returns the number of free bytes in system memory. This number
  3054. // is not always accurate because it is just an estimation of the available
  3055. // memory.  More memory may be freed by calling System.gc() .
  3056. // 
  3057. DEF_ENDLIST
  3058. DEF_METHOD
  3059. public long totalMemory()
  3060. //    Returns the total number of bytes in system memory.
  3061. // 
  3062. DEF_ENDLIST
  3063. DEF_METHOD
  3064. public void gc()
  3065. //    Runs the garbage collector.
  3066. // 
  3067. DEF_ENDLIST
  3068. DEF_METHOD
  3069. public void runFinalization()
  3070. //    Runs the finalization methods of any objects pending finalization.
  3071. // Usually you will not need to call this method since finalization
  3072. // methods will be called asynchronously by the finalization thread.
  3073. // However, under some circumstances (like running out of a finalized
  3074. // resource) it can be useful to run finalization methods synchronously.
  3075. // 
  3076. DEF_ENDLIST
  3077. DEF_METHOD
  3078. public void traceInstructions(boolean on)
  3079. //    Enables/Disables tracing of instructions.
  3080. //   
  3081. //      Parameters:
  3082. //      on - start tracing if true
  3083. //   
  3084. // 
  3085. DEF_ENDLIST
  3086. DEF_METHOD
  3087. public void traceMethodCalls(boolean on)
  3088. //    Enables/Disables tracing of method calls.
  3089. //   
  3090. //      Parameters:
  3091. //      on - start tracing if true
  3092. //   
  3093. // 
  3094. DEF_ENDLIST
  3095. DEF_METHOD
  3096. public synchronized void load(String filename)
  3097. //    Loads a dynamic library, given a complete path name. If you use this
  3098. // from java_g it will automagically insert "_g" before the ".so".
  3099. // Example: Runtime.getRuntime().load("/home/avh/lib/libX11.so");
  3100. //   
  3101. //      Parameters:
  3102. //      filename - the file to load
  3103. //      Throws: UnsatisfiedLinkError
  3104. //      If the file does not exist.
  3105. //      See Also:
  3106. //      getRuntime
  3107. //   
  3108. // 
  3109. DEF_ENDLIST
  3110. DEF_METHOD
  3111. public synchronized void loadLibrary(String libname)
  3112. //    Loads a dynamic library with the specified library name. The 
  3113. // call to LoadLibrary() should be made in the static 
  3114. // initializer of the first class that is loaded. Linking in the 
  3115. // same library more than once is ignored.
  3116. //   
  3117. //      Parameters:
  3118. //      libname - the name of the library
  3119. //      Throws: UnsatisfiedLinkError
  3120. //      If the library does not exist.
  3121. //   
  3122. // 
  3123. DEF_ENDLIST
  3124. DEF_METHOD
  3125. public InputStream getLocalizedInputStream(InputStream in)
  3126. //    Localize an input stream. A localized input stream will automatically
  3127. // translate the input from the local format to UNICODE.
  3128. // 
  3129. DEF_ENDLIST
  3130. DEF_METHOD
  3131. public OutputStream getLocalizedOutputStream(OutputStream out)
  3132. //    Localize an output stream. A localized output stream will automatically
  3133. // translate the output from UNICODE to the local format.
  3134. // 
  3135. DEF_ENDLIST
  3136. DEF_ENDCOMPONENT
  3137. DEF_COMPONENTNAME
  3138. RuntimeException
  3139. DEF_SUPERCLASS
  3140. Exception
  3141. DEF_SUPERCOMPONENT
  3142.  
  3143. DEF_PACKAGE
  3144. java
  3145. lang
  3146. DEF_ENDLIST
  3147. DEF_SUBCOMPONENTLIST
  3148. DEF_ENDLIST
  3149. DEF_SUBCOMPONENTCLASSLIST
  3150. DEF_ENDLIST
  3151. DEF_CATEGORY
  3152.  
  3153. DEF_BITMAP
  3154.  
  3155. DEF_THUMBNAIL_UP
  3156.  
  3157. DEF_THUMBNAIL_DOWN
  3158.  
  3159. DEF_BASE
  3160. DEF_IMPORTS
  3161. DEF_ENDLIST
  3162. DEF_REQUIRES
  3163. DEF_ENDLIST
  3164. DEF_IMPLEMENTS
  3165. DEF_ENDLIST
  3166. DEF_DECLARATION
  3167. // An exception that can reasonably occur during the execution of a Java
  3168. // program by the Virtual machine.
  3169. DEF_ENDLIST
  3170. DEF_METHOD
  3171. public RuntimeException()
  3172. //    Constructs a RuntimeException with no detail message.
  3173. // A detail message is a String that describes this particular exception.
  3174. // 
  3175. DEF_ENDLIST
  3176. DEF_METHOD
  3177. public RuntimeException(String s)
  3178. //    Constructs a RuntimeException with the specified detail message.
  3179. // A detail message is a String that describes this particular exception.
  3180. //   
  3181. //      Parameters:
  3182. //      s - the detail message
  3183. //   
  3184. // 
  3185. DEF_ENDLIST
  3186. DEF_ENDCOMPONENT
  3187. DEF_COMPONENTNAME
  3188. SecurityException
  3189. DEF_SUPERCLASS
  3190. RuntimeException
  3191. DEF_SUPERCOMPONENT
  3192.  
  3193. DEF_PACKAGE
  3194. java
  3195. lang
  3196. DEF_ENDLIST
  3197. DEF_SUBCOMPONENTLIST
  3198. DEF_ENDLIST
  3199. DEF_SUBCOMPONENTCLASSLIST
  3200. DEF_ENDLIST
  3201. DEF_CATEGORY
  3202.  
  3203. DEF_BITMAP
  3204.  
  3205. DEF_THUMBNAIL_UP
  3206.  
  3207. DEF_THUMBNAIL_DOWN
  3208.  
  3209. DEF_BASE
  3210. DEF_IMPORTS
  3211. DEF_ENDLIST
  3212. DEF_REQUIRES
  3213. DEF_ENDLIST
  3214. DEF_IMPLEMENTS
  3215. DEF_ENDLIST
  3216. DEF_DECLARATION
  3217. // Signals that a security exception has occurred.
  3218. DEF_ENDLIST
  3219. DEF_METHOD
  3220. public SecurityException()
  3221. //    Constructs a SecurityException with no detail message.
  3222. // A detail message is a String that describes this particular exception.
  3223. // 
  3224. DEF_ENDLIST
  3225. DEF_METHOD
  3226. public SecurityException(String s)
  3227. //    Constructs a SecurityException with the specified detail message.
  3228. // A detail message is a String that describes this particular exception.
  3229. //   
  3230. //      Parameters:
  3231. //      s - the detail message
  3232. //   
  3233. // 
  3234. DEF_ENDLIST
  3235. DEF_ENDCOMPONENT
  3236. DEF_COMPONENTNAME
  3237. SecurityManager
  3238. DEF_SUPERCLASS
  3239. Object
  3240. DEF_SUPERCOMPONENT
  3241.  
  3242. DEF_PACKAGE
  3243. java
  3244. lang
  3245. DEF_ENDLIST
  3246. DEF_SUBCOMPONENTLIST
  3247. DEF_ENDLIST
  3248. DEF_SUBCOMPONENTCLASSLIST
  3249. DEF_ENDLIST
  3250. DEF_CATEGORY
  3251.  
  3252. DEF_BITMAP
  3253.  
  3254. DEF_THUMBNAIL_UP
  3255.  
  3256. DEF_THUMBNAIL_DOWN
  3257.  
  3258. DEF_BASE
  3259. DEF_IMPORTS
  3260. DEF_ENDLIST
  3261. DEF_REQUIRES
  3262. DEF_ENDLIST
  3263. DEF_IMPLEMENTS
  3264. DEF_ENDLIST
  3265. DEF_DECLARATION
  3266. // An abstract class that can be subclassed
  3267. // to implement a security policy. It allows the inspection of
  3268. // the classloaders on the execution stack.
  3269. DEF_ENDLIST
  3270. DEF_METHOD
  3271. public boolean getInCheck()
  3272. //    Returns whether there is a security check in progress.
  3273. // 
  3274. DEF_ENDLIST
  3275. DEF_METHOD
  3276. protected Class[] getClassContext()
  3277. //    Gets the context of this Class.
  3278. // 
  3279. DEF_ENDLIST
  3280. DEF_METHOD
  3281. protected ClassLoader currentClassLoader()
  3282. //    The current ClassLoader on the execution stack.
  3283. // 
  3284. DEF_ENDLIST
  3285. DEF_METHOD
  3286. protected int classDepth(String name)
  3287. //    Return the position of the stack frame containing the
  3288. // first occurrence of the named class.
  3289. //   
  3290. //      Parameters:
  3291. //      name - classname of the class to search for
  3292. //   
  3293. // 
  3294. DEF_ENDLIST
  3295. DEF_METHOD
  3296. protected int classLoaderDepth()
  3297. // 
  3298. DEF_ENDLIST
  3299. DEF_METHOD
  3300. protected boolean inClass(String name)
  3301. //    Returns true if the specified String is in this Class.
  3302. //   
  3303. //      Parameters:
  3304. //      name - the name of the class
  3305. //   
  3306. // 
  3307. DEF_ENDLIST
  3308. DEF_METHOD
  3309. protected boolean inClassLoader()
  3310. //    Returns a boolean indicating whether or not the current ClassLoader
  3311. // is equal to null.
  3312. // 
  3313. DEF_ENDLIST
  3314. DEF_METHOD
  3315. public Object getSecurityContext()
  3316. //    Returns an implementation-dependent Object which encapsulates
  3317. // enough information about the current execution environment
  3318. // to perform some of the security checks later.
  3319. // 
  3320. DEF_ENDLIST
  3321. DEF_METHOD
  3322. public void checkCreateClassLoader()
  3323. //    Checks to see if the ClassLoader has been created.
  3324. //   
  3325. //      Throws: SecurityException
  3326. //      If a security error has occurred.
  3327. //   
  3328. // 
  3329. DEF_ENDLIST
  3330. DEF_METHOD
  3331. public void checkAccess(Thread g)
  3332. //    Checks to see if the specified Thread is allowed to modify
  3333. // the Thread group.
  3334. //   
  3335. //      Parameters:
  3336. //      g - the Thread to be checked
  3337. //      Throws: SecurityException
  3338. //      If the current Thread is not
  3339. // allowed to access this Thread group.
  3340. //   
  3341. // 
  3342. DEF_ENDLIST
  3343. DEF_METHOD
  3344. public void checkAccess(ThreadGroup g)
  3345. //    Checks to see if the specified Thread group is allowed to 
  3346. // modify this group.
  3347. //   
  3348. //      Parameters:
  3349. //      g - the Thread group to be checked
  3350. //      Throws: SecurityException
  3351. //      If the current Thread group is 
  3352. // not allowed to access this Thread group.
  3353. //   
  3354. // 
  3355. DEF_ENDLIST
  3356. DEF_METHOD
  3357. public void checkExit(int status)
  3358. //    Checks to see if the system has exited the virtual 
  3359. // machine with an exit code.
  3360. //   
  3361. //      Parameters:
  3362. //      status - exit status, 0 if successful, other values
  3363. // indicate various error types.
  3364. //      Throws: SecurityException
  3365. //      If a security error has occurred.
  3366. //   
  3367. // 
  3368. DEF_ENDLIST
  3369. DEF_METHOD
  3370. public void checkExec(String cmd)
  3371. //    Checks to see if the system command is executed by 
  3372. // trusted code.
  3373. //   
  3374. //      Parameters:
  3375. //      cmd - the specified system command
  3376. //      Throws: SecurityException
  3377. //      If a security error has occurred.
  3378. //   
  3379. // 
  3380. DEF_ENDLIST
  3381. DEF_METHOD
  3382. public void checkLink(String lib)
  3383. //    Checks to see if the specified linked library exists.
  3384. //   
  3385. //      Parameters:
  3386. //      lib - the name of the library
  3387. //      Throws: SecurityException
  3388. //      If the library does not exist.
  3389. //   
  3390. // 
  3391. DEF_ENDLIST
  3392. DEF_METHOD
  3393. public void checkRead(FileDescriptor fd)
  3394. //    Checks to see if an input file with the specified
  3395. // file descriptor object gets created.
  3396. //   
  3397. //      Parameters:
  3398. //      fd - the system dependent file descriptor
  3399. //      Throws: SecurityException
  3400. //      If a security error has occurred.
  3401. //   
  3402. // 
  3403. DEF_ENDLIST
  3404. DEF_METHOD
  3405. public void checkRead(String file)
  3406. //    Checks to see if an input file with the specified system dependent
  3407. // file name gets created.
  3408. //   
  3409. //      Parameters:
  3410. //      file - the system dependent file name
  3411. //      Throws: SecurityException
  3412. //      If the file is not found.
  3413. //   
  3414. // 
  3415. DEF_ENDLIST
  3416. DEF_METHOD
  3417. public void checkRead(String file,
  3418.                       Object context)
  3419. //    Checks to see if the current context or the indicated context are
  3420. // both allowed to read the given file name.
  3421. //   
  3422. //      Parameters:
  3423. //      file - the system dependent file name
  3424. //      context - the alternate execution context which must also
  3425. // be checked
  3426. //      Throws: SecurityException
  3427. //      If the file is not found.
  3428. //   
  3429. // 
  3430. DEF_ENDLIST
  3431. DEF_METHOD
  3432. public void checkWrite(FileDescriptor fd)
  3433. //    Checks to see if an output file with the specified 
  3434. // file descriptor object gets created.
  3435. //   
  3436. //      Parameters:
  3437. //      fd - the system dependent file descriptor
  3438. //      Throws: SecurityException
  3439. //      If a security error has occurred.
  3440. //   
  3441. // 
  3442. DEF_ENDLIST
  3443. DEF_METHOD
  3444. public void checkWrite(String file)
  3445. //    Checks to see if an output file with the specified system dependent
  3446. // file name gets created.
  3447. //   
  3448. //      Parameters:
  3449. //      file - the system dependent file name
  3450. //      Throws: SecurityException
  3451. //      If the file is not found.
  3452. //   
  3453. // 
  3454. DEF_ENDLIST
  3455. DEF_METHOD
  3456. public void checkDelete(String file)
  3457. //    Checks to see if a file with the specified system dependent
  3458. // file name can be deleted.
  3459. //   
  3460. //      Parameters:
  3461. //      file - the system dependent file name
  3462. //      Throws: SecurityException
  3463. //      If the file is not found.
  3464. //   
  3465. // 
  3466. DEF_ENDLIST
  3467. DEF_METHOD
  3468. public void checkConnect(String host,
  3469.                          int port)
  3470. //    Checks to see if a socket has connected to the specified port on the
  3471. // the specified host.
  3472. //   
  3473. //      Parameters:
  3474. //      host - the host name port to connect to
  3475. //      port - the protocol port to connect to
  3476. //      Throws: SecurityException
  3477. //      If a security error has occurred.
  3478. //   
  3479. // 
  3480. DEF_ENDLIST
  3481. DEF_METHOD
  3482. public void checkConnect(String host,
  3483.                          int port,
  3484.                          Object context)
  3485. //    Checks to see if the current execution context and the indicated
  3486. // execution context are both allowed to connect to the indicated
  3487. // host and port.
  3488. // 
  3489. DEF_ENDLIST
  3490. DEF_METHOD
  3491. public void checkListen(int port)
  3492. //    Checks to see if a server socket is listening to the specified local
  3493. // port that it is bounded to.
  3494. //   
  3495. //      Parameters:
  3496. //      port - the protocol port to connect to
  3497. //      Throws: SecurityException
  3498. //      If a security error has occurred.
  3499. //   
  3500. // 
  3501. DEF_ENDLIST
  3502. DEF_METHOD
  3503. public void checkAccept(String host,
  3504.                         int port)
  3505. //    Checks to see if a socket connection to the specified port on the 
  3506. // specified host has been accepted.
  3507. //   
  3508. //      Parameters:
  3509. //      host - the host name to connect to
  3510. //      port - the protocol port to connect to
  3511. //      Throws: SecurityException
  3512. //      If a security error has occurred.
  3513. //   
  3514. // 
  3515. DEF_ENDLIST
  3516. DEF_METHOD
  3517. public void checkPropertiesAccess()
  3518. //    Checks to see who has access to the System properties.
  3519. //   
  3520. //      Throws: SecurityException
  3521. //      If a security error has occurred.
  3522. //   
  3523. // 
  3524. DEF_ENDLIST
  3525. DEF_METHOD
  3526. public void checkPropertyAccess(String key)
  3527. //    Checks to see who has access to the System property named by key.
  3528. //   
  3529. //      Parameters:
  3530. //      key - the System property that the caller wants to examine
  3531. //      Throws: SecurityException
  3532. //      If a security error has occurred.
  3533. //   
  3534. // 
  3535. DEF_ENDLIST
  3536. DEF_METHOD
  3537. public void checkPropertyAccess(String key,
  3538.                                 String def)
  3539. //    Checks to see who has access to the System property named by key
  3540. // and def.
  3541. //   
  3542. //      Parameters:
  3543. //      key - the System property that the caller wants to examine
  3544. //      def - default value to return if this property is not defined
  3545. //      Throws: SecurityException
  3546. //      If a security error has occurred.
  3547. //   
  3548. // 
  3549. DEF_ENDLIST
  3550. DEF_METHOD
  3551. public boolean checkTopLevelWindow(Object window)
  3552. //    Checks to see if top-level windows can be created by the
  3553. // caller. A return of false means that the window creation is
  3554. // allowed but the window should indicate some sort of visual
  3555. // warning. Returning true means the creation is allowed with no
  3556. // special restrictions. To disallow the creation entirely, this
  3557. // method should throw a SecurityException.
  3558. //   
  3559. //      Parameters:
  3560. //      window - the new window that's being created.
  3561. //   
  3562. // 
  3563. DEF_ENDLIST
  3564. DEF_METHOD
  3565. public void checkPackageAccess(String pkg)
  3566. //    Checks to see if an applet can access a package.
  3567. // 
  3568. DEF_ENDLIST
  3569. DEF_METHOD
  3570. public void checkPackageDefinition(String pkg)
  3571. //    Checks to see if an applet can define classes in a package.
  3572. // 
  3573. DEF_ENDLIST
  3574. DEF_METHOD
  3575. public void checkSetFactory()
  3576. //    Checks to see if an applet can set a networking-related object factory.
  3577. // 
  3578. DEF_ENDLIST
  3579. DEF_ENDCOMPONENT
  3580. DEF_COMPONENTNAME
  3581. StackOverflowError
  3582. DEF_SUPERCLASS
  3583. VirtualMachineError
  3584. DEF_SUPERCOMPONENT
  3585.  
  3586. DEF_PACKAGE
  3587. java
  3588. lang
  3589. DEF_ENDLIST
  3590. DEF_SUBCOMPONENTLIST
  3591. DEF_ENDLIST
  3592. DEF_SUBCOMPONENTCLASSLIST
  3593. DEF_ENDLIST
  3594. DEF_CATEGORY
  3595.  
  3596. DEF_BITMAP
  3597.  
  3598. DEF_THUMBNAIL_UP
  3599.  
  3600. DEF_THUMBNAIL_DOWN
  3601.  
  3602. DEF_BASE
  3603. DEF_IMPORTS
  3604. DEF_ENDLIST
  3605. DEF_REQUIRES
  3606. DEF_ENDLIST
  3607. DEF_IMPLEMENTS
  3608. DEF_ENDLIST
  3609. DEF_DECLARATION
  3610. // Signals that a stack overflow has occurred.
  3611. DEF_ENDLIST
  3612. DEF_METHOD
  3613. public StackOverflowError()
  3614. //    Constructs a StackOverflowError with no detail message.
  3615. // A detail message is a String that describes this particular exception.
  3616. // 
  3617. DEF_ENDLIST
  3618. DEF_METHOD
  3619. public StackOverflowError(String s)
  3620. //    Constructs a StackOverflowError with the specified detail message.
  3621. // A detail message is a String that describes this particular exception.
  3622. //   
  3623. //      Parameters:
  3624. //      s - the detail message
  3625. //   
  3626. // 
  3627. DEF_ENDLIST
  3628. DEF_ENDCOMPONENT
  3629. DEF_COMPONENTNAME
  3630. String
  3631. DEF_SUPERCLASS
  3632. Object
  3633. DEF_SUPERCOMPONENT
  3634.  
  3635. DEF_PACKAGE
  3636. java
  3637. lang
  3638. DEF_ENDLIST
  3639. DEF_SUBCOMPONENTLIST
  3640. DEF_ENDLIST
  3641. DEF_SUBCOMPONENTCLASSLIST
  3642. DEF_ENDLIST
  3643. DEF_CATEGORY
  3644.  
  3645. DEF_BITMAP
  3646.  
  3647. DEF_THUMBNAIL_UP
  3648.  
  3649. DEF_THUMBNAIL_DOWN
  3650.  
  3651. DEF_BASE
  3652. DEF_IMPORTS
  3653. DEF_ENDLIST
  3654. DEF_REQUIRES
  3655. DEF_ENDLIST
  3656. DEF_IMPLEMENTS
  3657. DEF_ENDLIST
  3658. DEF_DECLARATION
  3659. // A general class of objects to represent character Strings.
  3660. // Strings are constant, their values cannot be changed after creation.
  3661. // The compiler makes sure that each String constant actually results
  3662. // in a String object. Because String objects are immutable they can
  3663. // be shared. For example:
  3664. // 
  3665. //     String str = "abc";
  3666. // 
  3667. // is equivalent to:
  3668. // 
  3669. //     char data[] = {'a', 'b', 'c'};
  3670. //     String str = new String(data);
  3671. // 
  3672. // Here are some more examples of how strings can be used:
  3673. // 
  3674. //     System.out.println("abc");
  3675. //     String cde = "cde";
  3676. //     System.out.println("abc" + cde);
  3677. //     String c = "abc".substring(2,3);
  3678. //     String d = cde.substring(1, 2);
  3679. // 
  3680. // 
  3681. //      See Also:
  3682. //      StringBuffer
  3683. // 
  3684. DEF_ENDLIST
  3685. DEF_METHOD
  3686. public String()
  3687. //    Constructs a new empty String.
  3688. // 
  3689. DEF_ENDLIST
  3690. DEF_METHOD
  3691. public String(String value)
  3692. //    Constructs a new String that is a copy of the specified String.
  3693. //   
  3694. //      Parameters:
  3695. //      value - the initial value of the String
  3696. //   
  3697. // 
  3698. DEF_ENDLIST
  3699. DEF_METHOD
  3700. public String(char value[])
  3701. //    Constructs a new String whose initial value is the specified array 
  3702. // of characters.
  3703. //   
  3704. //      Parameters:
  3705. //      value - the initial value of the String
  3706. //   
  3707. // 
  3708. DEF_ENDLIST
  3709. DEF_METHOD
  3710. public String(char value[],
  3711.               int offset,
  3712.               int count)
  3713. //    Constructs a new String whose initial value is the specified sub array of characters.
  3714. // The length of the new string will be count characters
  3715. // starting at offset within the specified character array.
  3716. //   
  3717. //      Parameters:
  3718. //      value - the initial value of the String, an array of characters
  3719. //      offset - the offset into the value of the String
  3720. //      count - the length of the value of the String
  3721. //      Throws: StringIndexOutOfBoundsException
  3722. //      If the offset and count arguments are invalid.
  3723. //   
  3724. // 
  3725. DEF_ENDLIST
  3726. DEF_METHOD
  3727. public String(byte ascii[],
  3728.               int hibyte,
  3729.               int offset,
  3730.               int count)
  3731. //    Constructs a new String whose initial value is the specified sub array of bytes.
  3732. // The high-byte of each character can be specified, it should usually be 0.
  3733. // The length of the new String will be count characters
  3734. // starting at offset within the specified character array.
  3735. //   
  3736. //      Parameters:
  3737. //      ascii - the bytes that will be converted to characters
  3738. //      hibyte - the high byte of each Unicode character
  3739. //      offset - the offset into the ascii array
  3740. //      count - the length of the String
  3741. //      Throws: StringIndexOutOfBoundsException
  3742. //      If the offset and count arguments are invalid.
  3743. //   
  3744. // 
  3745. DEF_ENDLIST
  3746. DEF_METHOD
  3747. public String(byte ascii[],
  3748.               int hibyte)
  3749. //    Constructs a new String whose value is the specified array of bytes.
  3750. // The byte array transformed into Unicode chars using hibyte
  3751. // as the upper byte of each character.
  3752. //   
  3753. //      Parameters:
  3754. //      ascii - the byte that will be converted to characters
  3755. //      hibyte - the top 8 bits of each 16 bit Unicode character
  3756. //   
  3757. // 
  3758. DEF_ENDLIST
  3759. DEF_METHOD
  3760. public String(StringBuffer buffer)
  3761. //    Construct a new string whose value is the current contents of the
  3762. // given string buffer
  3763. //   
  3764. //      Parameters:
  3765. //      buffer - the stringbuffer to be converted
  3766. //   
  3767. // 
  3768. DEF_ENDLIST
  3769. DEF_METHOD
  3770. public int length()
  3771. //    Returns the length of the String.
  3772. // The length of the String is equal to the number of 16 bit
  3773. // Unicode characters in the String.
  3774. // 
  3775. DEF_ENDLIST
  3776. DEF_METHOD
  3777. public char charAt(int index)
  3778. //    Returns the character at the specified index. An index ranges
  3779. // from 0 to length() - 1.
  3780. //   
  3781. //      Parameters:
  3782. //      index - the index of the desired character
  3783. //      Throws: StringIndexOutOfBoundsException
  3784. //      If the index is not
  3785. //             in the range 0 to length()-1.
  3786. //   
  3787. // 
  3788. DEF_ENDLIST
  3789. DEF_METHOD
  3790. public void getChars(int srcBegin,
  3791.                      int srcEnd,
  3792.                      char dst[],
  3793.                      int dstBegin)
  3794. //    Copies characters from this String into the specified character array.
  3795. // The characters of the specified substring (determined by
  3796. // srcBegin and srcEnd) are copied into the character array,
  3797. // starting at the array's dstBegin location.
  3798. //   
  3799. //      Parameters:
  3800. //      srcBegin - index of the first character in the string
  3801. //      srcEnd - end of the characters that are copied
  3802. //      dst - the destination array
  3803. //      dstBegin - the start offset in the destination array
  3804. //   
  3805. // 
  3806. DEF_ENDLIST
  3807. DEF_METHOD
  3808. public void getBytes(int srcBegin,
  3809.                      int srcEnd,
  3810.                      byte dst[],
  3811.                      int dstBegin)
  3812. //    Copies characters from this String into the specified byte array.
  3813. // Copies the characters of the specified substring (determined by
  3814. // srcBegin and srcEnd) into the byte array, starting at the
  3815. // array's dstBegin location.
  3816. //   
  3817. //      Parameters:
  3818. //      srcBegin - index of the first character in the String
  3819. //      srcEnd - end of the characters that are copied
  3820. //      dst - the destination array
  3821. //      dstBegin - the start offset in the destination array
  3822. //   
  3823. // 
  3824. DEF_ENDLIST
  3825. DEF_METHOD
  3826. public boolean equals(Object anObject)
  3827. //    Compares this String to the specified object.
  3828. // Returns true if the object is equal to this String; that is,
  3829. // has the same length and the same characters in the same sequence.
  3830. //   
  3831. //      Parameters:
  3832. //      anObject - the object to compare this String against
  3833. //      Returns:
  3834. //      true if the Strings are equal; false otherwise.
  3835. //      Overrides:
  3836. //      equals in class Object
  3837. //   
  3838. // 
  3839. DEF_ENDLIST
  3840. DEF_METHOD
  3841. public boolean equalsIgnoreCase(String anotherString)
  3842. //    Compares this String to another object.
  3843. // Returns true if the object is equal to this String; that is,
  3844. // has the same length and the same characters in the same sequence.
  3845. // Upper case characters are folded to lower case before
  3846. // they are compared.
  3847. //   
  3848. //      Parameters:
  3849. //      anotherString - the String to compare this String against
  3850. //      Returns:
  3851. //      true if the Strings are equal, ignoring case; false otherwise.
  3852. //   
  3853. // 
  3854. DEF_ENDLIST
  3855. DEF_METHOD
  3856. public int compareTo(String anotherString)
  3857. //    Compares this String to another specified String.
  3858. // Returns an integer that is less than, equal to, or greater than zero.
  3859. // The integer's value depends on whether this String is less than, equal to, or greater
  3860. // than anotherString.
  3861. //   
  3862. //      Parameters:
  3863. //      anotherString - the String to be compared
  3864. //   
  3865. // 
  3866. DEF_ENDLIST
  3867. DEF_METHOD
  3868. public boolean regionMatches(int toffset,
  3869.                              String other,
  3870.                              int ooffset,
  3871.                              int len)
  3872. //    Determines whether a region of this String matches the specified region
  3873. // of the specified String.
  3874. //   
  3875. //      Parameters:
  3876. //      toffset - where to start looking in this String
  3877. //      other - the other String
  3878. //      ooffset - where to start looking in the other String
  3879. //      len - the number of characters to compare
  3880. //      Returns:
  3881. //      true if the region matches with the other; false otherwise.
  3882. //   
  3883. // 
  3884. DEF_ENDLIST
  3885. DEF_METHOD
  3886. public boolean regionMatches(boolean ignoreCase,
  3887.                              int toffset,
  3888.                              String other,
  3889.                              int ooffset,
  3890.                              int len)
  3891. //    Determines whether a region of this String matches the specified region
  3892. // of the specified String.  If the boolean ignoreCase is true, upper case characters are 
  3893. // considered equivalent to lower case letters.
  3894. //   
  3895. //      Parameters:
  3896. //      ignoreCase - if true, case is ignored
  3897. //      toffset - where to start looking in this String
  3898. //      other - the other String
  3899. //      ooffset - where to start looking in the other String
  3900. //      len - the number of characters to compare
  3901. //      Returns:
  3902. //      true if the region matches with the other; false otherwise.
  3903. //   
  3904. // 
  3905. DEF_ENDLIST
  3906. DEF_METHOD
  3907. public boolean startsWith(String prefix,
  3908.                           int toffset)
  3909. //    Determines whether this String starts with some prefix.
  3910. //   
  3911. //      Parameters:
  3912. //      prefix - the prefix
  3913. //      toffset - where to begin looking in the the String
  3914. //      Returns:
  3915. //      true if the String starts with the specified prefix; false otherwise.
  3916. //   
  3917. // 
  3918. DEF_ENDLIST
  3919. DEF_METHOD
  3920. public boolean startsWith(String prefix)
  3921. //    Determines whether this String starts with some prefix.
  3922. //   
  3923. //      Parameters:
  3924. //      prefix - the prefix
  3925. //      Returns:
  3926. //      true if the String starts with the specified prefix; false otherwise.
  3927. //   
  3928. // 
  3929. DEF_ENDLIST
  3930. DEF_METHOD
  3931. public boolean endsWith(String suffix)
  3932. //    Determines whether the String ends with some suffix.
  3933. //   
  3934. //      Parameters:
  3935. //      suffix - the suffix
  3936. //      Returns:
  3937. //      true if the String ends with the specified suffix; false otherwise.
  3938. //   
  3939. // 
  3940. DEF_ENDLIST
  3941. DEF_METHOD
  3942. public int hashCode()
  3943. //    Returns a hashcode for this String. This is a large
  3944. // number composed of the character values in the String.
  3945. //   
  3946. //      Overrides:
  3947. //      hashCode in class Object
  3948. //   
  3949. // 
  3950. DEF_ENDLIST
  3951. DEF_METHOD
  3952. public int indexOf(int ch)
  3953. //    Returns the index within this String of the first occurrence of the specified 
  3954. // character.  This method returns -1 if the index is not found.
  3955. //   
  3956. //      Parameters:
  3957. //      ch - the character to search for
  3958. //   
  3959. // 
  3960. DEF_ENDLIST
  3961. DEF_METHOD
  3962. public int indexOf(int ch,
  3963.                    int fromIndex)
  3964. //    Returns the index within this String of the first occurrence of the specified 
  3965. // character, starting the search at fromIndex.  This method 
  3966. // returns -1 if the index is not found.
  3967. //   
  3968. //      Parameters:
  3969. //      ch - the character to search for
  3970. //      fromIndex - the index to start the search from
  3971. //   
  3972. // 
  3973. DEF_ENDLIST
  3974. DEF_METHOD
  3975. public int lastIndexOf(int ch)
  3976. //    Returns the index within this String of the last occurrence of the specified character.
  3977. // The String is searched backwards starting at the last character.
  3978. // This method returns -1 if the index is not found.
  3979. //   
  3980. //      Parameters:
  3981. //      ch - the character to search for
  3982. //   
  3983. // 
  3984. DEF_ENDLIST
  3985. DEF_METHOD
  3986. public int lastIndexOf(int ch,
  3987.                        int fromIndex)
  3988. //    Returns the index within this String of the last occurrence of the specified character.
  3989. // The String is searched backwards starting at fromIndex.
  3990. // This method returns -1 if the index is not found.
  3991. //   
  3992. //      Parameters:
  3993. //      ch - the character to search for
  3994. //      fromIndex - the index to start the search from
  3995. //   
  3996. // 
  3997. DEF_ENDLIST
  3998. DEF_METHOD
  3999. public int indexOf(String str)
  4000. //    Returns the index within this String of the first occurrence of the specified substring.
  4001. // This method returns -1 if the index is not found.
  4002. //   
  4003. //      Parameters:
  4004. //      str - the substring to search for
  4005. //   
  4006. // 
  4007. DEF_ENDLIST
  4008. DEF_METHOD
  4009. public int indexOf(String str,
  4010.                    int fromIndex)
  4011. //    Returns the index within this String of the first occurrence of the specified substring.
  4012. // The search is started at fromIndex.
  4013. // This method returns -1 if the index is not found.
  4014. //   
  4015. //      Parameters:
  4016. //      str - the substring to search for
  4017. //      fromIndex - the index to start the search from
  4018. //   
  4019. // 
  4020. DEF_ENDLIST
  4021. DEF_METHOD
  4022. public int lastIndexOf(String str)
  4023. //    Returns the index within this String of the last occurrence of the specified substring.
  4024. // The String is searched backwards.
  4025. // This method returns -1 if the index is not found.
  4026. //   
  4027. //      Parameters:
  4028. //      str - the substring to search for
  4029. //   
  4030. // 
  4031. DEF_ENDLIST
  4032. DEF_METHOD
  4033. public int lastIndexOf(String str,
  4034.                        int fromIndex)
  4035. //    Returns the index within this String of the last occurrence of the specified substring.
  4036. // The String is searched backwards starting at fromIndex.
  4037. // This method returns -1 if the index is not found.
  4038. //   
  4039. //      Parameters:
  4040. //      str - the substring to search for
  4041. //      fromIndex - the index to start the search from
  4042. //   
  4043. // 
  4044. DEF_ENDLIST
  4045. DEF_METHOD
  4046. public String substring(int beginIndex)
  4047. //    Returns the substring of this String. The substring is specified
  4048. // by a beginIndex (inclusive) and the end of the string.
  4049. //   
  4050. //      Parameters:
  4051. //      beginIndex - the beginning index, inclusive
  4052. //   
  4053. // 
  4054. DEF_ENDLIST
  4055. DEF_METHOD
  4056. public String substring(int beginIndex,
  4057.                         int endIndex)
  4058. //    Returns the substring of a String. The substring is specified
  4059. // by a beginIndex (inclusive) and an endIndex (exclusive).
  4060. //   
  4061. //      Parameters:
  4062. //      beginIndex - the beginning index, inclusive
  4063. //      endIndex - the ending index, exclusive
  4064. //      Throws: StringIndexOutOfBoundsException
  4065. //      If the beginIndex or the endIndex is out 
  4066. // of range.
  4067. //   
  4068. // 
  4069. DEF_ENDLIST
  4070. DEF_METHOD
  4071. public String concat(String str)
  4072. //    Concatenates the specified string to the end of this String.
  4073. //   
  4074. //      Parameters:
  4075. //      str - the String which is concatenated to the end of this String
  4076. //   
  4077. // 
  4078. DEF_ENDLIST
  4079. DEF_METHOD
  4080. public String replace(char oldChar,
  4081.                       char newChar)
  4082. //    Converts this String by replacing all occurences of oldChar with newChar.
  4083. //   
  4084. //      Parameters:
  4085. //      oldChar - the old character
  4086. //      newChar - the new character
  4087. //   
  4088. // 
  4089. DEF_ENDLIST
  4090. DEF_METHOD
  4091. public String toLowerCase()
  4092. //    Converts all of the characters in this String to lower case.
  4093. //   
  4094. //      Returns:
  4095. //      the String, converted to lowercase.
  4096. //      See Also:
  4097. //      toLowerCase, toUpperCase
  4098. //   
  4099. // 
  4100. DEF_ENDLIST
  4101. DEF_METHOD
  4102. public String toUpperCase()
  4103. //    Converts all of the characters in this String to upper case.
  4104. //   
  4105. //      Returns:
  4106. //      the String, converted to uppercase.
  4107. //      See Also:
  4108. //      toUpperCase, toLowerCase
  4109. //   
  4110. // 
  4111. DEF_ENDLIST
  4112. DEF_METHOD
  4113. public String trim()
  4114. //    Trims leading and trailing whitespace from this String.
  4115. //   
  4116. //      Returns:
  4117. //      the String, with whitespace removed.
  4118. //   
  4119. // 
  4120. DEF_ENDLIST
  4121. DEF_METHOD
  4122. public String toString()
  4123. //    Converts this String to a String.
  4124. //   
  4125. //      Returns:
  4126. //      the String itself.
  4127. //      Overrides:
  4128. //      toString in class Object
  4129. //   
  4130. // 
  4131. DEF_ENDLIST
  4132. DEF_METHOD
  4133. public char[] toCharArray()
  4134. //    Converts this String to a character array. This creates a new array.
  4135. //   
  4136. //      Returns:
  4137. //      an array of characters.
  4138. //   
  4139. // 
  4140. DEF_ENDLIST
  4141. DEF_METHOD
  4142. public static String valueOf(Object obj)
  4143. //    Returns a String that represents the String value of the object.
  4144. // The object may choose how to represent itself by implementing
  4145. // the toString() method.
  4146. //   
  4147. //      Parameters:
  4148. //      obj - the object to be converted
  4149. //   
  4150. // 
  4151. DEF_ENDLIST
  4152. DEF_METHOD
  4153. public static String valueOf(char data[])
  4154. //    Returns a String that is equivalent to the specified character array.
  4155. // Uses the original array as the body of the String (ie. it does not
  4156. // copy it to a new array).
  4157. //   
  4158. //      Parameters:
  4159. //      data - the character array
  4160. //   
  4161. // 
  4162. DEF_ENDLIST
  4163. DEF_METHOD
  4164. public static String valueOf(char data[],
  4165.                              int offset,
  4166.                              int count)
  4167. //    Returns a String that is equivalent to the specified character array.
  4168. //   
  4169. //      Parameters:
  4170. //      data - the character array
  4171. //      offset - the offset into the value of the String
  4172. //      count - the length of the value of the String
  4173. //   
  4174. // 
  4175. DEF_ENDLIST
  4176. DEF_METHOD
  4177. public static String copyValueOf(char data[],
  4178.                                  int offset,
  4179.                                  int count)
  4180. //    Returns a String that is equivalent to the specified character array.
  4181. // It creates a new array and copies the characters into it.
  4182. //   
  4183. //      Parameters:
  4184. //      data - the character array
  4185. //      offset - the offset into the value of the String
  4186. //      count - the length of the value of the String
  4187. //   
  4188. // 
  4189. DEF_ENDLIST
  4190. DEF_METHOD
  4191. public static String copyValueOf(char data[])
  4192. //    Returns a String that is equivalent to the specified character array.
  4193. // It creates a new array and copies the characters into it.
  4194. //   
  4195. //      Parameters:
  4196. //      data - the character array
  4197. //   
  4198. // 
  4199. DEF_ENDLIST
  4200. DEF_METHOD
  4201. public static String valueOf(boolean b)
  4202. //    Returns a String object that represents the state of the specified boolean.
  4203. //   
  4204. //      Parameters:
  4205. //      b - the boolean
  4206. //   
  4207. // 
  4208. DEF_ENDLIST
  4209. DEF_METHOD
  4210. public static String valueOf(char c)
  4211. //    Returns a String object that contains a single character
  4212. //   
  4213. //      Parameters:
  4214. //      c - the character
  4215. //      Returns:
  4216. //      the resulting String.
  4217. //   
  4218. // 
  4219. DEF_ENDLIST
  4220. DEF_METHOD
  4221. public static String valueOf(int i)
  4222. //    Returns a String object that represents the value of the specified integer.
  4223. //   
  4224. //      Parameters:
  4225. //      i - the integer
  4226. //   
  4227. // 
  4228. DEF_ENDLIST
  4229. DEF_METHOD
  4230. public static String valueOf(long l)
  4231. //    Returns a String object that represents the value of the specified long.
  4232. //   
  4233. //      Parameters:
  4234. //      l - the long
  4235. //   
  4236. // 
  4237. DEF_ENDLIST
  4238. DEF_METHOD
  4239. public static String valueOf(float f)
  4240. //    Returns a String object that represents the value of the specified float.
  4241. //   
  4242. //      Parameters:
  4243. //      f - the float
  4244. //   
  4245. // 
  4246. DEF_ENDLIST
  4247. DEF_METHOD
  4248. public static String valueOf(double d)
  4249. //    Returns a String object that represents the value of the specified double.
  4250. //   
  4251. //      Parameters:
  4252. //      d - the double
  4253. //   
  4254. // 
  4255. DEF_ENDLIST
  4256. DEF_METHOD
  4257. public String intern()
  4258. //    Returns a String that is equal to this String
  4259. // but which is guaranteed to be from the unique String pool.  For example:
  4260. // s1.intern() == s2.intern()  s1.equals(s2).
  4261. // 
  4262. DEF_ENDLIST
  4263. DEF_ENDCOMPONENT
  4264. DEF_COMPONENTNAME
  4265. StringBuffer
  4266. DEF_SUPERCLASS
  4267. Object
  4268. DEF_SUPERCOMPONENT
  4269.  
  4270. DEF_PACKAGE
  4271. java
  4272. lang
  4273. DEF_ENDLIST
  4274. DEF_SUBCOMPONENTLIST
  4275. DEF_ENDLIST
  4276. DEF_SUBCOMPONENTCLASSLIST
  4277. DEF_ENDLIST
  4278. DEF_CATEGORY
  4279.  
  4280. DEF_BITMAP
  4281.  
  4282. DEF_THUMBNAIL_UP
  4283.  
  4284. DEF_THUMBNAIL_DOWN
  4285.  
  4286. DEF_BASE
  4287. DEF_IMPORTS
  4288. DEF_ENDLIST
  4289. DEF_REQUIRES
  4290. DEF_ENDLIST
  4291. DEF_IMPLEMENTS
  4292. DEF_ENDLIST
  4293. DEF_DECLARATION
  4294. // This Class is a growable buffer for characters. It is mainly used
  4295. // to create Strings. The compiler uses it to implement the "+" operator.
  4296. // For example:
  4297. // 
  4298. //     "a" + 4 + "c"
  4299. // 
  4300. // is compiled to:
  4301. // 
  4302. //     new StringBuffer().append("a").append(4).append("c").toString()
  4303. // 
  4304. // Note that the method toString() does not create a copy of the internal buffer. Instead
  4305. // the buffer is marked as shared. Any further changes to the buffer will
  4306. // cause a copy to be made. 
  4307. // 
  4308. //      See Also:
  4309. //      String, ByteArrayOutputStream
  4310. // 
  4311. DEF_ENDLIST
  4312. DEF_METHOD
  4313. public StringBuffer()
  4314. //    Constructs an empty String buffer.
  4315. // 
  4316. DEF_ENDLIST
  4317. DEF_METHOD
  4318. public StringBuffer(int length)
  4319. //    Constructs an empty String buffer with the specified initial length.
  4320. //   
  4321. //      Parameters:
  4322. //      length - the initial length
  4323. //   
  4324. // 
  4325. DEF_ENDLIST
  4326. DEF_METHOD
  4327. public StringBuffer(String str)
  4328. //    Constructs a String buffer with the specified initial value.
  4329. //   
  4330. //      Parameters:
  4331. //      str - the initial value of the buffer
  4332. //   
  4333. // 
  4334. DEF_ENDLIST
  4335. DEF_METHOD
  4336. public int length()
  4337. //    Returns the length (character count) of the buffer.
  4338. // 
  4339. DEF_ENDLIST
  4340. DEF_METHOD
  4341. public int capacity()
  4342. //    Returns the current capacity of the String buffer. The capacity
  4343. // is the amount of storage available for newly inserted
  4344. // characters; beyond which an allocation will occur.
  4345. // 
  4346. DEF_ENDLIST
  4347. DEF_METHOD
  4348. public synchronized void ensureCapacity(int minimumCapacity)
  4349. //    Ensures that the capacity of the buffer is at least equal to the
  4350. // specified minimum.
  4351. //   
  4352. //      Parameters:
  4353. //      minimumCapacity - the minimum desired capacity
  4354. //   
  4355. // 
  4356. DEF_ENDLIST
  4357. DEF_METHOD
  4358. public synchronized void setLength(int newLength)
  4359. //    Sets the length of the String. If the length is reduced, characters
  4360. // are lost. If the length is extended, the values of the new characters
  4361. // are set to 0.
  4362. //   
  4363. //      Parameters:
  4364. //      newLength - the new length of the buffer
  4365. //      Throws: StringIndexOutOfBoundsException
  4366. //      If the length is invalid.
  4367. //   
  4368. // 
  4369. DEF_ENDLIST
  4370. DEF_METHOD
  4371. public synchronized char charAt(int index)
  4372. //    Returns the character at the specified index. An index ranges
  4373. // from 0..length()-1.
  4374. //   
  4375. //      Parameters:
  4376. //      index - the index of the desired character
  4377. //      Throws: StringIndexOutOfBoundsException
  4378. //      If the index is invalid.
  4379. //   
  4380. // 
  4381. DEF_ENDLIST
  4382. DEF_METHOD
  4383. public synchronized void getChars(int srcBegin,
  4384.                                   int srcEnd,
  4385.                                   char dst[],
  4386.                                   int dstBegin)
  4387. //    Copies the characters of the specified substring (determined by
  4388. // srcBegin and srcEnd) into the character array, starting at the
  4389. // array's dstBegin location. Both srcBegin and srcEnd must be legal
  4390. // indexes into the buffer.
  4391. //   
  4392. //      Parameters:
  4393. //      srcBegin - begin copy at this offset in the String
  4394. //      srcEnd - stop copying at this offset in the String
  4395. //      dst - the array to copy the data into
  4396. //      dstBegin - offset into dst
  4397. //      Throws: StringIndexOutOfBoundsException
  4398. //      If there is an invalid index into the buffer.
  4399. //   
  4400. // 
  4401. DEF_ENDLIST
  4402. DEF_METHOD
  4403. public synchronized void setCharAt(int index,
  4404.                                    char ch)
  4405. //    Changes the character at the specified index to be ch.
  4406. //   
  4407. //      Parameters:
  4408. //      index - the index of the character
  4409. //      ch - the new character
  4410. //      Throws: StringIndexOutOfBoundsException
  4411. //      If the index is invalid.
  4412. //   
  4413. // 
  4414. DEF_ENDLIST
  4415. DEF_METHOD
  4416. public synchronized StringBuffer append(Object obj)
  4417. //    Appends an object to the end of this buffer.
  4418. //   
  4419. //      Parameters:
  4420. //      obj - the object to be appended
  4421. //      Returns:
  4422. //      the StringBuffer itself, NOT a new one.
  4423. //   
  4424. // 
  4425. DEF_ENDLIST
  4426. DEF_METHOD
  4427. public synchronized StringBuffer append(String str)
  4428. //    Appends a String to the end of this buffer.
  4429. //   
  4430. //      Parameters:
  4431. //      str - the String to be appended
  4432. //      Returns:
  4433. //      the StringBuffer itself, NOT a new one.
  4434. //   
  4435. // 
  4436. DEF_ENDLIST
  4437. DEF_METHOD
  4438. public synchronized StringBuffer append(char str[])
  4439. //    Appends an array of characters to the end of this buffer.
  4440. //   
  4441. //      Parameters:
  4442. //      str - the characters to be appended
  4443. //      Returns:
  4444. //      the StringBuffer itself, NOT a new one.
  4445. //   
  4446. // 
  4447. DEF_ENDLIST
  4448. DEF_METHOD
  4449. public synchronized StringBuffer append(char str[],
  4450.                                         int offset,
  4451.                                         int len)
  4452. //    Appends a part of an array of characters to the end of this buffer.
  4453. //   
  4454. //      Parameters:
  4455. //      str - the characters to be appended
  4456. //      offset - where to start
  4457. //      len - the number of characters to add
  4458. //      Returns:
  4459. //      the StringBuffer itself, NOT a new one.
  4460. //   
  4461. // 
  4462. DEF_ENDLIST
  4463. DEF_METHOD
  4464. public StringBuffer append(boolean b)
  4465. //    Appends a boolean to the end of this buffer.
  4466. //   
  4467. //      Parameters:
  4468. //      b - the boolean to be appended
  4469. //      Returns:
  4470. //      the StringBuffer itself, NOT a new one.
  4471. //   
  4472. // 
  4473. DEF_ENDLIST
  4474. DEF_METHOD
  4475. public synchronized StringBuffer append(char c)
  4476. //    Appends a character to the end of this buffer.
  4477. //   
  4478. //      Parameters:
  4479. //      ch - the character to be appended
  4480. //      Returns:
  4481. //      the StringBuffer itself, NOT a new one.
  4482. //   
  4483. // 
  4484. DEF_ENDLIST
  4485. DEF_METHOD
  4486. public StringBuffer append(int i)
  4487. //    Appends an integer to the end of this buffer.
  4488. //   
  4489. //      Parameters:
  4490. //      i - the integer to be appended
  4491. //      Returns:
  4492. //      the StringBuffer itself, NOT a new one.
  4493. //   
  4494. // 
  4495. DEF_ENDLIST
  4496. DEF_METHOD
  4497. public StringBuffer append(long l)
  4498. //    Appends a long to the end of this buffer.
  4499. //   
  4500. //      Parameters:
  4501. //      l - the long to be appended
  4502. //      Returns:
  4503. //      the StringBuffer itself, NOT a new one.
  4504. //   
  4505. // 
  4506. DEF_ENDLIST
  4507. DEF_METHOD
  4508. public StringBuffer append(float f)
  4509. //    Appends a float to the end of this buffer.
  4510. //   
  4511. //      Parameters:
  4512. //      f - the float to be appended
  4513. //      Returns:
  4514. //      the StringBuffer itself, NOT a new one.
  4515. //   
  4516. // 
  4517. DEF_ENDLIST
  4518. DEF_METHOD
  4519. public StringBuffer append(double d)
  4520. //    Appends a double to the end of this buffer.
  4521. //   
  4522. //      Parameters:
  4523. //      d - the double to be appended
  4524. //      Returns:
  4525. //      the StringBuffer itself, NOT a new one.
  4526. //   
  4527. // 
  4528. DEF_ENDLIST
  4529. DEF_METHOD
  4530. public synchronized StringBuffer insert(int offset,
  4531.                                         Object obj)
  4532. //    Inserts an object into the String buffer.
  4533. //   
  4534. //      Parameters:
  4535. //      offset - the offset at which to insert
  4536. //      obj - the object to insert
  4537. //      Returns:
  4538. //      the StringBuffer itself, NOT a new one.
  4539. //      Throws: StringIndexOutOfBoundsException
  4540. //      If the offset is invalid.
  4541. //   
  4542. // 
  4543. DEF_ENDLIST
  4544. DEF_METHOD
  4545. public synchronized StringBuffer insert(int offset,
  4546.                                         String str)
  4547. //    Inserts a String into the String buffer.
  4548. //   
  4549. //      Parameters:
  4550. //      offset - the offset at which to insert
  4551. //      str - the String to insert
  4552. //      Returns:
  4553. //      the StringBuffer itself, NOT a new one.
  4554. //      Throws: StringIndexOutOfBoundsException
  4555. //      If the offset is invalid.
  4556. //   
  4557. // 
  4558. DEF_ENDLIST
  4559. DEF_METHOD
  4560. public synchronized StringBuffer insert(int offset,
  4561.                                         char str[])
  4562. //    Inserts an array of characters into the String buffer.
  4563. //   
  4564. //      Parameters:
  4565. //      offset - the offset at which to insert
  4566. //      str - the characters to insert
  4567. //      Returns:
  4568. //      the StringBuffer itself, NOT a new one.
  4569. //      Throws: StringIndexOutOfBoundsException
  4570. //      If the offset is invalid.
  4571. //   
  4572. // 
  4573. DEF_ENDLIST
  4574. DEF_METHOD
  4575. public StringBuffer insert(int offset,
  4576.                            boolean b)
  4577. //    Inserts a boolean into the String buffer.
  4578. //   
  4579. //      Parameters:
  4580. //      offset - the offset at which to insert
  4581. //      b - the boolean to insert
  4582. //      Returns:
  4583. //      the StringBuffer itself, NOT a new one.
  4584. //      Throws: StringIndexOutOfBoundsException
  4585. //      If the offset is invalid.
  4586. //   
  4587. // 
  4588. DEF_ENDLIST
  4589. DEF_METHOD
  4590. public synchronized StringBuffer insert(int offset,
  4591.                                         char c)
  4592. //    Inserts a character into the String buffer.
  4593. //   
  4594. //      Parameters:
  4595. //      offset - the offset at which to insert
  4596. //      ch - the character to insert
  4597. //      Returns:
  4598. //      the StringBuffer itself, NOT a new one.
  4599. //      Throws: StringIndexOutOfBoundsException
  4600. //      If the offset invalid.
  4601. //   
  4602. // 
  4603. DEF_ENDLIST
  4604. DEF_METHOD
  4605. public StringBuffer insert(int offset,
  4606.                            int i)
  4607. //    Inserts an integer into the String buffer.
  4608. //   
  4609. //      Parameters:
  4610. //      offset - the offset at which to insert
  4611. //      i - the integer to insert
  4612. //      Returns:
  4613. //      the StringBuffer itself, NOT a new one.
  4614. //      Throws: StringIndexOutOfBoundsException
  4615. //      If the offset is invalid.
  4616. //   
  4617. // 
  4618. DEF_ENDLIST
  4619. DEF_METHOD
  4620. public StringBuffer insert(int offset,
  4621.                            long l)
  4622. //    Inserts a long into the String buffer.
  4623. //   
  4624. //      Parameters:
  4625. //      offset - the offset at which to insert
  4626. //      l - the long to insert
  4627. //      Returns:
  4628. //      the StringBuffer itself, NOT a new one.
  4629. //      Throws: StringIndexOutOfBoundsException
  4630. //      If the offset is invalid.
  4631. //   
  4632. // 
  4633. DEF_ENDLIST
  4634. DEF_METHOD
  4635. public StringBuffer insert(int offset,
  4636.                            float f)
  4637. //    Inserts a float into the String buffer.
  4638. //   
  4639. //      Parameters:
  4640. //      offset - the offset at which to insert
  4641. //      f - the float to insert
  4642. //      Returns:
  4643. //      the StringBuffer itself, NOT a new one.
  4644. //      Throws: StringIndexOutOfBoundsException
  4645. //      If the offset is invalid.
  4646. //   
  4647. // 
  4648. DEF_ENDLIST
  4649. DEF_METHOD
  4650. public StringBuffer insert(int offset,
  4651.                            double d)
  4652. //    Inserts a double into the String buffer.
  4653. //   
  4654. //      Parameters:
  4655. //      offset - the offset at which to insert
  4656. //      d - the double to insert
  4657. //      Returns:
  4658. //      the StringBuffer itself, NOT a new one.
  4659. //      Throws: StringIndexOutOfBoundsException
  4660. //      If the offset is invalid.
  4661. //   
  4662. // 
  4663. DEF_ENDLIST
  4664. DEF_METHOD
  4665. public String toString()
  4666. //    Converts to a String representing the data in the buffer.
  4667. //   
  4668. //      Overrides:
  4669. //      toString in class Object
  4670. //   
  4671. // 
  4672. DEF_ENDLIST
  4673. DEF_ENDCOMPONENT
  4674. DEF_COMPONENTNAME
  4675. StringIndexOutOfBoundsException
  4676. DEF_SUPERCLASS
  4677. IndexOutOfBoundsException
  4678. DEF_SUPERCOMPONENT
  4679.  
  4680. DEF_PACKAGE
  4681. java
  4682. lang
  4683. DEF_ENDLIST
  4684. DEF_SUBCOMPONENTLIST
  4685. DEF_ENDLIST
  4686. DEF_SUBCOMPONENTCLASSLIST
  4687. DEF_ENDLIST
  4688. DEF_CATEGORY
  4689.  
  4690. DEF_BITMAP
  4691.  
  4692. DEF_THUMBNAIL_UP
  4693.  
  4694. DEF_THUMBNAIL_DOWN
  4695.  
  4696. DEF_BASE
  4697. DEF_IMPORTS
  4698. DEF_ENDLIST
  4699. DEF_REQUIRES
  4700. DEF_ENDLIST
  4701. DEF_IMPLEMENTS
  4702. IndexOutOfBoundsException
  4703. DEF_ENDLIST
  4704. DEF_DECLARATION
  4705. // Signals that a String index is out of range.
  4706. // 
  4707. //      See Also:
  4708. //      charAt
  4709. // 
  4710. DEF_ENDLIST
  4711. DEF_METHOD
  4712. public StringIndexOutOfBoundsException()
  4713. //    Constructs a StringIndexOutOfBoundsException with no detail message.
  4714. // A detail message is a String that describes this particular exception.
  4715. // 
  4716. DEF_ENDLIST
  4717. DEF_METHOD
  4718. public StringIndexOutOfBoundsException(String s)
  4719. //    Constructs a StringIndexOutOfBoundsException with the specified detail message.
  4720. // A detail message is a String that describes this particular exception.
  4721. //   
  4722. //      Parameters:
  4723. //      s - the String containing a detail message about the error
  4724. //   
  4725. // 
  4726. DEF_ENDLIST
  4727. DEF_METHOD
  4728. public StringIndexOutOfBoundsException(int index)
  4729. //    Constructs a StringIndexOutOfBoundsException initialized with
  4730. // the specified index.
  4731. //   
  4732. //      Parameters:
  4733. //      index - the offending index
  4734. //   
  4735. // 
  4736. DEF_ENDLIST
  4737. DEF_ENDCOMPONENT
  4738. DEF_COMPONENTNAME
  4739. System
  4740. DEF_SUPERCLASS
  4741. Object
  4742. DEF_SUPERCOMPONENT
  4743.  
  4744. DEF_PACKAGE
  4745. java
  4746. lang
  4747. DEF_ENDLIST
  4748. DEF_SUBCOMPONENTLIST
  4749. DEF_ENDLIST
  4750. DEF_SUBCOMPONENTCLASSLIST
  4751. DEF_ENDLIST
  4752. DEF_CATEGORY
  4753.  
  4754. DEF_BITMAP
  4755.  
  4756. DEF_THUMBNAIL_UP
  4757.  
  4758. DEF_THUMBNAIL_DOWN
  4759.  
  4760. DEF_BASE
  4761. DEF_IMPORTS
  4762. DEF_ENDLIST
  4763. DEF_REQUIRES
  4764. DEF_ENDLIST
  4765. DEF_IMPLEMENTS
  4766. DEF_ENDLIST
  4767. DEF_DECLARATION
  4768. // This Class provides a system-independent interface to system 
  4769. // functionality.  One of the more useful things provided by this Class
  4770. // are the standard input and output streams. The standard input streams are
  4771. // used for reading character data.  The standard output streams are used for
  4772. // printing. For example:
  4773. // 
  4774. //     System.out.println("Hello World!");
  4775. // 
  4776. // This Class cannot be instantiated or subclassed because all of the methods
  4777. // and variables are static.
  4778. DEF_ENDLIST
  4779. DEF_METHOD
  4780. public static void setSecurityManager(SecurityManager s)
  4781. //    Sets the System security. This value can only be set once.
  4782. //   
  4783. //      Parameters:
  4784. //      s - the security manager
  4785. //      Throws: SecurityException
  4786. //      If the SecurityManager has already been set.
  4787. //   
  4788. // 
  4789. DEF_ENDLIST
  4790. DEF_METHOD
  4791. public static SecurityManager getSecurityManager()
  4792. //    Gets the system security interface.
  4793. // 
  4794. DEF_ENDLIST
  4795. DEF_METHOD
  4796. public static long currentTimeMillis()
  4797. //    Returns the current time in milliseconds GMT since the epoch (00:00:00
  4798. // UTC, January 1, 1970).  It is a signed 64 bit integer, and so it will
  4799. // not overflow until the year 292280995.
  4800. //   
  4801. //      See Also:
  4802. //      Date
  4803. //   
  4804. // 
  4805. DEF_ENDLIST
  4806. DEF_METHOD
  4807. public static void arraycopy(Object src,
  4808.                              int src_position,
  4809.                              Object dst,
  4810.                              int dst_position,
  4811.                              int length)
  4812. //    Copies an array from the source array, beginning at the
  4813. // specified position, to the specified position of the destination array.
  4814. // This method does not allocate memory for the destination array.  The
  4815. // memory must already be allocated.
  4816. //   
  4817. //      Parameters:
  4818. //      src - the source data
  4819. //      srcpos - start position in the source data
  4820. //      dest - the destination
  4821. //      destpos - start position in the destination data
  4822. //      length - the number of array elements to be copied
  4823. //      Throws: ArrayIndexOutOfBoundsException
  4824. //      If copy would cause
  4825. //             access of data outside array bounds.
  4826. //      Throws: ArrayStoreException
  4827. //      If an element in the src array could
  4828. //          could not be stored into the destination array due
  4829. //             to a type mismatch
  4830. //   
  4831. // 
  4832. DEF_ENDLIST
  4833. DEF_METHOD
  4834. public static Properties getProperties()
  4835. //    Gets the System properties.
  4836. // 
  4837. DEF_ENDLIST
  4838. DEF_METHOD
  4839. public static void setProperties(Properties props)
  4840. //    Sets the System properties to the specified properties.
  4841. //   
  4842. //      Parameters:
  4843. //      props - the properties to be set
  4844. //   
  4845. // 
  4846. DEF_ENDLIST
  4847. DEF_METHOD
  4848. public static String getProperty(String key)
  4849. //    Gets the System property indicated by the specified key.
  4850. //   
  4851. //      Parameters:
  4852. //      key - the name of the system property
  4853. //   
  4854. // 
  4855. DEF_ENDLIST
  4856. DEF_METHOD
  4857. public static String getProperty(String key,
  4858.                                  String def)
  4859. //    Gets the System property indicated by the specified key and def.
  4860. //   
  4861. //      Parameters:
  4862. //      key - the name of the system property
  4863. //      def - the default value to use if this property is not set
  4864. //   
  4865. // 
  4866. DEF_ENDLIST
  4867. DEF_METHOD
  4868. public static String getenv(String name)
  4869. //    Obsolete. 
  4870. // Gets an environment variable. An environment variable is a
  4871. // system dependent external variable that has a string value.
  4872. //   
  4873. //      Parameters:
  4874. //      name - the name of the environment variable
  4875. //      Returns:
  4876. //      the value of the variable, or null if the variable is
  4877. //         not defined.
  4878. //   
  4879. // 
  4880. DEF_ENDLIST
  4881. DEF_METHOD
  4882. public static void exit(int status)
  4883. //    Exits the virtual machine with an exit code. This method does
  4884. // not return, use with caution.
  4885. //   
  4886. //      Parameters:
  4887. //      status - exit status, 0 if successful, other values indicate
  4888. //        various error types.
  4889. //      See Also:
  4890. //      exit
  4891. //   
  4892. // 
  4893. DEF_ENDLIST
  4894. DEF_METHOD
  4895. public static void gc()
  4896. //    Runs the garbage collector.
  4897. //   
  4898. //      See Also:
  4899. //      gc
  4900. //   
  4901. // 
  4902. DEF_ENDLIST
  4903. DEF_METHOD
  4904. public static void runFinalization()
  4905. //    Runs the finalization methods of any objects pending finalization.
  4906. //   
  4907. //      See Also:
  4908. //      gc
  4909. //   
  4910. // 
  4911. DEF_ENDLIST
  4912. DEF_METHOD
  4913. public static void load(String filename)
  4914. //    Loads a dynamic library, given a complete path name.
  4915. //   
  4916. //      Parameters:
  4917. //      filename - the file to load
  4918. //      Throws: UnsatisfiedLinkError
  4919. //      If the file does not exist.
  4920. //      See Also:
  4921. //      load
  4922. //   
  4923. // 
  4924. DEF_ENDLIST
  4925. DEF_METHOD
  4926. public static void loadLibrary(String libname)
  4927. //    Loads a dynamic library with the specified library name.
  4928. //   
  4929. //      Parameters:
  4930. //      libname - the name of the library
  4931. //      Throws: UnsatisfiedLinkError
  4932. //      If the library does not exist.
  4933. //      See Also:
  4934. //      loadLibrary
  4935. //   
  4936. // 
  4937. DEF_ENDLIST
  4938. DEF_ENDCOMPONENT
  4939. DEF_COMPONENTNAME
  4940. Thread
  4941. DEF_SUPERCLASS
  4942. Object
  4943. DEF_SUPERCOMPONENT
  4944.  
  4945. DEF_PACKAGE
  4946. java
  4947. lang
  4948. DEF_ENDLIST
  4949. DEF_SUBCOMPONENTLIST
  4950. DEF_ENDLIST
  4951. DEF_SUBCOMPONENTCLASSLIST
  4952. DEF_ENDLIST
  4953. DEF_CATEGORY
  4954.  
  4955. DEF_BITMAP
  4956.  
  4957. DEF_THUMBNAIL_UP
  4958.  
  4959. DEF_THUMBNAIL_DOWN
  4960.  
  4961. DEF_BASE
  4962. DEF_IMPORTS
  4963. DEF_ENDLIST
  4964. DEF_REQUIRES
  4965. DEF_ENDLIST
  4966. DEF_IMPLEMENTS
  4967. Runnable
  4968. DEF_ENDLIST
  4969. DEF_DECLARATION
  4970. // A Thread is a single sequential flow of control within a process. This simply means
  4971. // that while executing within a program, each thread has a beginning, a sequence, a 
  4972. // point of execution occurring at any time during runtime of the thread and of course, an ending. 
  4973. // Thread objects are the basis for multi-threaded programming.  Multi-threaded programming
  4974. // allows a single program to conduct concurrently running threads that perform different tasks.
  4975. // 
  4976. // To create a new thread of execution, declare a new class which is a
  4977. // subclass of Thread and then override the run() method with code that you
  4978. // want executed in this Thread.  An instance of the Thread subclass should be created next
  4979. // with a call to the start() method following the instance.  The start() method will create the 
  4980. // thread and execute the run() method. 
  4981. // For example:
  4982. // 
  4983. //     class PrimeThread extends Thread {
  4984. //         public void run() {
  4985. //         // compute primes...
  4986. //         }
  4987. //     }
  4988. // 
  4989. // To start this thread you need to do the following:
  4990. // 
  4991. //     PrimeThread p = new PrimeThread();
  4992. //     p.start();
  4993. //     ...
  4994. // 
  4995. // Another way to create a thread is by using the Runnable interface.
  4996. // This way any object that implements the Runnable interface can be
  4997. // run in a thread. For example:
  4998. // 
  4999. //     class Primes implements Runnable {
  5000. //         public void run() {
  5001. //         // compute primes...
  5002. //         }
  5003. //     }
  5004. // 
  5005. // To start this thread you need to do the following:
  5006. // 
  5007. //     Primes p = new Primes();
  5008. //     new Thread(p).start();
  5009. //     ...
  5010. // 
  5011. // The virtual machine runs until all Threads that are not daemon Threads
  5012. // have died. A Thread dies when its run() method returns, or when the
  5013. // stop() method is called.
  5014. // 
  5015. // When a new Thread is created, it inherits the priority and the
  5016. // daemon flag from its parent (i.e.: the Thread that created it).
  5017. // 
  5018. //      See Also:
  5019. //      Runnable
  5020. // 
  5021. DEF_ENDLIST
  5022. DEF_METHOD
  5023. public Thread()
  5024. //    Constructs a new Thread. Threads created this way must have
  5025. // overridden their run() method to actually do anything.  An example
  5026. // illustrating this method being used is shown.
  5027. // 
  5028. // import java.lang.*; 
  5029. // 
  5030. // class plain01 implements Runnable {
  5031. //   String name; 
  5032. //   plain01() {
  5033. //     name = null;
  5034. //   }
  5035. //   plain01(String s) {
  5036. //     name = s;
  5037. //   }
  5038. //   public void run() {
  5039. //     if (name == null)
  5040. //       System.out.println("A new thread created");
  5041. //     else
  5042. //       System.out.println("A new thread with name " + name + " created");
  5043. //   }
  5044. // }
  5045. // class threadtest01 {
  5046. //   public static void main(String args[] ) {
  5047. //     int failed = 0 ;
  5048. // 
  5049. //    Thread t1 = new Thread();  
  5050. //     if(t1 != null) {
  5051. //       System.out.println("new Thread() succeed");
  5052. //     } else {
  5053. //        System.out.println("new Thread() failed"); 
  5054. //        failed++; 
  5055. //     } 
  5056. // } 
  5057. // 
  5058. DEF_ENDLIST
  5059. DEF_METHOD
  5060. public Thread(Runnable target)
  5061. //    Constructs a new Thread which applies the run() method of
  5062. // the specified target.
  5063. //   
  5064. //      Parameters:
  5065. //      target - the object whose run() method is called
  5066. //   
  5067. // 
  5068. DEF_ENDLIST
  5069. DEF_METHOD
  5070. public Thread(ThreadGroup group,
  5071.               Runnable target)
  5072. //    Constructs a new Thread in the specified Thread group that applies the run() method of
  5073. // the specified target.
  5074. //   
  5075. //      Parameters:
  5076. //      group - the Thread group
  5077. //      target - the object whose run() method is called
  5078. //   
  5079. // 
  5080. DEF_ENDLIST
  5081. DEF_METHOD
  5082. public Thread(String name)
  5083. //    Constructs a new Thread with the specified name.
  5084. //   
  5085. //      Parameters:
  5086. //      name - the name of the new Thread
  5087. //   
  5088. // 
  5089. DEF_ENDLIST
  5090. DEF_METHOD
  5091. public Thread(ThreadGroup group,
  5092.               String name)
  5093. //    Constructs a new Thread in the specified Thread group with the specified name.
  5094. //   
  5095. //      Parameters:
  5096. //      group - the Thread group
  5097. //      name - the name of the new Thread
  5098. //   
  5099. // 
  5100. DEF_ENDLIST
  5101. DEF_METHOD
  5102. public Thread(Runnable target,
  5103.               String name)
  5104. //    Constructs a new Thread with the specified name and applies
  5105. // the run() method of the specified target.
  5106. //   
  5107. //      Parameters:
  5108. //      target - the object whose run() method is called
  5109. //      name - the name of the new Thread
  5110. //   
  5111. // 
  5112. DEF_ENDLIST
  5113. DEF_METHOD
  5114. public Thread(ThreadGroup group,
  5115.               Runnable target,
  5116.               String name)
  5117. //    Constructs a new Thread in the specified Thread group with the specified name and
  5118. // applies the run() method of the specified target.
  5119. //   
  5120. //      Parameters:
  5121. //      group - the Thread group
  5122. //      target - the object whose run() method is called
  5123. //      name - the name of the new Thread
  5124. //   
  5125. // 
  5126. DEF_ENDLIST
  5127. DEF_METHOD
  5128. public static Thread currentThread()
  5129. //    Returns a reference to the currently executing Thread object.
  5130. // 
  5131. DEF_ENDLIST
  5132. DEF_METHOD
  5133. public static void yield()
  5134. //    Causes the currently executing Thread object to yield.
  5135. // If there are other runnable Threads they will be
  5136. // scheduled next.
  5137. // 
  5138. DEF_ENDLIST
  5139. DEF_METHOD
  5140. public static void sleep(long millis) throws InterruptedException
  5141. //    Causes the currently executing Thread to sleep for the specified
  5142. // number of milliseconds.
  5143. //   
  5144. //      Parameters:
  5145. //      millis - the length of time to sleep in milliseconds
  5146. //      Throws: InterruptedException
  5147. //      Another thread has interrupted this thread.
  5148. //   
  5149. // 
  5150. DEF_ENDLIST
  5151. DEF_METHOD
  5152. public static void sleep(long millis,
  5153.                          int nanos) throws InterruptedException
  5154. //    Sleep, in milliseconds and additional nanosecond.
  5155. //   
  5156. //      Parameters:
  5157. //      millis - the length of time to sleep in milliseconds
  5158. //      nanos - 0-999999 additional nanoseconds to sleep
  5159. //      Throws: InterruptedException
  5160. //      Another thread has interrupted this thread.
  5161. //   
  5162. // 
  5163. DEF_ENDLIST
  5164. DEF_METHOD
  5165. public synchronized void start()
  5166. //    Starts this Thread. This will cause the run() method to
  5167. // be called. This method will return immediately.
  5168. //   
  5169. //      Throws: IllegalThreadStateException
  5170. //      If the thread was already started.
  5171. //      See Also:
  5172. //      run, stop
  5173. //   
  5174. // 
  5175. DEF_ENDLIST
  5176. DEF_METHOD
  5177. public void run()
  5178. //    The actual body of this Thread. This method is called after
  5179. // the Thread is started. You must either override this
  5180. // method by subclassing class Thread, or you must create
  5181. // the Thread with a Runnable target.
  5182. //   
  5183. //      See Also:
  5184. //      start, stop
  5185. //   
  5186. // 
  5187. DEF_ENDLIST
  5188. DEF_METHOD
  5189. public final void stop()
  5190. //    Stops a Thread by tossing an object.  By default this
  5191. // routine tosses a new instance of ThreadDeath to the target
  5192. // Thread.  ThreadDeath is not actually a subclass of Exception,
  5193. // but is a subclass of Object.  Users should not normally try
  5194. // to catch ThreadDeath unless they must do some extraordinary
  5195. // cleanup operation.  If ThreadDeath is caught it is important
  5196. // to rethrow the object so that the thread will actually die.
  5197. // The top-level error handler will not print out a message if
  5198. // ThreadDeath falls through.
  5199. //   
  5200. //      See Also:
  5201. //      start, run
  5202. //   
  5203. // 
  5204. DEF_ENDLIST
  5205. DEF_METHOD
  5206. public final synchronized void stop(Throwable o)
  5207. //    Stops a Thread by tossing an object.  Normally, users should
  5208. // just call the stop() method without any argument.  However, in some
  5209. // exceptional circumstances used by the stop() method to kill a Thread,
  5210. // another object is tossed. ThreadDeath, is not actually a subclass
  5211. // of Exception, but is a subclass of Throwable
  5212. //   
  5213. //      Parameters:
  5214. //      o - the Throwable object to be thrown
  5215. //      See Also:
  5216. //      start, run
  5217. //   
  5218. // 
  5219. DEF_ENDLIST
  5220. DEF_METHOD
  5221. public void interrupt()
  5222. //    Send an interrupt to a thread.
  5223. // 
  5224. DEF_ENDLIST
  5225. DEF_METHOD
  5226. public static boolean interrupted()
  5227. //    Ask if you have been interrupted.
  5228. // 
  5229. DEF_ENDLIST
  5230. DEF_METHOD
  5231. public boolean isInterrupted()
  5232. //    Ask if another thread has been interrupted.
  5233. // 
  5234. DEF_ENDLIST
  5235. DEF_METHOD
  5236. public void destroy()
  5237. //    Destroy a thread, without any cleanup, i.e. just toss its state;
  5238. // any monitors it has locked remain locked.  A last resort.
  5239. // 
  5240. DEF_ENDLIST
  5241. DEF_METHOD
  5242. public final boolean isAlive()
  5243. //    Returns a boolean indicating if the Thread is active.  Having an 
  5244. // active Thread means that the Thread has been started and has not
  5245. // been stopped.
  5246. // 
  5247. DEF_ENDLIST
  5248. DEF_METHOD
  5249. public final void suspend()
  5250. //    Suspends this Thread's execution.
  5251. // 
  5252. DEF_ENDLIST
  5253. DEF_METHOD
  5254. public final void resume()
  5255. //    Resumes this Thread execution.  This method is only valid after suspend()
  5256. // has been invoked.
  5257. // 
  5258. DEF_ENDLIST
  5259. DEF_METHOD
  5260. public final void setPriority(int newPriority)
  5261. //    Sets the Thread's priority.
  5262. //   
  5263. //      Throws: IllegalArgumentException
  5264. //      If the priority is not within the
  5265. //         range MIN_PRIORITY, MAX_PRIORITY.
  5266. //      See Also:
  5267. //      MIN_PRIORITY, MAX_PRIORITY, getPriority
  5268. //   
  5269. // 
  5270. DEF_ENDLIST
  5271. DEF_METHOD
  5272. public final int getPriority()
  5273. //    Gets and returns the Thread's priority.
  5274. //   
  5275. //      See Also:
  5276. //      setPriority
  5277. //   
  5278. // 
  5279. DEF_ENDLIST
  5280. DEF_METHOD
  5281. public final void setName(String name)
  5282. //    Sets the Thread's name.
  5283. //   
  5284. //      Parameters:
  5285. //      name - the new name of the Thread
  5286. //      See Also:
  5287. //      getName
  5288. //   
  5289. // 
  5290. DEF_ENDLIST
  5291. DEF_METHOD
  5292. public final String getName()
  5293. //    Gets and returns this Thread's name.
  5294. //   
  5295. //      See Also:
  5296. //      setName
  5297. //   
  5298. // 
  5299. DEF_ENDLIST
  5300. DEF_METHOD
  5301. public final ThreadGroup getThreadGroup()
  5302. //    Gets and returns this Thread group.
  5303. // 
  5304. DEF_ENDLIST
  5305. DEF_METHOD
  5306. public static int activeCount()
  5307. //    Returns the current number of active Threads in this Thread group.
  5308. // 
  5309. DEF_ENDLIST
  5310. DEF_METHOD
  5311. public static int enumerate(Thread tarray[])
  5312. //    Copies, into the specified array, references to every active Thread in this 
  5313. // Thread's group.
  5314. //   
  5315. //      Returns:
  5316. //      the number of Threads put into the array.
  5317. //   
  5318. // 
  5319. DEF_ENDLIST
  5320. DEF_METHOD
  5321. public int countStackFrames()
  5322. //    Returns the number of stack frames in this Thread. The Thread
  5323. // must be suspended when this method is called.
  5324. //   
  5325. //      Throws: IllegalThreadStateException
  5326. //      If the Thread is not suspended.
  5327. //   
  5328. // 
  5329. DEF_ENDLIST
  5330. DEF_METHOD
  5331. public final synchronized void join(long millis) throws InterruptedException
  5332. //    Waits for this Thread to die.  A timeout in milliseconds can
  5333. // be specified.  A timeout of 0 milliseconds means to wait
  5334. // forever.
  5335. //   
  5336. //      Parameters:
  5337. //      millis - the time to wait in milliseconds
  5338. //      Throws: InterruptedException
  5339. //      Another thread has interrupted this thread.
  5340. //   
  5341. // 
  5342. DEF_ENDLIST
  5343. DEF_METHOD
  5344. public final synchronized void join(long millis,
  5345.                                     int nanos) throws InterruptedException
  5346. //    Waits for the Thread to die, with more precise time.
  5347. //   
  5348. //      Throws: InterruptedException
  5349. //      Another thread has interrupted this thread.
  5350. //   
  5351. // 
  5352. DEF_ENDLIST
  5353. DEF_METHOD
  5354. public final void join() throws InterruptedException
  5355. //    Waits forever for this Thread to die.
  5356. //   
  5357. //      Throws: InterruptedException
  5358. //      Another thread has interrupted this thread.
  5359. //   
  5360. // 
  5361. DEF_ENDLIST
  5362. DEF_METHOD
  5363. public static void dumpStack()
  5364. //    A debugging procedure to print a stack trace for the
  5365. // current Thread.
  5366. //   
  5367. //      See Also:
  5368. //      printStackTrace
  5369. //   
  5370. // 
  5371. DEF_ENDLIST
  5372. DEF_METHOD
  5373. public final void setDaemon(boolean on)
  5374. //    Marks this Thread as a daemon Thread or a user Thread.
  5375. // When there are only daemon Threads left running in the
  5376. // system, Java exits.
  5377. //   
  5378. //      Parameters:
  5379. //      on - determines whether the Thread will be a daemon Thread
  5380. //      Throws: IllegalThreadStateException
  5381. //      If the Thread is active.
  5382. //      See Also:
  5383. //      isDaemon
  5384. //   
  5385. // 
  5386. DEF_ENDLIST
  5387. DEF_METHOD
  5388. public final boolean isDaemon()
  5389. //    Returns the daemon flag of the Thread.
  5390. //   
  5391. //      See Also:
  5392. //      setDaemon
  5393. //   
  5394. // 
  5395. DEF_ENDLIST
  5396. DEF_METHOD
  5397. public void checkAccess()
  5398. //    Checks whether the current Thread is allowed to modify this Thread.
  5399. //   
  5400. //      Throws: SecurityException
  5401. //      If the current Thread is not allowed 
  5402. // to access this Thread group.
  5403. //   
  5404. // 
  5405. DEF_ENDLIST
  5406. DEF_METHOD
  5407. public String toString()
  5408. //    Returns a String representation of the Thread, including the 
  5409. // thread's name, priority and thread group.
  5410. //   
  5411. //      Overrides:
  5412. //      toString in class Object
  5413. //   
  5414. // 
  5415. DEF_ENDLIST
  5416. DEF_ENDCOMPONENT
  5417. DEF_COMPONENTNAME
  5418. ThreadDeath
  5419. DEF_SUPERCLASS
  5420. Error
  5421. DEF_SUPERCOMPONENT
  5422.  
  5423. DEF_PACKAGE
  5424. java
  5425. lang
  5426. DEF_ENDLIST
  5427. DEF_SUBCOMPONENTLIST
  5428. DEF_ENDLIST
  5429. DEF_SUBCOMPONENTCLASSLIST
  5430. DEF_ENDLIST
  5431. DEF_CATEGORY
  5432.  
  5433. DEF_BITMAP
  5434.  
  5435. DEF_THUMBNAIL_UP
  5436.  
  5437. DEF_THUMBNAIL_DOWN
  5438.  
  5439. DEF_BASE
  5440. DEF_IMPORTS
  5441. DEF_ENDLIST
  5442. DEF_REQUIRES
  5443. DEF_ENDLIST
  5444. DEF_IMPLEMENTS
  5445. DEF_ENDLIST
  5446. DEF_DECLARATION
  5447. // An instance of ThreadDeath is thrown in the victim thread when
  5448. // thread.stop() is called.  This is not a subclass of Exception,
  5449. // but rather a subclass of Error because too many people
  5450. // already catch Exception.  Instances of this class should be caught
  5451. // explicitly only if you are interested in cleaning up when being 
  5452. // asynchronously terminated.  If ThreadDeath is caught, it is important
  5453. // to rethrow the object so that the Thread will actually die.  The top-level
  5454. // error handler will not print out a message if ThreadDeath falls through.
  5455. DEF_ENDLIST
  5456. DEF_ENDCOMPONENT
  5457. DEF_COMPONENTNAME
  5458. ThreadGroup
  5459. DEF_SUPERCLASS
  5460. Object
  5461. DEF_SUPERCOMPONENT
  5462.  
  5463. DEF_PACKAGE
  5464. java
  5465. lang
  5466. DEF_ENDLIST
  5467. DEF_SUBCOMPONENTLIST
  5468. DEF_ENDLIST
  5469. DEF_SUBCOMPONENTCLASSLIST
  5470. DEF_ENDLIST
  5471. DEF_CATEGORY
  5472.  
  5473. DEF_BITMAP
  5474.  
  5475. DEF_THUMBNAIL_UP
  5476.  
  5477. DEF_THUMBNAIL_DOWN
  5478.  
  5479. DEF_BASE
  5480. DEF_IMPORTS
  5481. DEF_ENDLIST
  5482. DEF_REQUIRES
  5483. DEF_ENDLIST
  5484. DEF_IMPLEMENTS
  5485. DEF_ENDLIST
  5486. DEF_DECLARATION
  5487. // A group of Threads. A Thread group can contain a set of Threads
  5488. // as well as a set of other Thread groups. A Thread can access its
  5489. // Thread group, but it can't access the parent of its Thread group.
  5490. // This makes it possible to encapsulate a Thread in a Thread group
  5491. // and stop it from manipulating Threads in the parent group.
  5492. DEF_ENDLIST
  5493. DEF_METHOD
  5494. public ThreadGroup(String name)
  5495. //    Creates a new ThreadGroup. Its parent will be the Thread group
  5496. // of the current Thread.
  5497. //   
  5498. //      Parameters:
  5499. //      name - the name of the new Thread group created
  5500. //   
  5501. // 
  5502. DEF_ENDLIST
  5503. DEF_METHOD
  5504. public ThreadGroup(ThreadGroup parent,
  5505.                    String name)
  5506. //    Creates a new ThreadGroup with a specified name in the specified Thread group.
  5507. //   
  5508. //      Parameters:
  5509. //      parent - the specified parent Thread group
  5510. //      name - the name of the new Thread group being created
  5511. //      Throws: NullPointerException
  5512. //      If the given thread group is equal to null.
  5513. //   
  5514. // 
  5515. DEF_ENDLIST
  5516. DEF_METHOD
  5517. public final String getName()
  5518. //    Gets the name of this Thread group.
  5519. // 
  5520. DEF_ENDLIST
  5521. DEF_METHOD
  5522. public final ThreadGroup getParent()
  5523. //    Gets the parent of this Thread group.
  5524. // 
  5525. DEF_ENDLIST
  5526. DEF_METHOD
  5527. public final int getMaxPriority()
  5528. //    Gets the maximum priority of the group. Threads that are
  5529. // part of this group cannot have a higher priority than the maximum priority.
  5530. // 
  5531. DEF_ENDLIST
  5532. DEF_METHOD
  5533. public final boolean isDaemon()
  5534. //    Returns the daemon flag of the Thread group. A daemon Thread group
  5535. // is automatically destroyed when it is found empty after a Thread
  5536. // group or Thread is removed from it.
  5537. // 
  5538. DEF_ENDLIST
  5539. DEF_METHOD
  5540. public final void setDaemon(boolean daemon)
  5541. //    Changes the daemon status of this group.
  5542. //   
  5543. //      Parameters:
  5544. //      daemon - the daemon boolean which is to be set.
  5545. //   
  5546. // 
  5547. DEF_ENDLIST
  5548. DEF_METHOD
  5549. public final synchronized void setMaxPriority(int pri)
  5550. //    Sets the maximum priority of the group. Threads
  5551. // that are already in the group can have a higher priority than the
  5552. // set maximum.
  5553. //   
  5554. //      Parameters:
  5555. //      pri - the priority of the Thread group
  5556. //   
  5557. // 
  5558. DEF_ENDLIST
  5559. DEF_METHOD
  5560. public final boolean parentOf(ThreadGroup g)
  5561. //    Checks to see if this Thread group is a parent of or is equal to
  5562. // another Thread group.
  5563. //   
  5564. //      Parameters:
  5565. //      g - the Thread group to be checked
  5566. //      Returns:
  5567. //      true if this Thread group is equal to or is the parent of another Thread
  5568. // group; false otherwise.
  5569. //   
  5570. // 
  5571. DEF_ENDLIST
  5572. DEF_METHOD
  5573. public final void checkAccess()
  5574. //    Checks to see if the current Thread is allowed to modify this group.
  5575. //   
  5576. //      Throws: SecurityException
  5577. //      If the current Thread is not allowed 
  5578. // to access this Thread group.
  5579. //   
  5580. // 
  5581. DEF_ENDLIST
  5582. DEF_METHOD
  5583. public synchronized int activeCount()
  5584. //    Returns an estimate of the number of active Threads in the
  5585. // Thread group.
  5586. // 
  5587. DEF_ENDLIST
  5588. DEF_METHOD
  5589. public int enumerate(Thread list[])
  5590. //    Copies, into the specified array, references to every active Thread in this Thread group.
  5591. // You can use the activeCount() method to get an estimate of how big
  5592. // the array should be.
  5593. //   
  5594. //      Parameters:
  5595. //      list - an array of Threads
  5596. //      Returns:
  5597. //      the number of Threads put into the array
  5598. //   
  5599. // 
  5600. DEF_ENDLIST
  5601. DEF_METHOD
  5602. public int enumerate(Thread list[],
  5603.                      boolean recurse)
  5604. //    Copies, into the specified array, references to every active Thread in this Thread group.
  5605. // You can use the activeCount() method to get an estimate of how big
  5606. // the array should be.
  5607. //   
  5608. //      Parameters:
  5609. //      list - an array list of Threads
  5610. //      recurse - a boolean indicating whether a Thread has reapearred
  5611. //      Returns:
  5612. //      the number of Threads placed into the array.
  5613. //   
  5614. // 
  5615. DEF_ENDLIST
  5616. DEF_METHOD
  5617. public synchronized int activeGroupCount()
  5618. //    Returns an estimate of the number of active groups in the
  5619. // Thread group.
  5620. // 
  5621. DEF_ENDLIST
  5622. DEF_METHOD
  5623. public int enumerate(ThreadGroup list[])
  5624. //    Copies, into the specified array, references to every active Thread group in this Thread 
  5625. // group.  You can use the activeGroupCount() method to get an estimate of how big
  5626. // the array should be.
  5627. //   
  5628. //      Parameters:
  5629. //      list - an array of Thread groups
  5630. //      Returns:
  5631. //      the number of Thread groups placed into the array.
  5632. //   
  5633. // 
  5634. DEF_ENDLIST
  5635. DEF_METHOD
  5636. public int enumerate(ThreadGroup list[],
  5637.                      boolean recurse)
  5638. //    Copies, into the specified array, references to every active Thread group in this Thread 
  5639. // group.  You can use the activeGroupCount() method to get an estimate of how big
  5640. // the array should be.
  5641. //   
  5642. //      Parameters:
  5643. //      list - an array list of Thread groups
  5644. //      recurse - a boolean indicating if a Thread group has reappeared
  5645. //      Returns:
  5646. //      the number of Thread groups placed into the array.
  5647. //   
  5648. // 
  5649. DEF_ENDLIST
  5650. DEF_METHOD
  5651. public final synchronized void stop()
  5652. //    Stops all the Threads in this Thread group and all of its sub groups.
  5653. // 
  5654. DEF_ENDLIST
  5655. DEF_METHOD
  5656. public final synchronized void suspend()
  5657. //    Suspends all the Threads in this Thread group and all of its sub groups.
  5658. // 
  5659. DEF_ENDLIST
  5660. DEF_METHOD
  5661. public final synchronized void resume()
  5662. //    Resumes all the Threads in this Thread group and all of its sub groups.
  5663. // 
  5664. DEF_ENDLIST
  5665. DEF_METHOD
  5666. public final synchronized void destroy()
  5667. //    Destroys a Thread group. This does NOT stop the Threads
  5668. // in the Thread group.
  5669. //   
  5670. //      Throws: IllegalThreadStateException
  5671. //      If the Thread group is not empty
  5672. //         or if the Thread group was already destroyed.
  5673. //   
  5674. // 
  5675. DEF_ENDLIST
  5676. DEF_METHOD
  5677. public synchronized void list()
  5678. //    Lists this Thread group. Useful for debugging only.
  5679. // 
  5680. DEF_ENDLIST
  5681. DEF_METHOD
  5682. public void uncaughtException(Thread t,
  5683.                               Throwable e)
  5684. //    Called when a thread in this group exists because of
  5685. // an uncaught exception.
  5686. // 
  5687. DEF_ENDLIST
  5688. DEF_METHOD
  5689. public String toString()
  5690. //    Returns a String representation of the Thread group.
  5691. //   
  5692. //      Overrides:
  5693. //      toString in class Object
  5694. //   
  5695. // 
  5696. DEF_ENDLIST
  5697. DEF_ENDCOMPONENT
  5698. DEF_COMPONENTNAME
  5699. Throwable
  5700. DEF_SUPERCLASS
  5701. Object
  5702. DEF_SUPERCOMPONENT
  5703.  
  5704. DEF_PACKAGE
  5705. java
  5706. lang
  5707. DEF_ENDLIST
  5708. DEF_SUBCOMPONENTLIST
  5709. DEF_ENDLIST
  5710. DEF_SUBCOMPONENTCLASSLIST
  5711. DEF_ENDLIST
  5712. DEF_CATEGORY
  5713.  
  5714. DEF_BITMAP
  5715.  
  5716. DEF_THUMBNAIL_UP
  5717.  
  5718. DEF_THUMBNAIL_DOWN
  5719.  
  5720. DEF_BASE
  5721. DEF_IMPORTS
  5722. DEF_ENDLIST
  5723. DEF_REQUIRES
  5724. DEF_ENDLIST
  5725. DEF_IMPLEMENTS
  5726. DEF_ENDLIST
  5727. DEF_DECLARATION
  5728. // An object signalling that an exceptional condition has occurred.
  5729. // All exceptions are a subclass of Exception. An exception contains
  5730. // a snapshot of the execution stack, this snapshot is used to print
  5731. // a stack backtrace. An exception also contains a message string.
  5732. // Here is an example of how to catch an exception:
  5733. // 
  5734. //     try {
  5735. //         int a[] = new int[2];
  5736. //         a[4];
  5737. //     } catch (ArrayIndexOutOfBoundsException e) {
  5738. //         System.out.println("an exception occurred: " + e.getMessage());
  5739. //         e.printStackTrace();
  5740. //     }
  5741. // 
  5742. DEF_ENDLIST
  5743. DEF_METHOD
  5744. public Throwable()
  5745. //    Constructs a new Throwable with no detail message. The stack
  5746. // trace is automatically filled in.
  5747. // 
  5748. DEF_ENDLIST
  5749. DEF_METHOD
  5750. public Throwable(String message)
  5751. //    Constructs a new Throwable with the specified detail message.
  5752. // The stack trace is automatically filled in.
  5753. //   
  5754. //      Parameters:
  5755. //      message - the detailed message
  5756. //   
  5757. // 
  5758. DEF_ENDLIST
  5759. DEF_METHOD
  5760. public String getMessage()
  5761. //    Gets the detail message of the Throwable.  A detail message
  5762. // is a String that describes the Throwable that has taken place.
  5763. //   
  5764. //      Returns:
  5765. //      the detail message of the throwable.
  5766. //   
  5767. // 
  5768. DEF_ENDLIST
  5769. DEF_METHOD
  5770. public String toString()
  5771. //    Returns a short description of the Throwable.
  5772. //   
  5773. //      Overrides:
  5774. //      toString in class Object
  5775. //   
  5776. // 
  5777. DEF_ENDLIST
  5778. DEF_METHOD
  5779. public void printStackTrace()
  5780. //    Prints the Throwable and the Throwable's stack trace.
  5781. // 
  5782. DEF_ENDLIST
  5783. DEF_METHOD
  5784. public void printStackTrace(PrintStream s)
  5785. //    Fills in the excecution stack trace. This is useful only
  5786. // when rethrowing a Throwable. For example:
  5787. // 
  5788. // 
  5789. //        try {
  5790. //             a = b / c;
  5791. //        } catch(ArithmeticThrowable e) {
  5792. //         a = Number.MAX_VALUE;
  5793. //             throw e.fillInStackTrace();
  5794. //        }
  5795. // 
  5796. //   
  5797. //      Returns:
  5798. //      the Throwable itself.
  5799. //      See Also:
  5800. //      printStackTrace
  5801. //   
  5802. // 
  5803. DEF_ENDLIST
  5804. DEF_ENDCOMPONENT
  5805. DEF_COMPONENTNAME
  5806. UnknownError
  5807. DEF_SUPERCLASS
  5808. VirtualMachineError
  5809. DEF_SUPERCOMPONENT
  5810.  
  5811. DEF_PACKAGE
  5812. java
  5813. lang
  5814. DEF_ENDLIST
  5815. DEF_SUBCOMPONENTLIST
  5816. DEF_ENDLIST
  5817. DEF_SUBCOMPONENTCLASSLIST
  5818. DEF_ENDLIST
  5819. DEF_CATEGORY
  5820.  
  5821. DEF_BITMAP
  5822.  
  5823. DEF_THUMBNAIL_UP
  5824.  
  5825. DEF_THUMBNAIL_DOWN
  5826.  
  5827. DEF_BASE
  5828. DEF_IMPORTS
  5829. DEF_ENDLIST
  5830. DEF_REQUIRES
  5831. DEF_ENDLIST
  5832. DEF_IMPLEMENTS
  5833. DEF_ENDLIST
  5834. DEF_DECLARATION
  5835. // Signals that an unknown but serious exception has occurred.
  5836. DEF_ENDLIST
  5837. DEF_METHOD
  5838. public UnknownError()
  5839. //    Constructs an UnknownError with no detail message.
  5840. // A detail message is a String that describes this particular exception.
  5841. // 
  5842. DEF_ENDLIST
  5843. DEF_METHOD
  5844. public UnknownError(String s)
  5845. //    Constructs an UnknownError with the specified detail message.
  5846. // A detail message is a String that describes this particular exception.
  5847. //   
  5848. //      Parameters:
  5849. //      s - the detail message
  5850. //   
  5851. // 
  5852. DEF_ENDLIST
  5853. DEF_ENDCOMPONENT
  5854. DEF_COMPONENTNAME
  5855. UnsatisfiedLinkError
  5856. DEF_SUPERCLASS
  5857. LinkageError
  5858. DEF_SUPERCOMPONENT
  5859.  
  5860. DEF_PACKAGE
  5861. java
  5862. lang
  5863. DEF_ENDLIST
  5864. DEF_SUBCOMPONENTLIST
  5865. DEF_ENDLIST
  5866. DEF_SUBCOMPONENTCLASSLIST
  5867. DEF_ENDLIST
  5868. DEF_CATEGORY
  5869.  
  5870. DEF_BITMAP
  5871.  
  5872. DEF_THUMBNAIL_UP
  5873.  
  5874. DEF_THUMBNAIL_DOWN
  5875.  
  5876. DEF_BASE
  5877. DEF_IMPORTS
  5878. DEF_ENDLIST
  5879. DEF_REQUIRES
  5880. DEF_ENDLIST
  5881. DEF_IMPLEMENTS
  5882. DEF_ENDLIST
  5883. DEF_DECLARATION
  5884. // Signals an unsatisfied link.
  5885. // 
  5886. //      See Also:
  5887. //      Runtime
  5888. // 
  5889. DEF_ENDLIST
  5890. DEF_METHOD
  5891. public UnsatisfiedLinkError()
  5892. //    Constructs an UnsatisfiedLinkError with no detail message.
  5893. // A detail message is a String that describes this particular exception.
  5894. // 
  5895. DEF_ENDLIST
  5896. DEF_METHOD
  5897. public UnsatisfiedLinkError(String s)
  5898. //    Constructs an UnsatisfiedLinkError with the specified detail message.
  5899. // A detail message is a String that describes this particular exception.
  5900. //   
  5901. //      Parameters:
  5902. //      s - the detail message
  5903. //   
  5904. // 
  5905. DEF_ENDLIST
  5906. DEF_ENDCOMPONENT
  5907. DEF_COMPONENTNAME
  5908. VerifyError
  5909. DEF_SUPERCLASS
  5910. LinkageError
  5911. DEF_SUPERCOMPONENT
  5912.  
  5913. DEF_PACKAGE
  5914. java
  5915. lang
  5916. DEF_ENDLIST
  5917. DEF_SUBCOMPONENTLIST
  5918. DEF_ENDLIST
  5919. DEF_SUBCOMPONENTCLASSLIST
  5920. DEF_ENDLIST
  5921. DEF_CATEGORY
  5922.  
  5923. DEF_BITMAP
  5924.  
  5925. DEF_THUMBNAIL_UP
  5926.  
  5927. DEF_THUMBNAIL_DOWN
  5928.  
  5929. DEF_BASE
  5930. DEF_IMPORTS
  5931. DEF_ENDLIST
  5932. DEF_REQUIRES
  5933. DEF_ENDLIST
  5934. DEF_IMPLEMENTS
  5935. DEF_ENDLIST
  5936. DEF_DECLARATION
  5937. // Signals that a Verification Error occured.
  5938. DEF_ENDLIST
  5939. DEF_METHOD
  5940. public VerifyError()
  5941. //    Constructor.
  5942. // 
  5943. DEF_ENDLIST
  5944. DEF_METHOD
  5945. public VerifyError(String s)
  5946. //    Constructor with a detail message.
  5947. // 
  5948. DEF_ENDLIST
  5949. DEF_ENDCOMPONENT
  5950. DEF_COMPONENTNAME
  5951. VirtualMachineError
  5952. DEF_SUPERCLASS
  5953. Error
  5954. DEF_SUPERCOMPONENT
  5955.  
  5956. DEF_PACKAGE
  5957. java
  5958. lang
  5959. DEF_ENDLIST
  5960. DEF_SUBCOMPONENTLIST
  5961. DEF_ENDLIST
  5962. DEF_SUBCOMPONENTCLASSLIST
  5963. DEF_ENDLIST
  5964. DEF_CATEGORY
  5965.  
  5966. DEF_BITMAP
  5967.  
  5968. DEF_THUMBNAIL_UP
  5969.  
  5970. DEF_THUMBNAIL_DOWN
  5971.  
  5972. DEF_BASE
  5973. DEF_IMPORTS
  5974. DEF_ENDLIST
  5975. DEF_REQUIRES
  5976. DEF_ENDLIST
  5977. DEF_IMPLEMENTS
  5978. DEF_ENDLIST
  5979. DEF_DECLARATION
  5980. // A VirtualMachineError indicates that the virtual machine is broken
  5981. // or has run out of resources.
  5982. // 
  5983. DEF_ENDLIST
  5984. DEF_METHOD
  5985. public VirtualMachineError()
  5986. //    Constructs a VirtualMachineError with no detail message.
  5987. // A detail message is a String that describes this particular exception.
  5988. // 
  5989. DEF_ENDLIST
  5990. DEF_METHOD
  5991. public VirtualMachineError(String s)
  5992. //    Constructs a VirtualMachineError with the specified detail message.
  5993. // A detail message is a String that describes this particular exception.
  5994. //   
  5995. //      Parameters:
  5996. //      s - the detail message
  5997. //   
  5998. // 
  5999. DEF_ENDLIST
  6000. DEF_ENDCOMPONENT
  6001. DEF_COMPONENTNAME
  6002. ServerSocket
  6003. DEF_SUPERCLASS
  6004. Object
  6005. DEF_SUPERCOMPONENT
  6006.  
  6007. DEF_PACKAGE
  6008. java
  6009. net
  6010. DEF_ENDLIST
  6011. DEF_SUBCOMPONENTLIST
  6012. DEF_ENDLIST
  6013. DEF_SUBCOMPONENTCLASSLIST
  6014. DEF_ENDLIST
  6015. DEF_CATEGORY
  6016.  
  6017. DEF_BITMAP
  6018.  
  6019. DEF_THUMBNAIL_UP
  6020.  
  6021. DEF_THUMBNAIL_DOWN
  6022.  
  6023. DEF_BASE
  6024. DEF_IMPORTS
  6025. java.net.ServerSocket
  6026. DEF_ENDLIST
  6027. DEF_REQUIRES
  6028. DEF_ENDLIST
  6029. DEF_IMPLEMENTS
  6030. DEF_ENDLIST
  6031. DEF_DECLARATION
  6032. // The server Socket class. It uses a SocketImpl
  6033. // to implement the actual socket operations. It is done this way 
  6034. // so that you are able to change socket implementations depending 
  6035. // on the kind of firewall being used. You can change socket
  6036. // implementations by setting the SocketImplFactory.
  6037. DEF_ENDLIST
  6038. DEF_METHOD
  6039. public ServerSocket(int port) throws IOException
  6040. //    Creates a server socket on a specified port.
  6041. //   
  6042. //      Parameters:
  6043. //      port - the port
  6044. //      Throws: IOException
  6045. //      IO error when opening the socket.
  6046. //   
  6047. // 
  6048. DEF_ENDLIST
  6049. DEF_METHOD
  6050. public ServerSocket(int port,
  6051.                     int count) throws IOException
  6052. //    Creates a server socket, binds it to the specified local port 
  6053. // and listens to it.  You can connect to an annonymous port by 
  6054. // specifying the port number to be 0.
  6055. //   
  6056. //      Parameters:
  6057. //      port - the specified port
  6058. //      count - the amountt of time to listen for a connection
  6059. //   
  6060. // 
  6061. DEF_ENDLIST
  6062. DEF_METHOD
  6063. public InetAddress getInetAddress()
  6064. //    Gets the address to which the socket is connected.
  6065. // 
  6066. DEF_ENDLIST
  6067. DEF_METHOD
  6068. public int getLocalPort()
  6069. //    Gets the port on which the socket is listening.
  6070. // 
  6071. DEF_ENDLIST
  6072. DEF_METHOD
  6073. public Socket accept() throws IOException
  6074. //    Accepts a connection. This method will block until the
  6075. // connection is made.
  6076. //   
  6077. //      Throws: IOException
  6078. //      IO error when waiting for the connection.
  6079. //   
  6080. // 
  6081. DEF_ENDLIST
  6082. DEF_METHOD
  6083. public void close() throws IOException
  6084. //    Closes the server socket.
  6085. //   
  6086. //      Throws: IOException
  6087. //      IO error when closing the socket.
  6088. //   
  6089. // 
  6090. DEF_ENDLIST
  6091. DEF_METHOD
  6092. public String toString()
  6093. //    Returns the implementation address and implementation port of 
  6094. // this ServerSocket as a String.
  6095. //   
  6096. //      Overrides:
  6097. //      toString in class Object
  6098. //   
  6099. // 
  6100. DEF_ENDLIST
  6101. DEF_METHOD
  6102. public static synchronized void setSocketFactory(SocketImplFactory fac) throws IOException
  6103. //    Sets the system's server SocketImplFactory. The factory can 
  6104. // be specified only once.
  6105. //   
  6106. //      Parameters:
  6107. //      fac - the desired factory
  6108. //      Throws: SocketException
  6109. //      If the factory has already been 
  6110. // defined.
  6111. //      Throws: IOException
  6112. //      IO error when setting the socket factor.
  6113. //   
  6114. // 
  6115. DEF_ENDLIST
  6116. DEF_ENDCOMPONENT
  6117. DEF_COMPONENTNAME
  6118. Socket
  6119. DEF_SUPERCLASS
  6120. Object
  6121. DEF_SUPERCOMPONENT
  6122.  
  6123. DEF_PACKAGE
  6124. java
  6125. net
  6126. DEF_ENDLIST
  6127. DEF_SUBCOMPONENTLIST
  6128. DEF_ENDLIST
  6129. DEF_SUBCOMPONENTCLASSLIST
  6130. DEF_ENDLIST
  6131. DEF_CATEGORY
  6132.  
  6133. DEF_BITMAP
  6134.  
  6135. DEF_THUMBNAIL_UP
  6136.  
  6137. DEF_THUMBNAIL_DOWN
  6138.  
  6139. DEF_BASE
  6140. DEF_IMPORTS
  6141. java.net.Socket
  6142. DEF_ENDLIST
  6143. DEF_REQUIRES
  6144. DEF_ENDLIST
  6145. DEF_IMPLEMENTS
  6146. DEF_ENDLIST
  6147. DEF_DECLARATION
  6148. // The client Socket class. It uses a SocketImpl
  6149. // to implement the actual socket operations. It is done this way 
  6150. // so that you are able to change socket implementations depending 
  6151. // on the kind of firewall that is used. You can change socket
  6152. // implementations by setting the SocketImplFactory.
  6153. DEF_ENDLIST
  6154. DEF_METHOD
  6155. public Socket(String host,
  6156.               int port) throws UnknownHostException, IOException
  6157. //    Creates a stream socket and connects it to the specified port on
  6158. // the specified host.
  6159. //   
  6160. //      Parameters:
  6161. //      host - the host
  6162. //      port - the port
  6163. //   
  6164. // 
  6165. DEF_ENDLIST
  6166. DEF_METHOD
  6167. public Socket(String host,
  6168.               int port,
  6169.               boolean stream) throws IOException
  6170. //    Creates a socket and connects it to the specified port on
  6171. // the specified host. The last argument lets you specify whether
  6172. // you want a stream or datagram socket.
  6173. //   
  6174. //      Parameters:
  6175. //      host - the specified host
  6176. //      port - the specified port
  6177. //      stream - a boolean indicating whether this is a stream 
  6178. // or datagram socket
  6179. //   
  6180. // 
  6181. DEF_ENDLIST
  6182. DEF_METHOD
  6183. public Socket(InetAddress address,
  6184.               int port) throws IOException
  6185. //    Creates a stream socket and connects it to the specified address on
  6186. // the specified port.
  6187. //   
  6188. //      Parameters:
  6189. //      address - the specified address
  6190. //      port - the specified port
  6191. //   
  6192. // 
  6193. DEF_ENDLIST
  6194. DEF_METHOD
  6195. public Socket(InetAddress address,
  6196.               int port,
  6197.               boolean stream) throws IOException
  6198. //    Creates a socket and connects it to the specified address on
  6199. // the specified port. The last argument lets you specify whether
  6200. // you want a stream or datagram socket.
  6201. //   
  6202. //      Parameters:
  6203. //      address - the specified address
  6204. //      port - the specified port
  6205. //      stream - a boolean indicating whether this is a stream 
  6206. // or datagram socket
  6207. //   
  6208. // 
  6209. DEF_ENDLIST
  6210. DEF_METHOD
  6211. public InetAddress getInetAddress()
  6212. //    Gets the address to which the socket is connected.
  6213. // 
  6214. DEF_ENDLIST
  6215. DEF_METHOD
  6216. public int getPort()
  6217. //    Gets the remote port to which the socket is connected.
  6218. // 
  6219. DEF_ENDLIST
  6220. DEF_METHOD
  6221. public int getLocalPort()
  6222. //    Gets the local port to which the socket is connected.
  6223. // 
  6224. DEF_ENDLIST
  6225. DEF_METHOD
  6226. public InputStream getInputStream() throws IOException
  6227. //    Gets an InputStream for this socket.
  6228. // 
  6229. DEF_ENDLIST
  6230. DEF_METHOD
  6231. public OutputStream getOutputStream() throws IOException
  6232. //    Gets an OutputStream for this socket.
  6233. // 
  6234. DEF_ENDLIST
  6235. DEF_METHOD
  6236. public synchronized void close() throws IOException
  6237. //    Closes the socket.
  6238. // 
  6239. DEF_ENDLIST
  6240. DEF_METHOD
  6241. public String toString()
  6242. //    Converts the Socket to a String.
  6243. //   
  6244. //      Overrides:
  6245. //      toString in class Object
  6246. //   
  6247. // 
  6248. DEF_ENDLIST
  6249. DEF_METHOD
  6250. public static synchronized void setSocketImplFactory(SocketImplFactory fac) throws IOException
  6251. //    Sets the system's client SocketImplFactory. The factory can 
  6252. // be specified only once.
  6253. //   
  6254. //      Parameters:
  6255. //      fac - the desired factory
  6256. //      Throws: SocketException
  6257. //      If the factory is already defined.
  6258. //   
  6259. // 
  6260. DEF_ENDLIST
  6261. DEF_ENDCOMPONENT
  6262. DEF_COMPONENTNAME
  6263. SocketException
  6264. DEF_SUPERCLASS
  6265. IOException
  6266. DEF_SUPERCOMPONENT
  6267.  
  6268. DEF_PACKAGE
  6269. java
  6270. net
  6271. DEF_ENDLIST
  6272. DEF_SUBCOMPONENTLIST
  6273. DEF_ENDLIST
  6274. DEF_SUBCOMPONENTCLASSLIST
  6275. DEF_ENDLIST
  6276. DEF_CATEGORY
  6277.  
  6278. DEF_BITMAP
  6279.  
  6280. DEF_THUMBNAIL_UP
  6281.  
  6282. DEF_THUMBNAIL_DOWN
  6283.  
  6284. DEF_BASE
  6285. DEF_IMPORTS
  6286. java.net.SocketException
  6287. DEF_ENDLIST
  6288. DEF_REQUIRES
  6289. DEF_ENDLIST
  6290. DEF_IMPLEMENTS
  6291. DEF_ENDLIST
  6292. DEF_DECLARATION
  6293. // Signals that an error occurred while attempting to use a socket.
  6294. DEF_ENDLIST
  6295. DEF_METHOD
  6296. public SocketException(String msg)
  6297. //    Constructs a new SocketException with the specified detail 
  6298. // message.
  6299. // A detail message is a String that gives a specific 
  6300. // description of this error.
  6301. //   
  6302. //      Parameters:
  6303. //      msg - the detail message
  6304. //   
  6305. // 
  6306. DEF_ENDLIST
  6307. DEF_METHOD
  6308. public SocketException()
  6309. //    Constructs a new SocketException with no detail message.
  6310. // A detail message is a String that gives a specific 
  6311. // description of this error.
  6312. // 
  6313. DEF_ENDLIST
  6314. DEF_ENDCOMPONENT
  6315. DEF_COMPONENTNAME
  6316. SocketImpl
  6317. DEF_SUPERCLASS
  6318. Object
  6319. DEF_SUPERCOMPONENT
  6320.  
  6321. DEF_PACKAGE
  6322. java
  6323. net
  6324. DEF_ENDLIST
  6325. DEF_SUBCOMPONENTLIST
  6326. DEF_ENDLIST
  6327. DEF_SUBCOMPONENTCLASSLIST
  6328. DEF_ENDLIST
  6329. DEF_CATEGORY
  6330.  
  6331. DEF_BITMAP
  6332.  
  6333. DEF_THUMBNAIL_UP
  6334.  
  6335. DEF_THUMBNAIL_DOWN
  6336.  
  6337. DEF_BASE
  6338. DEF_IMPORTS
  6339. java.net.SocketImpl
  6340. DEF_ENDLIST
  6341. DEF_REQUIRES
  6342. DEF_ENDLIST
  6343. DEF_IMPLEMENTS
  6344. DEF_ENDLIST
  6345. DEF_DECLARATION
  6346. // This is the Socket implementation class. It is an
  6347. // abstract class that must be subclassed to provide
  6348. // an actual implementation.
  6349. DEF_ENDLIST
  6350. DEF_ENDCOMPONENT
  6351. DEF_COMPONENTNAME
  6352. UnknownHostException
  6353. DEF_SUPERCLASS
  6354. IOException
  6355. DEF_SUPERCOMPONENT
  6356.  
  6357. DEF_PACKAGE
  6358. java
  6359. net
  6360. DEF_ENDLIST
  6361. DEF_SUBCOMPONENTLIST
  6362. DEF_ENDLIST
  6363. DEF_SUBCOMPONENTCLASSLIST
  6364. DEF_ENDLIST
  6365. DEF_CATEGORY
  6366.  
  6367. DEF_BITMAP
  6368.  
  6369. DEF_THUMBNAIL_UP
  6370.  
  6371. DEF_THUMBNAIL_DOWN
  6372.  
  6373. DEF_BASE
  6374. DEF_IMPORTS
  6375. java.net.UnknownHostException
  6376. DEF_ENDLIST
  6377. DEF_REQUIRES
  6378. DEF_ENDLIST
  6379. DEF_IMPLEMENTS
  6380. DEF_ENDLIST
  6381. DEF_DECLARATION
  6382. // Signals that the address of the server specified by a network client could not
  6383. // be resolved.
  6384. DEF_ENDLIST
  6385. DEF_METHOD
  6386. public UnknownHostException(String host)
  6387. //    Constructs a new UnknownHostException with the specified detail message.
  6388. // A detail message is a String that gives a specific description
  6389. // of this error.
  6390. //   
  6391. //      Parameters:
  6392. //      host - the detail message
  6393. //   
  6394. // 
  6395. DEF_ENDLIST
  6396. DEF_METHOD
  6397. public UnknownHostException()
  6398. //    Constructs a new UnknownHostException with no detail message. 
  6399. // A detail message is a String that gives a specific description
  6400. // of this error.
  6401. // 
  6402. DEF_ENDLIST
  6403. DEF_ENDCOMPONENT
  6404. DEF_COMPONENTNAME
  6405. UnknownServiceException
  6406. DEF_SUPERCLASS
  6407. IOException
  6408. DEF_SUPERCOMPONENT
  6409.  
  6410. DEF_PACKAGE
  6411. java
  6412. net
  6413. DEF_ENDLIST
  6414. DEF_SUBCOMPONENTLIST
  6415. DEF_ENDLIST
  6416. DEF_SUBCOMPONENTCLASSLIST
  6417. DEF_ENDLIST
  6418. DEF_CATEGORY
  6419.  
  6420. DEF_BITMAP
  6421.  
  6422. DEF_THUMBNAIL_UP
  6423.  
  6424. DEF_THUMBNAIL_DOWN
  6425.  
  6426. DEF_BASE
  6427. DEF_IMPORTS
  6428. java.net.UnknownServiceException
  6429. DEF_ENDLIST
  6430. DEF_REQUIRES
  6431. DEF_ENDLIST
  6432. DEF_IMPLEMENTS
  6433. DEF_ENDLIST
  6434. DEF_DECLARATION
  6435. // Signals that an unknown service exception has occurred.
  6436. DEF_ENDLIST
  6437. DEF_METHOD
  6438. public UnknownServiceException()
  6439. //    Constructs a new UnknownServiceException with no detail message. 
  6440. // A detail message is a String that gives a specific description
  6441. // of this error.
  6442. // 
  6443. DEF_ENDLIST
  6444. DEF_METHOD
  6445. public UnknownServiceException(String msg)
  6446. //    Constructs a new UnknownServiceException with the specified detail message. 
  6447. // A detail message is a String that gives a specific description
  6448. // of this error.
  6449. //   
  6450. //      Parameters:
  6451. //      msg - the detail message
  6452. //   
  6453. // 
  6454. DEF_ENDLIST
  6455. DEF_ENDCOMPONENT
  6456. DEF_COMPONENTNAME
  6457. URL
  6458. DEF_SUPERCLASS
  6459. Object
  6460. DEF_SUPERCOMPONENT
  6461.  
  6462. DEF_PACKAGE
  6463. java
  6464. net
  6465. DEF_ENDLIST
  6466. DEF_SUBCOMPONENTLIST
  6467. DEF_ENDLIST
  6468. DEF_SUBCOMPONENTCLASSLIST
  6469. DEF_ENDLIST
  6470. DEF_CATEGORY
  6471.  
  6472. DEF_BITMAP
  6473.  
  6474. DEF_THUMBNAIL_UP
  6475.  
  6476. DEF_THUMBNAIL_DOWN
  6477.  
  6478. DEF_BASE
  6479. DEF_IMPORTS
  6480. java.net.URL
  6481. DEF_ENDLIST
  6482. DEF_REQUIRES
  6483. DEF_ENDLIST
  6484. DEF_IMPLEMENTS
  6485. DEF_ENDLIST
  6486. DEF_DECLARATION
  6487. // Class URL represents a Uniform Reference Locator -- a reference
  6488. // to an object on the World Wide Web. This is a constant object,
  6489. // once it is created, its fields cannot be changed.
  6490. DEF_ENDLIST
  6491. DEF_METHOD
  6492. public URL(String protocol,
  6493.            String host,
  6494.            int port,
  6495.            String file) throws MalformedURLException
  6496. //    Creates an absolute URL from the specified protocol,
  6497. // host, port and file.
  6498. //   
  6499. //      Parameters:
  6500. //      protocol - the protocol to use
  6501. //      host - the host to connect to
  6502. //      port - the port at that host to connect to
  6503. //      file - the file on that host
  6504. //      Throws: MalformedURLException
  6505. //      If an unknown protocol is 
  6506. // found.
  6507. //   
  6508. // 
  6509. DEF_ENDLIST
  6510. DEF_METHOD
  6511. public URL(String protocol,
  6512.            String host,
  6513.            String file) throws MalformedURLException
  6514. //    Creates an absolute URL from the specified protocol,
  6515. // host, and file.  The port number used will be the default for the
  6516. // protocol.
  6517. //   
  6518. //      Parameters:
  6519. //      protocol - the protocol to use
  6520. //      host - the host to connect to
  6521. //      file - the file on that host
  6522. //      Throws: MalformedURLException
  6523. //      If an unknown protocol is 
  6524. // found.
  6525. //   
  6526. // 
  6527. DEF_ENDLIST
  6528. DEF_METHOD
  6529. public URL(String spec) throws MalformedURLException
  6530. //    Creates a URL from the unparsed absolute URL.
  6531. //   
  6532. //      Parameters:
  6533. //      spec - the URL String to parse
  6534. //   
  6535. // 
  6536. DEF_ENDLIST
  6537. DEF_METHOD
  6538. public URL(URL context,
  6539.            String spec) throws MalformedURLException
  6540. //    Creates a URL from the unparsed URL in the specified context.If
  6541. // spec is an absolute URL it is used as is. Otherwise it isparsed
  6542. // in terms of the context.  Context may be null (indicating no
  6543. // context).
  6544. //   
  6545. //      Parameters:
  6546. //      context - the context to parse the URL to
  6547. //      spec - the URL String to parse
  6548. //      Throws: MalformedURLException
  6549. //      If the protocol is equal to null.
  6550. //   
  6551. // 
  6552. DEF_ENDLIST
  6553. DEF_METHOD
  6554. protected void set(String protocol,
  6555.                    String host,
  6556.                    int port,
  6557.                    String file,
  6558.                    String ref)
  6559. //    Sets the fields of the URL. This is not a public method so that 
  6560. // only URLStreamHandlers can modify URL fields. URLs are 
  6561. // otherwise constant.
  6562. // REMIND: this method will be moved to URLStreamHandler
  6563. //   
  6564. //      Parameters:
  6565. //      protocol - the protocol to use
  6566. //      host - the host name to connecto to
  6567. //      port - the protocol port to connect to
  6568. //      file - the specified file name on that host
  6569. //      ref - the reference
  6570. //   
  6571. // 
  6572. DEF_ENDLIST
  6573. DEF_METHOD
  6574. public int getPort()
  6575. //    Gets the port number. Returns -1 if the port is not set.
  6576. // 
  6577. DEF_ENDLIST
  6578. DEF_METHOD
  6579. public String getProtocol()
  6580. //    Gets the protocol name.
  6581. // 
  6582. DEF_ENDLIST
  6583. DEF_METHOD
  6584. public String getHost()
  6585. //    Gets the host name.
  6586. // 
  6587. DEF_ENDLIST
  6588. DEF_METHOD
  6589. public String getFile()
  6590. //    Gets the file name.
  6591. // 
  6592. DEF_ENDLIST
  6593. DEF_METHOD
  6594. public String getRef()
  6595. //    Gets the ref.
  6596. // 
  6597. DEF_ENDLIST
  6598. DEF_METHOD
  6599. public boolean equals(Object obj)
  6600. //    Compares two URLs.
  6601. //   
  6602. //      Parameters:
  6603. //      obj - the URL to compare against.
  6604. //      Returns:
  6605. //      true if and only if they are equal, false otherwise.
  6606. //      Overrides:
  6607. //      equals in class Object
  6608. //   
  6609. // 
  6610. DEF_ENDLIST
  6611. DEF_METHOD
  6612. public int hashCode()
  6613. //    Creates an integer suitable for hash table indexing.
  6614. //   
  6615. //      Overrides:
  6616. //      hashCode in class Object
  6617. //   
  6618. // 
  6619. DEF_ENDLIST
  6620. DEF_METHOD
  6621. public boolean sameFile(URL other)
  6622. //    Compares two URLs, excluding the "ref" fields: sameFile is true
  6623. // if the true references the same remote object, but not necessarily
  6624. // the same subpiece of that object.
  6625. //   
  6626. //      Parameters:
  6627. //      other - the URL to compare against.
  6628. //      Returns:
  6629. //      true if and only if they are equal, false otherwise.
  6630. //   
  6631. // 
  6632. DEF_ENDLIST
  6633. DEF_METHOD
  6634. public String toString()
  6635. //    Converts to a human-readable form.
  6636. //   
  6637. //      Returns:
  6638. //      the textual representation.
  6639. //      Overrides:
  6640. //      toString in class Object
  6641. //   
  6642. // 
  6643. DEF_ENDLIST
  6644. DEF_METHOD
  6645. public String toExternalForm()
  6646. //    Reverses the parsing of the URL.
  6647. //   
  6648. //      Returns:
  6649. //      the textual representation of the fully qualified URL (i.e.
  6650. //         after the context and canonicalization have been applied).
  6651. //   
  6652. // 
  6653. DEF_ENDLIST
  6654. DEF_METHOD
  6655. public URLConnection openConnection() throws IOException
  6656. //    Creates (if not already in existance) a URLConnection object that
  6657. // contains a connection to the remote object referred to by
  6658. // the URL.  Invokes the appropriate protocol handler.  Failure is
  6659. // indicated by throwing an exception.
  6660. //   
  6661. //      Throws: IOException
  6662. //      If an I/O exception has occurred.
  6663. //      See Also:
  6664. //      URLConnection
  6665. //   
  6666. // 
  6667. DEF_ENDLIST
  6668. DEF_METHOD
  6669. public final InputStream openStream() throws IOException
  6670. //    Opens an input stream.
  6671. //   
  6672. //      Throws: IOException
  6673. //      If an I/O exception has occurred.
  6674. //   
  6675. // 
  6676. DEF_ENDLIST
  6677. DEF_METHOD
  6678. public final Object getContent() throws IOException
  6679. //    Gets the contents from this opened connection.
  6680. //   
  6681. //      Throws: IOException
  6682. //      If an I/O exception has occurred.
  6683. //   
  6684. // 
  6685. DEF_ENDLIST
  6686. DEF_METHOD
  6687. public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac)
  6688. //    Sets the URLStreamHandler factory.
  6689. //   
  6690. //      Parameters:
  6691. //      fac - the desired factory
  6692. //      Throws: Error
  6693. //      If the factory has already been defined.
  6694. //   
  6695. // 
  6696. DEF_ENDLIST
  6697. DEF_ENDCOMPONENT
  6698. DEF_COMPONENTNAME
  6699. URLConnection
  6700. DEF_SUPERCLASS
  6701. Object
  6702. DEF_SUPERCOMPONENT
  6703.  
  6704. DEF_PACKAGE
  6705. java
  6706. net
  6707. DEF_ENDLIST
  6708. DEF_SUBCOMPONENTLIST
  6709. DEF_ENDLIST
  6710. DEF_SUBCOMPONENTCLASSLIST
  6711. DEF_ENDLIST
  6712. DEF_CATEGORY
  6713.  
  6714. DEF_BITMAP
  6715.  
  6716. DEF_THUMBNAIL_UP
  6717.  
  6718. DEF_THUMBNAIL_DOWN
  6719.  
  6720. DEF_BASE
  6721. DEF_IMPORTS
  6722. java.net.URLConnection
  6723. DEF_ENDLIST
  6724. DEF_REQUIRES
  6725. DEF_ENDLIST
  6726. DEF_IMPLEMENTS
  6727. DEF_ENDLIST
  6728. DEF_DECLARATION
  6729. // A class to represent an active connection to an object
  6730. // represented by a URL. It is an abstract class that must be
  6731. // subclassed to implement a connection.
  6732. DEF_ENDLIST
  6733. DEF_METHOD
  6734. public abstract void connect() throws IOException
  6735. //    URLConnection objects go through two phases: first they are
  6736. // created, then they are connected.  After being created, and
  6737. // before being connected, various options can be specified
  6738. // (eg. doInput, UseCaches, ...).  After connecting, it is an
  6739. // Error to try to set them.  Operations that depend on being
  6740. // connected, like getContentLength, will implicitly perform the
  6741. // connection if necessary.  Connecting when already connected
  6742. // does nothing.
  6743. // 
  6744. DEF_ENDLIST
  6745. DEF_METHOD
  6746. public URL getURL()
  6747. //    Gets the URL for this connection.
  6748. // 
  6749. DEF_ENDLIST
  6750. DEF_METHOD
  6751. public int getContentLength()
  6752. //    Gets the content length. Returns -1 if not known.
  6753. // 
  6754. DEF_ENDLIST
  6755. DEF_METHOD
  6756. public String getContentType()
  6757. //    Gets the content type. Returns null if not known.
  6758. // 
  6759. DEF_ENDLIST
  6760. DEF_METHOD
  6761. public String getContentEncoding()
  6762. //    Gets the content encoding. Returns null if not known.
  6763. // 
  6764. DEF_ENDLIST
  6765. DEF_METHOD
  6766. public long getExpiration()
  6767. //    Gets the expriation date of the object. Returns 0 if not known.
  6768. // 
  6769. DEF_ENDLIST
  6770. DEF_METHOD
  6771. public long getDate()
  6772. //    Gets the sending date of the object. Returns 0 if not known.
  6773. // 
  6774. DEF_ENDLIST
  6775. DEF_METHOD
  6776. public long getLastModified()
  6777. //    Gets the last modified date of the object. Returns 0 if not known.
  6778. // 
  6779. DEF_ENDLIST
  6780. DEF_METHOD
  6781. public String getHeaderField(String name)
  6782. //    Gets a header field by name. Returns null if not known.
  6783. //   
  6784. //      Parameters:
  6785. //      name - the name of the header field
  6786. //   
  6787. // 
  6788. DEF_ENDLIST
  6789. DEF_METHOD
  6790. public int getHeaderFieldInt(String name,
  6791.                              int Default)
  6792. //    Gets a header field by name. Returns null if not known.
  6793. // The field is parsed as an integer.  This form of
  6794. // getHeaderField exists because some connection types
  6795. // (e.g. http-ng) have pre-parsed headers and  this allows them
  6796. // to override this method and short-circuit the parsing.
  6797. //   
  6798. //      Parameters:
  6799. //      name - the name of the header field
  6800. //      Default - the value to return if the field is missing
  6801. //     or malformed.
  6802. //   
  6803. // 
  6804. DEF_ENDLIST
  6805. DEF_METHOD
  6806. public long getHeaderFieldDate(String name,
  6807.                                long Default)
  6808. //    Gets a header field by name. Returns null if not known.
  6809. // The field will be parsed as a date.  This form of
  6810. // getHeaderField exists because some connection types
  6811. // (eg. http-ng) have pre-parsed headers. This allows them
  6812. // to override this method and short-circuit the parsing.
  6813. //   
  6814. //      Parameters:
  6815. //      name - the name of the header field
  6816. //      Default - the value to return if the field is missing
  6817. //     or malformed.
  6818. //   
  6819. // 
  6820. DEF_ENDLIST
  6821. DEF_METHOD
  6822. public String getHeaderFieldKey(int n)
  6823. //    Returns the key for the nth header field. Returns null if
  6824. // there are fewer than n fields.  This can be used to iterate
  6825. // through all the headers in the message.
  6826. // 
  6827. DEF_ENDLIST
  6828. DEF_METHOD
  6829. public String getHeaderField(int n)
  6830. //    Returns the value for the nth header field. Returns null if
  6831. // there are fewer than n fields.  This can be used in conjunction
  6832. // with getHeaderFieldKey to iterate through all the headers in the message.
  6833. // 
  6834. DEF_ENDLIST
  6835. DEF_METHOD
  6836. public Object getContent() throws IOException
  6837. //    Gets the object referred to by this URL.  For example, if it
  6838. // refers to an image the object will be some subclass of
  6839. // Image.  The instanceof operator should be used to determine
  6840. // what kind of object was returned.
  6841. //   
  6842. //      Returns:
  6843. //      the object that was fetched.
  6844. //      Throws: UnknownServiceException
  6845. //      If the protocol does not
  6846. // support content.
  6847. //   
  6848. // 
  6849. DEF_ENDLIST
  6850. DEF_METHOD
  6851. public InputStream getInputStream() throws IOException
  6852. //    Calls this routine to get an InputStream that reads from the object.
  6853. // Protocol implementors should use this if appropriate.
  6854. //   
  6855. //      Throws: UnknownServiceException
  6856. //      If the protocol does not
  6857. // support input.
  6858. //   
  6859. // 
  6860. DEF_ENDLIST
  6861. DEF_METHOD
  6862. public OutputStream getOutputStream() throws IOException
  6863. //    Calls this routine to get an OutputStream that writes to the object.
  6864. // Protocol implementors should use this if appropriate.
  6865. //   
  6866. //      Throws: UnknownServiceException
  6867. //      If the protocol does not
  6868. // support output.
  6869. //   
  6870. // 
  6871. DEF_ENDLIST
  6872. DEF_METHOD
  6873. public String toString()
  6874. //    Returns the String representation of the URL connection.
  6875. //   
  6876. //      Overrides:
  6877. //      toString in class Object
  6878. //   
  6879. // 
  6880. DEF_ENDLIST
  6881. DEF_METHOD
  6882. public void setDoInput(boolean doinput)
  6883. //    A URL connection can be used for input and/or output.  Set the DoInput
  6884. //         flag to true if you intend to use the URL connection for input,
  6885. //         false if not.  The default is true unless DoOutput is explicitly
  6886. //         set to true, in which case DoInput defaults to false.
  6887. // 
  6888. DEF_ENDLIST
  6889. DEF_METHOD
  6890. public boolean getDoInput()
  6891. //    A URL connection can be used for input and/or output.  Set the DoOutput
  6892. //         flag to true if you intend to use the URL connection for output,
  6893. //         false if not.  The default is false.
  6894. // 
  6895. DEF_ENDLIST
  6896. DEF_METHOD
  6897. public boolean getDoOutput()
  6898. //    Some URL connections occasionally need to to interactions with the
  6899. //         user.  For example, the http protocol may need to pop up an authentication
  6900. //         dialog.  But this is only appropriate if the application is running
  6901. //         in a context where there is a user.  The allowUserInteraction
  6902. //         flag allows these interactions when true.  When it is false, they are
  6903. //         not allowed and an exception is tossed. The default value can be
  6904. //         set/gotten using setDefaultAllowUserInteraction, which defaults to false.
  6905. // 
  6906. DEF_ENDLIST
  6907. DEF_METHOD
  6908. public boolean getAllowUserInteraction()
  6909. //    Sets/gets the default value of the allowUserInteraction flag.  This default
  6910. //         is "sticky", being a part of the static state of all URLConnections.  This
  6911. //         flag applies to the next, and all following URLConnections that are created.
  6912. // 
  6913. DEF_ENDLIST
  6914. DEF_METHOD
  6915. public static boolean getDefaultAllowUserInteraction()
  6916. //    Some protocols do caching of documents.  Occasionally, it is important to be
  6917. //         able to "tunnel through" and ignore the caches (e.g. the "reload" button in
  6918. //         a browser).  If the UseCaches flag on a connection is true, the connection is
  6919. //         allowed to use whatever caches it can.  If false, caches are to be ignored.
  6920. //         The default value comes from DefaultUseCaches, which defaults to true.
  6921. // 
  6922. DEF_ENDLIST
  6923. DEF_METHOD
  6924. public boolean getUseCaches()
  6925. //    Some protocols support skipping fetching unless the object is newer than some amount of time.
  6926. //     The ifModifiedSince field may be set/gotten to define this time.
  6927. // 
  6928. DEF_ENDLIST
  6929. DEF_METHOD
  6930. public long getIfModifiedSince()
  6931. //    Sets/gets the default value of the UseCaches flag.  This default
  6932. //         is "sticky", being a part of the static state of all URLConnections.  This
  6933. //         flag applies to the next, and all following, URLConnections that are created.
  6934. // 
  6935. DEF_ENDLIST
  6936. DEF_METHOD
  6937. public void setDefaultUseCaches(boolean defaultusecaches)
  6938. //    Sets/gets a general request property.
  6939. //   
  6940. //      Parameters:
  6941. //      key - The keyword by which the request is known (eg "accept")
  6942. //      value - The value associated with it.
  6943. //   
  6944. // 
  6945. DEF_ENDLIST
  6946. DEF_METHOD
  6947. public String getRequestProperty(String key)
  6948. //    Sets/gets the default value of a general request property. When a
  6949. // URLConnection is created, it is initialized with these properties.
  6950. //   
  6951. //      Parameters:
  6952. //      key - The keyword by which the request is known (eg "accept")
  6953. //      value - The value associated with it.
  6954. //   
  6955. // 
  6956. DEF_ENDLIST
  6957. DEF_METHOD
  6958. public static String getDefaultRequestProperty(String key)
  6959. //    Sets the ContentHandler factory.
  6960. //   
  6961. //      Parameters:
  6962. //      fac - the desired factory
  6963. //      Throws: Error
  6964. //      If the factory has already been defined.
  6965. //   
  6966. // 
  6967. DEF_ENDLIST
  6968. DEF_METHOD
  6969. protected static String guessContentTypeFromName(String fname)
  6970. //    A useful utility routine that tries to guess the content-type
  6971. // of an object based upon its extension.
  6972. // 
  6973. DEF_ENDLIST
  6974. DEF_METHOD
  6975. protected static String guessContentTypeFromStream(InputStream is) throws IOException
  6976. //    This method is used to check for files that have some type
  6977. // that can be determined by inspection.  The bytes at the beginning
  6978. // of the file are examined loosely.  In an ideal world, this routine
  6979. // would not be needed, but in a world where http servers lie
  6980. // about content-types and extensions are often non-standard,
  6981. // direct inspection of the bytes can make the system more robust.
  6982. // The stream must support marks (e.g. have a BufferedInputStream
  6983. // somewhere).
  6984. // 
  6985. DEF_ENDLIST
  6986. DEF_ENDCOMPONENT
  6987. DEF_COMPONENTNAME
  6988. URLEncoder
  6989. DEF_SUPERCLASS
  6990. Object
  6991. DEF_SUPERCOMPONENT
  6992.  
  6993. DEF_PACKAGE
  6994. java
  6995. net
  6996. DEF_ENDLIST
  6997. DEF_SUBCOMPONENTLIST
  6998. DEF_ENDLIST
  6999. DEF_SUBCOMPONENTCLASSLIST
  7000. DEF_ENDLIST
  7001. DEF_CATEGORY
  7002.  
  7003. DEF_BITMAP
  7004.  
  7005. DEF_THUMBNAIL_UP
  7006.  
  7007. DEF_THUMBNAIL_DOWN
  7008.  
  7009. DEF_BASE
  7010. DEF_IMPORTS
  7011. java.net.URLEncoder
  7012. DEF_ENDLIST
  7013. DEF_REQUIRES
  7014. DEF_ENDLIST
  7015. DEF_IMPLEMENTS
  7016. DEF_ENDLIST
  7017. DEF_DECLARATION
  7018. // Turns Strings of text into x-www-form-urlencoded format.
  7019. DEF_ENDLIST
  7020. DEF_METHOD
  7021. public static String encode(String s)
  7022. //    Translates String into x-www-form-urlencoded format.
  7023. //   
  7024. //      Parameters:
  7025. //      s - String to be translated
  7026. //      Returns:
  7027. //      the translated String.
  7028. //   
  7029. // 
  7030. DEF_ENDLIST
  7031. DEF_ENDCOMPONENT
  7032. DEF_COMPONENTNAME
  7033. URLStreamHandler
  7034. DEF_SUPERCLASS
  7035. Object
  7036. DEF_SUPERCOMPONENT
  7037.  
  7038. DEF_PACKAGE
  7039. java
  7040. net
  7041. DEF_ENDLIST
  7042. DEF_SUBCOMPONENTLIST
  7043. DEF_ENDLIST
  7044. DEF_SUBCOMPONENTCLASSLIST
  7045. DEF_ENDLIST
  7046. DEF_CATEGORY
  7047.  
  7048. DEF_BITMAP
  7049.  
  7050. DEF_THUMBNAIL_UP
  7051.  
  7052. DEF_THUMBNAIL_DOWN
  7053.  
  7054. DEF_BASE
  7055. DEF_IMPORTS
  7056. java.net.URLStreamHandler
  7057. DEF_ENDLIST
  7058. DEF_REQUIRES
  7059. DEF_ENDLIST
  7060. DEF_IMPLEMENTS
  7061. DEF_ENDLIST
  7062. DEF_DECLARATION
  7063. // Abstract class for URL stream openers.
  7064. // Subclasses of this class know how to create streams for particular
  7065. // protocol types.
  7066. DEF_ENDLIST
  7067. DEF_METHOD
  7068. public URLStreamHandler()
  7069. //    Opens an input stream to the object referenced by the URL.  This method should be
  7070. // overridden by a subclass.
  7071. //   
  7072. //      Parameters:
  7073. //      u - the URL that this connects to
  7074. //   
  7075. // 
  7076. DEF_ENDLIST
  7077. DEF_METHOD
  7078. protected void parseURL(URL u,
  7079.                         String spec,
  7080.                         int start,
  7081.                         int limit)
  7082. //    This method is called to parse the string spec into URL u.  If
  7083. // there is any inherited context then it has already been copied
  7084. // into u.  The parameters start and
  7085. // limit refer to the range of characters in spec
  7086. // that should be parsed.  The default method uses parsing rules
  7087. // that match the http spec, which most URL protocol families
  7088. // follow.  If you are writing a protocol handler that has a
  7089. // different syntax, override this routine.
  7090. //   
  7091. //      Parameters:
  7092. //      u - the URL to receive the result of parsing the spec
  7093. //      spec - the URL string to parse
  7094. //      start - the character position to start parsing at.  This is
  7095. //         just past the ':' (if there is one).
  7096. //      limit - the character position to stop parsing at.  This is
  7097. //         the end of the string or the position of the "#"
  7098. //         character if present (the "#" reference syntax is
  7099. //         protocol independent).
  7100. //   
  7101. // 
  7102. DEF_ENDLIST
  7103. DEF_METHOD
  7104. protected String toExternalForm(URL u)
  7105. //    Reverses the parsing of the URL.  This should probably be overridden if
  7106. // you override parseURL().
  7107. //   
  7108. //      Parameters:
  7109. //      u - the URL
  7110. //      Returns:
  7111. //      the textual representation of the fully qualified URL (i.e.
  7112. //         after the context and canonicalization have been applied).
  7113. //   
  7114. // 
  7115. DEF_ENDLIST
  7116. DEF_METHOD
  7117. protected void setURL(URL u,
  7118.                       String protocol,
  7119.                       String host,
  7120.                       int port,
  7121.                       String file,
  7122.                       String ref)
  7123. //    Calls the (protected) set method out of the URL given.  Only
  7124. // classes derived from URLStreamHandler are supposed to be able
  7125. // to call the set() method on a URL.
  7126. //   
  7127. //      See Also:
  7128. //      set
  7129. //   
  7130. // 
  7131. DEF_ENDLIST
  7132. DEF_ENDCOMPONENT
  7133. DEF_COMPONENTNAME
  7134. Stack
  7135. DEF_SUPERCLASS
  7136. Vector
  7137. DEF_SUPERCOMPONENT
  7138.  
  7139. DEF_PACKAGE
  7140. java
  7141. util
  7142. DEF_ENDLIST
  7143. DEF_SUBCOMPONENTLIST
  7144. DEF_ENDLIST
  7145. DEF_SUBCOMPONENTCLASSLIST
  7146. DEF_ENDLIST
  7147. DEF_CATEGORY
  7148.  
  7149. DEF_BITMAP
  7150.  
  7151. DEF_THUMBNAIL_UP
  7152.  
  7153. DEF_THUMBNAIL_DOWN
  7154.  
  7155. DEF_BASE
  7156. DEF_IMPORTS
  7157. java.util.Stack
  7158. DEF_ENDLIST
  7159. DEF_REQUIRES
  7160. DEF_ENDLIST
  7161. DEF_IMPLEMENTS
  7162. DEF_ENDLIST
  7163. DEF_DECLARATION
  7164. // A Last-In-First-Out(LIFO) stack of objects.
  7165. DEF_ENDLIST
  7166. DEF_METHOD
  7167. public Stack()
  7168. //    Pushes an item onto the stack.
  7169. //   
  7170. //      Parameters:
  7171. //      item - the item to be pushed on.
  7172. //   
  7173. // 
  7174. DEF_ENDLIST
  7175. DEF_METHOD
  7176. public Object pop()
  7177. //    Pops an item off the stack.
  7178. //   
  7179. //      Throws: EmptyStackException
  7180. //      If the stack is empty.
  7181. //   
  7182. // 
  7183. DEF_ENDLIST
  7184. DEF_METHOD
  7185. public Object peek()
  7186. //    Peeks at the top of the stack.
  7187. //   
  7188. //      Throws: EmptyStackException
  7189. //      If the stack is empty.
  7190. //   
  7191. // 
  7192. DEF_ENDLIST
  7193. DEF_METHOD
  7194. public boolean empty()
  7195. //    Returns true if the stack is empty.
  7196. // 
  7197. DEF_ENDLIST
  7198. DEF_METHOD
  7199. public int search(Object o)
  7200. //    Sees if an object is on the stack.
  7201. //   
  7202. //      Parameters:
  7203. //      o - the desired object
  7204. //      Returns:
  7205. //      the distance from the top, or -1 if it is not found.
  7206. //   
  7207. // 
  7208. DEF_ENDLIST
  7209. DEF_ENDCOMPONENT
  7210. DEF_COMPONENTNAME
  7211. StackFrame
  7212. DEF_SUPERCLASS
  7213. Object
  7214. DEF_SUPERCOMPONENT
  7215.  
  7216. DEF_PACKAGE
  7217. java
  7218. util
  7219. DEF_ENDLIST
  7220. DEF_SUBCOMPONENTLIST
  7221. DEF_ENDLIST
  7222. DEF_SUBCOMPONENTCLASSLIST
  7223. DEF_ENDLIST
  7224. DEF_CATEGORY
  7225.  
  7226. DEF_BITMAP
  7227.  
  7228. DEF_THUMBNAIL_UP
  7229.  
  7230. DEF_THUMBNAIL_DOWN
  7231.  
  7232. DEF_BASE
  7233. DEF_IMPORTS
  7234. java.util.StackFrame
  7235. DEF_ENDLIST
  7236. DEF_REQUIRES
  7237. DEF_ENDLIST
  7238. DEF_IMPLEMENTS
  7239. DEF_ENDLIST
  7240. DEF_DECLARATION
  7241. // The StackFrame class represents a stack frame of a suspended thread.
  7242. // 
  7243. //      See Also:
  7244. //      RemoteDebugger, RemoteStackFrame, RemoteThread
  7245. // 
  7246. DEF_ENDLIST
  7247. DEF_METHOD
  7248. public StackFrame()
  7249. //    Returns a String that represents the value of this Object.
  7250. //   
  7251. //      Overrides:
  7252. //      toString in class Object
  7253. //   
  7254. // 
  7255. DEF_ENDLIST
  7256. DEF_ENDCOMPONENT
  7257. DEF_COMPONENTNAME
  7258. StringTokenizer
  7259. DEF_SUPERCLASS
  7260. Object
  7261. DEF_SUPERCOMPONENT
  7262.  
  7263. DEF_PACKAGE
  7264. java
  7265. util
  7266. DEF_ENDLIST
  7267. DEF_SUBCOMPONENTLIST
  7268. DEF_ENDLIST
  7269. DEF_SUBCOMPONENTCLASSLIST
  7270. DEF_ENDLIST
  7271. DEF_CATEGORY
  7272.  
  7273. DEF_BITMAP
  7274.  
  7275. DEF_THUMBNAIL_UP
  7276.  
  7277. DEF_THUMBNAIL_DOWN
  7278.  
  7279. DEF_BASE
  7280. DEF_IMPORTS
  7281. java.util.StringTokenizer
  7282. DEF_ENDLIST
  7283. DEF_REQUIRES
  7284. DEF_ENDLIST
  7285. DEF_IMPLEMENTS
  7286. Enumeration
  7287. DEF_ENDLIST
  7288. DEF_DECLARATION
  7289. // StringTokenizer is a class that controls simple linear tokenization
  7290. // of a String. The set of delimiters, which defaults to common 
  7291. // whitespace characters, may be specified at creation time or on a 
  7292. // per-token basis.
  7293. // Example usage:
  7294. // 
  7295. //     String s = "this is a test";
  7296. //     StringTokenizer st = new StringTokenizer(s);
  7297. //     while (st.hasMoreTokens()) {
  7298. //         println(st.nextToken());
  7299. //     }
  7300. // 
  7301. // Prints the following on the console:
  7302. // 
  7303. //     this
  7304. //     is
  7305. //     a
  7306. //     test
  7307. // 
  7308. DEF_ENDLIST
  7309. DEF_METHOD
  7310. public StringTokenizer(String str,
  7311.                        String delim,
  7312.                        boolean returnTokens)
  7313. //    Constructs a StringTokenizer on the specified String, using the
  7314. // specified delimiter set.
  7315. //   
  7316. //      Parameters:
  7317. //      str - the input String
  7318. //      delim - the delimiter String
  7319. //      returnTokens - returns delimiters as tokens or skip them
  7320. //   
  7321. // 
  7322. DEF_ENDLIST
  7323. DEF_METHOD
  7324. public StringTokenizer(String str,
  7325.                        String delim)
  7326. //    Constructs a StringTokenizer on the specified String, using the
  7327. // specified delimiter set.
  7328. //   
  7329. //      Parameters:
  7330. //      str - the input String
  7331. //      delim - the delimiter String
  7332. //   
  7333. // 
  7334. DEF_ENDLIST
  7335. DEF_METHOD
  7336. public StringTokenizer(String str)
  7337. //    Constructs a StringTokenizer on the specified String, using the
  7338. // default delimiter set (which is " \t\n\r").
  7339. //   
  7340. //      Parameters:
  7341. //      str - the String
  7342. //   
  7343. // 
  7344. DEF_ENDLIST
  7345. DEF_METHOD
  7346. public boolean hasMoreTokens()
  7347. //    Returns true if more tokens exist.
  7348. // 
  7349. DEF_ENDLIST
  7350. DEF_METHOD
  7351. public String nextToken()
  7352. //    Returns the next token of the String.
  7353. //   
  7354. //      Throws: NoSuchElementException
  7355. //      If there are no more 
  7356. // tokens in the String.
  7357. //   
  7358. // 
  7359. DEF_ENDLIST
  7360. DEF_METHOD
  7361. public String nextToken(String delim)
  7362. //    Returns the next token, after switching to the new delimiter set.
  7363. // The new delimiter set remains the default after this call.
  7364. //   
  7365. //      Parameters:
  7366. //      delim - the new delimiters
  7367. //   
  7368. // 
  7369. DEF_ENDLIST
  7370. DEF_METHOD
  7371. public boolean hasMoreElements()
  7372. //    Returns true if the Enumeration has more elements.
  7373. // 
  7374. DEF_ENDLIST
  7375. DEF_METHOD
  7376. public Object nextElement()
  7377. //    Returns the next element in the Enumeration.
  7378. //   
  7379. //      Throws: NoSuchElementException
  7380. //      If there are no more elements 
  7381. // in the enumeration.
  7382. //   
  7383. // 
  7384. DEF_ENDLIST
  7385. DEF_METHOD
  7386. public int countTokens()
  7387. //    Returns the next number of tokens in the String using
  7388. // the current deliminter set.  This is the number of times
  7389. // nextToken() can return before it will generate an exception.
  7390. // Use of this routine to count the number of tokens is faster
  7391. // than repeatedly calling nextToken() because the substrings
  7392. // are not constructed and returned for each token.
  7393. // 
  7394. DEF_ENDLIST
  7395. DEF_ENDCOMPONENT
  7396. DEF_COMPONENTNAME
  7397. Vector
  7398. DEF_SUPERCLASS
  7399. Object
  7400. DEF_SUPERCOMPONENT
  7401.  
  7402. DEF_PACKAGE
  7403. java
  7404. util
  7405. DEF_ENDLIST
  7406. DEF_SUBCOMPONENTLIST
  7407. DEF_ENDLIST
  7408. DEF_SUBCOMPONENTCLASSLIST
  7409. DEF_ENDLIST
  7410. DEF_CATEGORY
  7411.  
  7412. DEF_BITMAP
  7413.  
  7414. DEF_THUMBNAIL_UP
  7415.  
  7416. DEF_THUMBNAIL_DOWN
  7417.  
  7418. DEF_BASE
  7419. DEF_IMPORTS
  7420. java.util.Vector
  7421. DEF_ENDLIST
  7422. DEF_REQUIRES
  7423. DEF_ENDLIST
  7424. DEF_IMPLEMENTS
  7425. Cloneable
  7426. DEF_ENDLIST
  7427. DEF_DECLARATION
  7428. // Vector class (a growable array).
  7429. // Each vector tries to optimize storage management by maintaining
  7430. // a capacity and a capacityIncrement. The capacity is always at
  7431. // least as large as the vector size; it is usually larger because
  7432. // as elements are added to the vector, the vector's
  7433. // storage increases in chunks the size of capacityIncrement. Setting
  7434. // the capacity to what you want before inserting a large number of
  7435. // objects will reduce the amount of incremental reallocation.
  7436. // You can safely ignore the capacity and the vector will still work
  7437. // correctly.
  7438. DEF_ENDLIST
  7439. DEF_METHOD
  7440. public Vector(int initialCapacity,
  7441.               int capacityIncrement)
  7442. //    Constructs an empty vector with the specified storage
  7443. // capacity and the specified capacityIncrement.
  7444. //   
  7445. //      Parameters:
  7446. //      initialCapacity - the initial storage capacity of the vector
  7447. //      capacityIncrement - how much to increase the element's 
  7448. // size by.
  7449. //   
  7450. // 
  7451. DEF_ENDLIST
  7452. DEF_METHOD
  7453. public Vector(int initialCapacity)
  7454. //    Constructs an empty vector with the specified storage capacity.
  7455. //   
  7456. //      Parameters:
  7457. //      initialCapacity - the initial storage capacity of the vector
  7458. //   
  7459. // 
  7460. DEF_ENDLIST
  7461. DEF_METHOD
  7462. public Vector()
  7463. //    Constructs an empty vector.
  7464. // 
  7465. DEF_ENDLIST
  7466. DEF_METHOD
  7467. public final synchronized void copyInto(Object anArray[])
  7468. //    Copies the elements of this vector into the specified array.
  7469. //   
  7470. //      Parameters:
  7471. //      anArray - the array where elements get copied into
  7472. //   
  7473. // 
  7474. DEF_ENDLIST
  7475. DEF_METHOD
  7476. public final synchronized void trimToSize()
  7477. //    Trims the vector's capacity down to size. Use this operation to
  7478. // minimize the storage of a vector. Subsequent insertions will
  7479. // cause reallocation.
  7480. // 
  7481. DEF_ENDLIST
  7482. DEF_METHOD
  7483. public final synchronized void ensureCapacity(int minCapacity)
  7484. //    Ensures that the vector has at least the specified capacity.
  7485. //   
  7486. //      Parameters:
  7487. //      minCapacity - the desired minimum capacity
  7488. //   
  7489. // 
  7490. DEF_ENDLIST
  7491. DEF_METHOD
  7492. public final synchronized void setSize(int newSize)
  7493. //    Sets the size of the vector. If the size shrinks, the extra elements
  7494. // (at the end of the vector) are lost; if the size increases, the
  7495. // new elements are set to null.
  7496. //   
  7497. //      Parameters:
  7498. //      newSize - the new size of the vector
  7499. //   
  7500. // 
  7501. DEF_ENDLIST
  7502. DEF_METHOD
  7503. public final int capacity()
  7504. //    Returns the current capacity of the vector.
  7505. // 
  7506. DEF_ENDLIST
  7507. DEF_METHOD
  7508. public final int size()
  7509. //    Returns the number of elements in the vector.
  7510. // Note that this is not the same as the vector's capacity.
  7511. // 
  7512. DEF_ENDLIST
  7513. DEF_METHOD
  7514. public final boolean isEmpty()
  7515. //    Returns true if the collection contains no values.
  7516. // 
  7517. DEF_ENDLIST
  7518. DEF_METHOD
  7519. public final synchronized Enumeration elements()
  7520. //    Returns an enumeration of the elements. Use the Enumeration methods on
  7521. // the returned object to fetch the elements sequentially.
  7522. // 
  7523. DEF_ENDLIST
  7524. DEF_METHOD
  7525. public final boolean contains(Object elem)
  7526. //    Returns true if the specified object is a value of the 
  7527. // collection.
  7528. //   
  7529. //      Parameters:
  7530. //      elem - the desired element
  7531. //   
  7532. // 
  7533. DEF_ENDLIST
  7534. DEF_METHOD
  7535. public final int indexOf(Object elem)
  7536. //    Searches for the specified object, starting from the first position
  7537. // and returns an index to it.
  7538. //   
  7539. //      Parameters:
  7540. //      elem - the desired element
  7541. //      Returns:
  7542. //      the index of the element, or -1 if it was not found.
  7543. //   
  7544. // 
  7545. DEF_ENDLIST
  7546. DEF_METHOD
  7547. public final synchronized int indexOf(Object elem,
  7548.                                       int index)
  7549. //    Searches for the specified object, starting at the specified 
  7550. // position and returns an index to it.
  7551. //   
  7552. //      Parameters:
  7553. //      elem - the desired element
  7554. //      index - the index where to start searching
  7555. //      Returns:
  7556. //      the index of the element, or -1 if it was not found.
  7557. //   
  7558. // 
  7559. DEF_ENDLIST
  7560. DEF_METHOD
  7561. public final int lastIndexOf(Object elem)
  7562. //    Searches backwards for the specified object, starting from the last
  7563. // position and returns an index to it.
  7564. //   
  7565. //      Parameters:
  7566. //      elem - the desired element
  7567. //      Returns:
  7568. //      the index of the element, or -1 if it was not found.
  7569. //   
  7570. // 
  7571. DEF_ENDLIST
  7572. DEF_METHOD
  7573. public final synchronized int lastIndexOf(Object elem,
  7574.                                           int index)
  7575. //    Searches backwards for the specified object, starting from the specified
  7576. // position and returns an index to it.
  7577. //   
  7578. //      Parameters:
  7579. //      elem - the desired element
  7580. //      index - the index where to start searching
  7581. //      Returns:
  7582. //      the index of the element, or -1 if it was not found.
  7583. //   
  7584. // 
  7585. DEF_ENDLIST
  7586. DEF_METHOD
  7587. public final synchronized Object elementAt(int index)
  7588. //    Returns the element at the specified index.
  7589. //   
  7590. //      Parameters:
  7591. //      index - the index of the desired element
  7592. //      Throws: ArrayIndexOutOfBoundsException
  7593. //      If an invalid 
  7594. // index was given.
  7595. //   
  7596. // 
  7597. DEF_ENDLIST
  7598. DEF_METHOD
  7599. public final synchronized Object firstElement()
  7600. //    Returns the first element of the sequence.
  7601. //   
  7602. //      Throws: NoSuchElementException
  7603. //      If the sequence is empty.
  7604. //   
  7605. // 
  7606. DEF_ENDLIST
  7607. DEF_METHOD
  7608. public final synchronized Object lastElement()
  7609. //    Returns the last element of the sequence.
  7610. //   
  7611. //      Throws: NoSuchElementException
  7612. //      If the sequence is empty.
  7613. //   
  7614. // 
  7615. DEF_ENDLIST
  7616. DEF_METHOD
  7617. public final synchronized void setElementAt(Object obj,
  7618.                                             int index)
  7619. //    Sets the element at the specified index to be the specified object.
  7620. // The previous element at that position is discarded.
  7621. //   
  7622. //      Parameters:
  7623. //      obj - what the element is to be set to
  7624. //      index - the specified index
  7625. //      Throws: ArrayIndexOutOfBoundsException
  7626. //      If the index was 
  7627. // invalid.
  7628. //   
  7629. // 
  7630. DEF_ENDLIST
  7631. DEF_METHOD
  7632. public final synchronized void removeElementAt(int index)
  7633. //    Deletes the element at the specified index. Elements with an index
  7634. // greater than the current index are moved down.
  7635. //   
  7636. //      Parameters:
  7637. //      index - the element to remove
  7638. //      Throws: ArrayIndexOutOfBoundsException
  7639. //      If the index was invalid.
  7640. //   
  7641. // 
  7642. DEF_ENDLIST
  7643. DEF_METHOD
  7644. public final synchronized void insertElementAt(Object obj,
  7645.                                                int index)
  7646. //    Inserts the specified object as an element at the specified index.
  7647. // Elements with an index greater or equal to the current index 
  7648. // are shifted up.
  7649. //   
  7650. //      Parameters:
  7651. //      obj - the element to insert
  7652. //      index - where to insert the new element
  7653. //      Throws: ArrayIndexOutOfBoundsException
  7654. //      If the index was invalid.
  7655. //   
  7656. // 
  7657. DEF_ENDLIST
  7658. DEF_METHOD
  7659. public final synchronized void addElement(Object obj)
  7660. //    Adds the specified object as the last element of the vector.
  7661. //   
  7662. //      Parameters:
  7663. //      obj - the element to be added
  7664. //   
  7665. // 
  7666. DEF_ENDLIST
  7667. DEF_METHOD
  7668. public final synchronized boolean removeElement(Object obj)
  7669. //    Removes the element from the vector. If the object occurs more
  7670. // than once, only the first is removed. If the object is not an
  7671. // element, returns false.
  7672. //   
  7673. //      Parameters:
  7674. //      obj - the element to be removed
  7675. //      Returns:
  7676. //      true if the element was actually removed; false otherwise.
  7677. //   
  7678. // 
  7679. DEF_ENDLIST
  7680. DEF_METHOD
  7681. public final synchronized void removeAllElements()
  7682. //    Removes all elements of the vector. The vector becomes empty.
  7683. // 
  7684. DEF_ENDLIST
  7685. DEF_METHOD
  7686. public synchronized Object clone()
  7687. //    Clones this vector. The elements are not cloned.
  7688. //   
  7689. //      Overrides:
  7690. //      clone in class Object
  7691. //   
  7692. // 
  7693. DEF_ENDLIST
  7694. DEF_METHOD
  7695. public final synchronized String toString()
  7696. //    Converts the vector to a string. Useful for debugging.
  7697. //   
  7698. //      Overrides:
  7699. //      toString in class Object
  7700. //   
  7701. // 
  7702. DEF_ENDLIST
  7703. DEF_ENDCOMPONENT
  7704.