Author: tpalsulich
Date: Mon Dec 29 08:23:07 2014
New Revision: 1648293
URL: http://svn.apache.org/r1648293
Log:
TIKA-1302. Update the 1.7 examples page.
Modified:
tika/site/src/site/apt/1.7/examples.apt
Modified: tika/site/src/site/apt/1.7/examples.apt
URL:
http://svn.apache.org/viewvc/tika/site/src/site/apt/1.7/examples.apt?rev=1648293&r1=1648292&r2=1648293&view=diff
==============================================================================
--- tika/site/src/site/apt/1.7/examples.apt (original)
+++ tika/site/src/site/apt/1.7/examples.apt Mon Dec 29 08:23:07 2014
@@ -29,9 +29,8 @@ Apache Tika API Usage Examples
* {Parsing}
- Tika provides a number of different ways to trigger the parsing
- of a file. These provide different levels of control and flexibility,
- with varying levels of complexity to trigger.
+ Tika provides a number of different ways to parse a file. These provide
+ different levels of control, flexibility, and complexity.
** {Parsing using the Tika Facade}
@@ -47,13 +46,13 @@ Apache Tika API Usage Examples
{{{./apidocs/org/apache/tika/parser/Parser.html}Tika Parsers}}
directly. Most likely, you'll want to start out using the
{{{./apidocs/org/apache/tika/parser/AutoDetectParser.html}Auto-Detect
Parser}},
- which works out what kind of content you have, then finds an appropriate
- parser to call for you.
+ which automatically figures out what kind of content you have, then calls
the appropriate
+ parser for you.
%{include|source=src/examples-src/main/java/org/apache/tika/example/ParsingExample.java|snippet=aj:..parseExample()|show-gutter=false}
-* {Picking different output types}
+* {Picking different output formats}
With Tika, you can get the textual content of your files returned
in a number of different formats. These can be plain text, html, xhtml,
@@ -79,8 +78,9 @@ Apache Tika API Usage Examples
%{include|source=src/examples-src/main/java/org/apache/tika/example/ContentHandlerExample.java|snippet=aj:..parseToHTML()|show-gutter=false}
If you just want the body of the xhtml document, without the header, you
- can chaing in too the
+ can chain together a
{{{./apidocs/org/apache/tika/sax/BodyContentHandler.html}BodyContentHandler}}
+ and a
{{{./apidocs/org/apache/tika/sax/ToXMLContentHandler.html}ToXMLContentHandler}}
as shown:
%{include|source=src/examples-src/main/java/org/apache/tika/example/ContentHandlerExample.java|snippet=aj:..parseBodyToHTML()|show-gutter=false}
@@ -122,19 +122,19 @@ Apache Tika API Usage Examples
Tika provides a pluggable Translation system, which allow you to send the
results of
parsing off to an external system or program to have the text translated
into another
- language
+ language.
** {Translation using the Microsoft Translation API}
- In order to use the Microsoft Translation API, you need to sign up for an
account
- and get a key, then pass that to Tika when you have the translation done.
+ In order to use the Microsoft Translation API, you need to sign up for a
Microsoft account,
+ get an API key, then pass the key to Tika before translating.
%{include|source=src/examples-src/main/java/org/apache/tika/example/TranslatorExample.java|snippet=aj:..microsoftTranslateToFrench(..String)|show-gutter=false}
* {Language Identification}
- Tika provides support for identifying the language of text, through
-
{{{./apidocs/org/apache/tika/language/LanguageIdentifier.html}LanguageIdentifier}}
+ Tika provides support for identifying the language of text, through the
+
{{{./apidocs/org/apache/tika/language/LanguageIdentifier.html}LanguageIdentifier}}
class.
%{include|source=src/examples-src/main/java/org/apache/tika/example/LanguageIdentifierExample.java|snippet=aj:..identifyLanguage(..String)|show-gutter=false}