Raging Goblin

20 March 2014

Search Java SE API

Filed under: Java — Raging Goblin @ 20:27
Tags: , ,

For many years Sun and Oracle have failed to add a searchfield to the Javadocs found on http://docs.oracle.com/javase/7/docs/api/. Most of the time I use the Zeal API browser to search the Javadocs. But sometimes it is easier to let Google do the searching for you. To add a ‘site-specific’ search engine to Firefox add the following xml to a file in your profile directory inside the directory searchengines or searchplugins:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>Java SE7 API</ShortName>
  <Description>Search Java Standard Edtition API with Google</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image width="16" height="16" type="image/x-icon">data:image/x-icon;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAHBPoACxfnAEtN7wCHhv4AAAL9AENF8QD29f8AwML/AAQA8wCHhf8AAAH+ABkT6ADv7v8AJiDpAAYE+ADx7v8A0tb/AAEJ5gDv8f8AAAT3APnu/wAAAvsAT1PnAAYD+QAIBPcADgf4AAoE9wACBP0AAQjnAPb0/wAAA/gAAgX0AAoM5gAAAvoABQP/AAAA/gACAvoAAgD+ANHV/wADAP4A6PD/AIiH/wDs8P8AAAP3ACUf6AADAfsARkj0AGBk8gCcnv8AAAH6AAcF+QAAAPwABwbwAOfv/wBOUuYACQbwAFdU8ACGhv8AAAP8ABER5wCIhv8AAAL+AHx59wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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SOAgiOy8QDyooNTUoKg8QLzsiKzMZLDY5KQkDPDk2LBkzKwQKChUfNDc3Nzc0HxUKCgQjFRMECgoKCgoKCgoEExUjLSclJSETEx4THhMkJSclLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= </Image>
  <Url type="text/html" method="GET" template="http://www.google.com/search">
    <Param name="q" value="{searchTerms}"/>
    <Param name="sitesearch" value="http://docs.oracle.com/javase/7/docs/api/"/>
  </Url>
  <moz:SearchForm>http://www.world-connect-commodities.ro:8775/Search/default.aspx</moz:SearchForm>
</OpenSearchDescription>

For your convenience, you can download the file from here as well. After restarting Firefox you get a nice Javadoc search engine:
Site specific search

Advertisements

Create a free website or blog at WordPress.com.