Fixed typos in comments

This commit is contained in:
U-BASIS\dsmyda 2018-09-24 12:23:22 -04:00
parent f5fbc9d979
commit 00b16e641c

View File

@ -108,8 +108,7 @@ class SqliteTextExtractor extends ContentTextExtractor {
}
/**
* Wraps each table in a reader as the tables are streamed one at a time
* from the database.
* Lazily loads tables from the database during reading to conserve memory.
*/
private class SQLiteTableReader extends Reader {
@ -162,8 +161,8 @@ class SqliteTextExtractor extends ContentTextExtractor {
}
/**
* Reads from the database table and loads in the contents to a table
* builder, so that its properly formatted during indexing.
* Reads from a database table and loads the contents into a table
* builder so that its properly formatted during indexing.
*
* @param tableName Database table to be read
*/
@ -208,8 +207,8 @@ class SqliteTextExtractor extends ContentTextExtractor {
}
/**
* Determines if the object result from the result set is worth addign to
* the row or not. Ignores nulls and blobs for the time being.
* Determines if the result from the result set is worth adding to
* the row. Ignores nulls and blobs for the time being.
*
* @param result Object result retrieved from resultSet
* @param type Type of objet retrieved from resultSet
@ -221,9 +220,8 @@ class SqliteTextExtractor extends ContentTextExtractor {
}
/**
* Loads a database file into the character buffer until there are not
* more contents to read. The underlying implementation here only loads
* one table at a time, to conserve memory.
* Loads a database file into the character buffer. The underlying implementation here only loads
* one table at a time to conserve memory.
*
* @param cbuf Buffer to copy database content characters into
* @param off offset to begin loading in buffer
@ -259,10 +257,10 @@ class SqliteTextExtractor extends ContentTextExtractor {
/**
* Grab the next table name from the collection of all table names, once
* we no longer have a table to process, return null which will be
* understoon to mean the end of parsing.
* understood to mean the end of parsing.
*
* @return String of current table contents or null if not more tables
* to read
* @return Current table contents or null meaning there are not more tables
* to process
*/
private String getNextTable() {
if (tableIterator.hasNext()) {
@ -305,7 +303,7 @@ class SqliteTextExtractor extends ContentTextExtractor {
/**
* Add the section to the top left corner of the table. This is where
* the name of the table should go.
* the name of the table should go
*
* @param tableName Table name
*/
@ -314,8 +312,7 @@ class SqliteTextExtractor extends ContentTextExtractor {
}
/**
* Add header row to underlying list collection, which will be formatted
* when toString is called.
* Adds a formatted header row to the underlying StringBuilder
*
* @param vals
*/
@ -324,8 +321,7 @@ class SqliteTextExtractor extends ContentTextExtractor {
}
/**
* Add a row to the underlying list collection, which will be formatted
* when toString is called.
* Adds a formatted row to the underlying StringBuilder
*
* @param vals
*/
@ -346,7 +342,7 @@ class SqliteTextExtractor extends ContentTextExtractor {
* Returns a string version of the table, with all of the escape
* sequences necessary to print nicely in the console output.
*
* @return
* @return Formated table contents
*/
@Override
public String toString() {