From 58df67dfc9d0c369b9d60dab040002fe0b912e05 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:22:05 +0530 Subject: [PATCH 01/18] Creating javadoc folder for javadoc --- javadoc | 1 + 1 file changed, 1 insertion(+) create mode 100644 javadoc diff --git a/javadoc b/javadoc new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/javadoc @@ -0,0 +1 @@ + From f7f54039ad948c7d8bc04c14b35bca7eb887ee49 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:35:18 +0530 Subject: [PATCH 02/18] Delete javadoc --- javadoc | 1 - 1 file changed, 1 deletion(-) delete mode 100644 javadoc diff --git a/javadoc b/javadoc deleted file mode 100644 index 8b13789..0000000 --- a/javadoc +++ /dev/null @@ -1 +0,0 @@ - From 85180662d67ad7cb7bea1893d3dbb7509334270d Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:36:40 +0530 Subject: [PATCH 03/18] Creating index file for javadoc --- javadoc/index.html | 74 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 javadoc/index.html diff --git a/javadoc/index.html b/javadoc/index.html new file mode 100644 index 0000000..a3f0489 --- /dev/null +++ b/javadoc/index.html @@ -0,0 +1,74 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + From 422c52faaf816240ece6e42ba7059d20267a5278 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:39:03 +0530 Subject: [PATCH 04/18] Adding files for javadoc --- javadoc/allclasses-frame.html | 257 ++ javadoc/allclasses-noframe.html | 257 ++ javadoc/constant-values.html | 722 ++++ javadoc/deprecated-list.html | 163 + javadoc/help-doc.html | 223 ++ javadoc/index-all.html | 6575 +++++++++++++++++++++++++++++++ javadoc/overview-frame.html | 46 + javadoc/overview-summary.html | 233 ++ javadoc/overview-tree.html | 656 +++ javadoc/package-list | 26 + javadoc/script.js | 30 + javadoc/serialized-form.html | 231 ++ javadoc/stylesheet.css | 574 +++ 13 files changed, 9993 insertions(+) create mode 100644 javadoc/allclasses-frame.html create mode 100644 javadoc/allclasses-noframe.html create mode 100644 javadoc/constant-values.html create mode 100644 javadoc/deprecated-list.html create mode 100644 javadoc/help-doc.html create mode 100644 javadoc/index-all.html create mode 100644 javadoc/overview-frame.html create mode 100644 javadoc/overview-summary.html create mode 100644 javadoc/overview-tree.html create mode 100644 javadoc/package-list create mode 100644 javadoc/script.js create mode 100644 javadoc/serialized-form.html create mode 100644 javadoc/stylesheet.css diff --git a/javadoc/allclasses-frame.html b/javadoc/allclasses-frame.html new file mode 100644 index 0000000..8a7731a --- /dev/null +++ b/javadoc/allclasses-frame.html @@ -0,0 +1,257 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/javadoc/allclasses-noframe.html b/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..080ce82 --- /dev/null +++ b/javadoc/allclasses-noframe.html @@ -0,0 +1,257 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/javadoc/constant-values.html b/javadoc/constant-values.html new file mode 100644 index 0000000..88ac934 --- /dev/null +++ b/javadoc/constant-values.html @@ -0,0 +1,722 @@ + + + + + +Constant Field Values + + + + + + + + + + + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

org.loklak.*

+
    +
  • + + + + + + + + + + + + + + +
    org.loklak.LoklakEmailHandler 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringEMAIL_PATTERN"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"
    +
  • +
+ + +
    +
  • + + + + + + + + + + + + + + +
    org.loklak.geo.GeoPoint 
    Modifier and TypeConstant FieldValue
    + +public static final doublemeter9.0E-6
    +
  • +
+ +
    +
  • + + + + + + + + + + + + + + + + + + + +
    org.loklak.http.AccessTracker 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringEVENT_PREFIX"event_"
    + +public static final intMAX_FINISHED1000
    +
  • +
  • + + + + + + + + + + + + + + +
    org.loklak.http.ClientConnection 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringCHARSET"UTF-8"
    +
  • +
+ + + +
+ + + + + + diff --git a/javadoc/deprecated-list.html b/javadoc/deprecated-list.html new file mode 100644 index 0000000..f8bc300 --- /dev/null +++ b/javadoc/deprecated-list.html @@ -0,0 +1,163 @@ + + + + + +Deprecated List + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+ +
+
+ + + + + + + +
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/help-doc.html b/javadoc/help-doc.html new file mode 100644 index 0000000..d521e7e --- /dev/null +++ b/javadoc/help-doc.html @@ -0,0 +1,223 @@ + + + + + +API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Overview

    +

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    +
  • +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/index-all.html b/javadoc/index-all.html new file mode 100644 index 0000000..85792c5 --- /dev/null +++ b/javadoc/index-all.html @@ -0,0 +1,6575 @@ + + + + + +Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  + + +

A

+
+
AbstractAPIHandler - Class in org.loklak.server
+
 
+
AbstractAPIHandler() - Constructor for class org.loklak.server.AbstractAPIHandler
+
 
+
AbstractAPIHandler(String[]) - Constructor for class org.loklak.server.AbstractAPIHandler
+
 
+
AbstractGeoPoint - Class in org.loklak.geo
+
 
+
AbstractGeoPoint() - Constructor for class org.loklak.geo.AbstractGeoPoint
+
 
+
AbstractIndexFactory<IndexObject extends ObjectEntry> - Class in org.loklak.data
+
+
test calls: + curl "http://localhost:9000/api/account.json?screen_name=test" + curl -g "http://localhost:9000/api/account.json?action=update&data={\"screen_name\":\"test\",\"apps\":{\"wall\":{\"type\":\"vertical\"}}}"
+
+
AbstractIndexFactory(ElasticsearchClient, String, int, int) - Constructor for class org.loklak.data.AbstractIndexFactory
+
 
+
AbstractObjectEntry - Class in org.loklak.objects
+
 
+
AbstractObjectEntry() - Constructor for class org.loklak.objects.AbstractObjectEntry
+
 
+
AbstractPushServlet - Class in org.loklak.api.iot
+
 
+
AbstractPushServlet() - Constructor for class org.loklak.api.iot.AbstractPushServlet
+
 
+
acceptQuery4Retrieval(String) - Static method in class org.loklak.Caretaker
+
 
+
access - Static variable in class org.loklak.data.DAO
+
 
+
ACCESS_DUMP_FILE_PREFIX - Static variable in class org.loklak.data.DAO
+
 
+
AccessServlet - Class in org.loklak.api.admin
+
 
+
AccessServlet() - Constructor for class org.loklak.api.admin.AccessServlet
+
 
+
AccessTracker - Class in org.loklak.http
+
 
+
AccessTracker(File, String, long, long) - Constructor for class org.loklak.http.AccessTracker
+
 
+
AccessTracker.Track - Class in org.loklak.http
+
 
+
ACCOUNT_DUMP_FILE_PREFIX - Static variable in class org.loklak.data.DAO
+
 
+
AccountEntry - Class in org.loklak.objects
+
 
+
AccountEntry(JSONObject) - Constructor for class org.loklak.objects.AccountEntry
+
 
+
AccountEntry.Field - Enum in org.loklak.objects
+
 
+
AccountFactory - Class in org.loklak.data
+
 
+
AccountFactory(ElasticsearchClient, String, int, int) - Constructor for class org.loklak.data.AccountFactory
+
 
+
accounting - Static variable in class org.loklak.data.DAO
+
 
+
Accounting - Class in org.loklak.server
+
+
Accounting asks: what has the user done.
+
+
Accounting() - Constructor for class org.loklak.server.Accounting
+
 
+
accounting_temporary - Static variable in class org.loklak.data.DAO
+
 
+
AccountService - Class in org.loklak.api.cms
+
 
+
AccountService() - Constructor for class org.loklak.api.cms.AccountService
+
 
+
accumulate(String, Object) - Method in class org.json.JSONObject
+
+
Accumulate values under a key.
+
+
accuracyLat() - Method in interface org.loklak.geo.GeoPoint
+
+
get the implementation-dependent accuracy of the latitude
+
+
accuracyLat() - Method in class org.loklak.geo.IntegerGeoPoint
+
+
get the implementation-dependent accuracy of the latitude
+
+
accuracyLon() - Method in interface org.loklak.geo.GeoPoint
+
+
get the implementation-dependent accuracy of the longitude
+
+
accuracyLon() - Method in class org.loklak.geo.IntegerGeoPoint
+
+
get the implementation-dependent accuracy of the longitude
+
+
activeStatus - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
add(TwitterScraper.TwitterTweet, UserEntry) - Method in class org.loklak.objects.Timeline
+
 
+
add(Post, UserEntry) - Method in class org.loklak.objects.Timeline2
+
 
+
add(Post) - Method in class org.loklak.objects.Timeline2
+
 
+
add(K) - Method in class org.loklak.tools.CacheSet
+
 
+
addCookie(String) - Method in class org.loklak.harvester.WeiboInfoScraper
+
 
+
addCookie(String) - Method in class org.loklak.http.CookieRequestManager
+
 
+
addField(String, String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
addFrame(BufferedImage, int) - Method in class org.loklak.graphics.AnimationPlotter
+
 
+
addImage(RenderedImage, int, int) - Method in class org.loklak.graphics.AnimationGIF
+
+
add an image to the animation
+
+
addLocalhost(String) - Static method in class org.loklak.http.RemoteAccess
+
 
+
addMessage(RSSMessage) - Method in class org.loklak.rss.RSSFeed
+
 
+
addNode(String, GraphPlotter.Point) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
addNode(String, double, double, int) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
addObservation(String, String) - Method in class org.loklak.susi.SusiThought
+
+
If during thinking we observe something that we want to memorize, we can memorize this here
+
+
addPost(Post) - Method in class org.loklak.objects.Timeline2
+
 
+
addQuery(String) - Method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
addQuery(String, double) - Method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
addQuery(String, double) - Method in class org.loklak.harvester.strategy.PriorityKaizenHarvester.PriorityKaizenQueries
+
 
+
addReferrer(Pattern) - Static method in class org.loklak.http.RemoteAccess
+
 
+
addRequest(String, String) - Method in class org.loklak.server.Accounting
+
 
+
addScheduler(Timeline, boolean) - Static method in class org.loklak.data.IncomingMessageBuffer
+
 
+
addScheduler(TwitterScraper.TwitterTweet, UserEntry, boolean) - Static method in class org.loklak.data.IncomingMessageBuffer
+
 
+
addSchedulerAvailable() - Static method in class org.loklak.data.IncomingMessageBuffer
+
 
+
addService(ClientService) - Method in class org.loklak.server.Authorization
+
 
+
addSignature(JSONObject, PrivateKey) - Static method in class org.loklak.tools.JsonSignature
+
+
Create and add a signature to a JSONObject
+
+
addSignature(Map<String, byte[]>, PrivateKey) - Static method in class org.loklak.tools.JsonSignature
+
 
+
addText(String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Required + This is the text field.
+
+
aggregations - Variable in class org.loklak.data.DAO.SearchLocalMessages
+
 
+
aggregations - Variable in class org.loklak.data.ElasticsearchClient.Query
+
 
+
altitude - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
AmazonProductService - Class in org.loklak.api.amazon
+
 
+
AmazonProductService() - Constructor for class org.loklak.api.amazon.AmazonProductService
+
 
+
AMP - Static variable in class org.json.XML
+
+
The Character '&'.
+
+
AMP - Static variable in class org.loklak.tools.CommonPattern
+
 
+
AMP_HTML - Static variable in class org.loklak.tools.CommonPattern
+
 
+
analyse(String, String[], int, String) - Method in class org.loklak.geo.GeoNames
+
+
Analyse a text for the presence of a location name
+
+
AnimationGIF - Class in org.loklak.graphics
+
 
+
AnimationGIF(int) - Constructor for class org.loklak.graphics.AnimationGIF
+
+
create a gif animation producer
+
+
AnimationPlotter - Class in org.loklak.graphics
+
 
+
AnimationPlotter() - Constructor for class org.loklak.graphics.AnimationPlotter
+
 
+
AnimationPlotter.Frame - Class in org.loklak.graphics
+
 
+
announceNewUserId(Timeline) - Static method in class org.loklak.data.DAO
+
 
+
announceNewUserId(Number) - Static method in class org.loklak.data.DAO
+
 
+
antialiasing(int, int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
antialiasing filter for a square part of the image
+
+
APIException - Exception in org.loklak.server
+
 
+
APIException(int, String) - Constructor for exception org.loklak.server.APIException
+
 
+
APIHandler - Interface in org.loklak.server
+
 
+
APOS - Static variable in class org.json.XML
+
+
The Character '''.
+
+
append(String, Object) - Method in class org.json.JSONObject
+
+
Append values to the array under a key.
+
+
append(byte) - Method in class org.loklak.tools.ByteBuffer
+
 
+
append(char) - Method in class org.loklak.tools.ByteBuffer
+
 
+
append(int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
append(byte[]) - Method in class org.loklak.tools.ByteBuffer
+
 
+
append(byte[], int, int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
append(String) - Method in class org.loklak.tools.ByteBuffer
+
 
+
appendLine(byte[]) - Method in class org.loklak.tools.BufferedRandomAccessFile
+
+
add a line at the end of the file
+
+
applyConstraint(Timeline, QueryEntry.Tokens, boolean) - Static method in class org.loklak.objects.QueryEntry
+
 
+
AppsService - Class in org.loklak.api.cms
+
 
+
AppsService() - Constructor for class org.loklak.api.cms.AppsService
+
 
+
arc(int, int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
arc(int, int, int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
arcArc(int, int, int, double, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
arcArc(int, int, int, double, int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
arcConnect(int, int, int, double, double, boolean, Long, int, Long, int, int, int, int, boolean, String, Long, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
draw a connecting line between two points on a circle
+
+
arcDot(int, int, int, double, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
arcLine(int, int, int, int, double, boolean, Long, Long, int, int, int, boolean) - Method in class org.loklak.graphics.RasterPlotter
+
+
draw a portion of a line from the center of a circle
+
+
arcPrint(RasterPlotter, int, int, int, double, String, int) - Static method in class org.loklak.graphics.PrintTool
+
+
print a string at the distance of a circle
+
+
ASCII - Class in org.loklak.tools
+
+
this is a replacement of an insensitive collator object, produced by a RuleBasedCollator Class + The RuleBasedCollator is a very inefficient class if it is used only for insensitive ASCII comparisments + This class is a very simple comparator for Strings which can be used to compare also Strings with upper/lowercase + Strings without applying .toUpperCase or .toLowerCase + Strings must contain no other than ASCII code.
+
+
ASCII(boolean) - Constructor for class org.loklak.tools.ASCII
+
 
+
AssetServlet - Class in org.loklak.api.cms
+
 
+
AssetServlet() - Constructor for class org.loklak.api.cms.AssetServlet
+
 
+
audio - Variable in class org.loklak.objects.MessageEntry
+
 
+
authentication - Static variable in class org.loklak.data.DAO
+
 
+
Authentication - Class in org.loklak.server
+
+
Authentication asks: who is the user.
+
+
Authentication(ClientCredential, JsonTray) - Constructor for class org.loklak.server.Authentication
+
+
create a new authentication object.
+
+
authorization - Static variable in class org.loklak.data.DAO
+
 
+
Authorization - Class in org.loklak.server
+
+
Authorization asks: what is the user allowed to do? This class holds user rights.
+
+
Authorization(ClientIdentity, JsonTray, UserRoles) - Constructor for class org.loklak.server.Authorization
+
+
create a new authorization object.
+
+
AuthorizationDemoService - Class in org.loklak.api.cms
+
 
+
AuthorizationDemoService() - Constructor for class org.loklak.api.cms.AuthorizationDemoService
+
 
+
+ + + +

B

+
+
back() - Method in class org.json.JSONTokener
+
+
Back up one character.
+
+
BACKSLASH - Static variable in class org.loklak.tools.CommonPattern
+
 
+
BANG - Static variable in class org.json.XML
+
+
The Character '!'.
+
+
base64 - Variable in class org.loklak.http.RemoteAccess.FileTypeEncoding
+
 
+
BaseScraper - Class in org.loklak.harvester
+
 
+
BaseScraper() - Constructor for class org.loklak.harvester.BaseScraper
+
 
+
baseUrl - Variable in class org.loklak.harvester.BaseScraper
+
 
+
BaseUserRole - Enum in org.loklak.server
+
 
+
BayesClassifier<T,K> - Class in org.loklak.tools.bayes
+
+
A concrete implementation of the abstract Classifier class.
+
+
BayesClassifier() - Constructor for class org.loklak.tools.bayes.BayesClassifier
+
 
+
bbox - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
bin_dir - Static variable in class org.loklak.data.DAO
+
 
+
blacklistedHosts - Static variable in class org.loklak.LoklakInstallation
+
 
+
blacklistedHosts - Static variable in class org.loklak.LoklakServer
+
 
+
blankTypeString - Static variable in class org.loklak.tools.Browser
+
 
+
BLUE - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
blur(int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
blur filter for a square part of the image
+
+
body() - Method in interface org.loklak.http.CookieRequest
+
 
+
Browser - Class in org.loklak.tools
+
 
+
Browser() - Constructor for class org.loklak.tools.Browser
+
 
+
buffer(Date, Map<String, Object>) - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
BufferedRandomAccessFile - Class in org.loklak.tools
+
+
This class is inspired by https://code.google.com/p/jmzreader/source/browse/tools/braf/trunk/src/main/java/uk/ac/ebi/pride/tools/braf/BufferedRandomAccessFile.java + which is in turn an optimized version of the RandomAccessFile class as described by Nick Zhang on JavaWorld.com.
+
+
BufferedRandomAccessFile(String, String, int) - Constructor for class org.loklak.tools.BufferedRandomAccessFile
+
+
Creates a new instance of the BufferedRandomAccessFile.
+
+
BufferedRandomAccessFile(File, String, int) - Constructor for class org.loklak.tools.BufferedRandomAccessFile
+
 
+
BufferedRandomAccessFile(File, String) - Constructor for class org.loklak.tools.BufferedRandomAccessFile
+
 
+
BufferedRandomAccessFile.IndexedLine - Class in org.loklak.tools
+
 
+
BufferedRandomAccessFile.Test - Class in org.loklak.tools
+
 
+
bufferedReaderToString(BufferedReader) - Method in class org.loklak.harvester.BaseScraper
+
 
+
builder() - Static method in class org.loklak.data.DAOWrapper
+
 
+
buildJSONResponse(String, PushReport) - Static method in class org.loklak.api.iot.PushServletHelper
+
 
+
buildRequest(String) - Method in class org.loklak.http.CookieRequestManager
+
 
+
BulkEntry(String, String, String, Long, Map<String, Object>) - Constructor for class org.loklak.data.ElasticsearchClient.BulkEntry
+
+
initialize entry for bulk writes
+
+
BulkWriteResult() - Constructor for class org.loklak.data.ElasticsearchClient.BulkWriteResult
+
 
+
byName(String) - Static method in enum org.loklak.objects.SourceType
+
 
+
byteAt(int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
ByteBuffer - Class in org.loklak.tools
+
 
+
ByteBuffer() - Constructor for class org.loklak.tools.ByteBuffer
+
 
+
ByteBuffer(int) - Constructor for class org.loklak.tools.ByteBuffer
+
 
+
ByteBuffer(byte[]) - Constructor for class org.loklak.tools.ByteBuffer
+
 
+
ByteBuffer(String) - Constructor for class org.loklak.tools.ByteBuffer
+
 
+
+ + + +

C

+
+
CACHE_MAXSIZE - Static variable in class org.loklak.data.DAO
+
 
+
CacheMap<K,V> - Class in org.loklak.tools
+
 
+
CacheMap(int) - Constructor for class org.loklak.tools.CacheMap
+
 
+
CacheSet<K> - Class in org.loklak.tools
+
 
+
CacheSet(int) - Constructor for class org.loklak.tools.CacheSet
+
 
+
CacheStats - Class in org.loklak.tools
+
 
+
CacheStats() - Constructor for class org.loklak.tools.CacheStats
+
 
+
Campaign - Class in org.loklak.data
+
 
+
Campaign() - Constructor for class org.loklak.data.Campaign
+
 
+
Campaign(JSONObject) - Constructor for class org.loklak.data.Campaign
+
+
create an campaign with a dumped map
+
+
Campaign(String, String, Date, Date, Date, int) - Constructor for class org.loklak.data.Campaign
+
+
create an campaign
+
+
Campaign(String, String, String, String, int) - Constructor for class org.loklak.data.Campaign
+
+
create an campaign
+
+
Campaigns - Class in org.loklak.data
+
 
+
Campaigns(File) - Constructor for class org.loklak.data.Campaigns
+
 
+
Campaigns.State - Enum in org.loklak.data
+
 
+
CampaignServlet - Class in org.loklak.api.admin
+
 
+
CampaignServlet() - Constructor for class org.loklak.api.admin.CampaignServlet
+
 
+
canExecUnix - Static variable in class org.loklak.tools.Browser
+
 
+
canExecUnix - Static variable in class org.loklak.tools.OS
+
 
+
canonical_id - Variable in class org.loklak.objects.MessageEntry
+
 
+
Caretaker - Class in org.loklak
+
+
The caretaker class is a concurrent thread which does peer-to-peer operations + and data transmission asynchronously.
+
+
Caretaker() - Constructor for class org.loklak.Caretaker
+
 
+
CASE_INSENSITIVE_ORDER - Static variable in class org.loklak.tools.StringBuilderComparator
+
 
+
CASE_SENSITIVE_ORDER - Static variable in class org.loklak.tools.StringBuilderComparator
+
 
+
caseInsensitive - Variable in class org.loklak.tools.storage.JsonDataset.Column
+
 
+
categories - Variable in enum org.loklak.data.Classifier.Context
+
 
+
categoryCount(K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the number of occurrences of the given category.
+
+
CDL - Class in org.json
+
+
This provides static methods to convert comma delimited text into a + JSONArray, and to convert a JSONArray into comma delimited text.
+
+
CDL() - Constructor for class org.json.CDL
+
 
+
CharacterCoding - Class in org.loklak.tools
+
+
Contains methods to convert between Unicode and XML/HTML encoding.
+
+
CHARSET - Static variable in class org.loklak.http.ClientConnection
+
 
+
chartDot(int, int, float, int, int, String, int) - Method in class org.loklak.graphics.ChartPlotter
+
 
+
chartLine(int, int, float, int, float, int) - Method in class org.loklak.graphics.ChartPlotter
+
 
+
ChartPlotter - Class in org.loklak.graphics
+
 
+
ChartPlotter(int, int, Long, Long, Long, int, int, int, int, String, String) - Constructor for class org.loklak.graphics.ChartPlotter
+
 
+
checkConnection(String, String, String, String, int, boolean) - Static method in class org.loklak.LoklakEmailHandler
+
+
Check SMTP login credentials
+
+
checkContext(Timeline, boolean) - Method in class org.loklak.harvester.strategy.ClassicHarvester
+
 
+
checkContext(String, boolean) - Method in class org.loklak.harvester.strategy.ClassicHarvester
+
 
+
checkExpireTime() - Method in class org.loklak.server.Authentication
+
+
Check if the authentication is still valid
+
+
checkMessageExistence(JSONObject) - Static method in class org.loklak.api.iot.PushServletHelper
+
 
+
circle(RasterPlotter, int, int, int, int) - Static method in class org.loklak.graphics.CircleTool
+
 
+
circle(RasterPlotter, int, int, int, int, int) - Static method in class org.loklak.graphics.CircleTool
+
 
+
CircleTool - Class in org.loklak.graphics
+
 
+
CircleTool() - Constructor for class org.loklak.graphics.CircleTool
+
 
+
citiesInBB(double, double, double, double) - Method in class org.loklak.geo.GeoNames
+
 
+
cityNear(double, double) - Method in class org.loklak.geo.GeoNames
+
+
try to find a place close to the given location
+
+
ClassicHarvester - Class in org.loklak.harvester.strategy
+
 
+
ClassicHarvester() - Constructor for class org.loklak.harvester.strategy.ClassicHarvester
+
 
+
Classification<T,K> - Class in org.loklak.tools.bayes
+
+
A basic wrapper reflecting a classification.
+
+
Classification(Collection<T>, K) - Constructor for class org.loklak.tools.bayes.Classification
+
+
Constructs a new Classification with the parameters given and a default + probability of 1.
+
+
Classification(Collection<T>, K, float) - Constructor for class org.loklak.tools.bayes.Classification
+
+
Constructs a new Classification with the parameters given.
+
+
Classification - Class in org.loklak.tools
+
 
+
Classification() - Constructor for class org.loklak.tools.Classification
+
 
+
Classification.ContentDomain - Enum in org.loklak.tools
+
 
+
Classifier - Class in org.loklak.data
+
 
+
Classifier() - Constructor for class org.loklak.data.Classifier
+
 
+
Classifier<T,K> - Class in org.loklak.tools.bayes
+
+
Abstract base extended by any concrete classifier.
+
+
Classifier() - Constructor for class org.loklak.tools.bayes.Classifier
+
+
Constructs a new classifier without any trained knowledge.
+
+
Classifier.Category - Enum in org.loklak.data
+
 
+
Classifier.Context - Enum in org.loklak.data
+
 
+
classifierScore(String, String, List<String>) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get all time aggregations without any geographical constraints.
+
+
classifierScore(String, String, List<String>, String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get limited time aggregations without any geographical constraints.
+
+
classifierScoreForCountry(String, String, List<String>, String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get limited time aggregation by country code for all available countries.
+
+
classifierScoreForCountry(String, String, List<String>, String, String, List<String>) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get limited time aggregation by country code for required countries.
+
+
classifierScoreForCountry(String, String, List<String>) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get all time aggregation by country for all available countries.
+
+
classifierScoreForCountry(String, String, List<String>, List<String>) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get all time aggregation by country for required countries.
+
+
ClassifierServlet - Class in org.loklak.api.aggregation
+
 
+
ClassifierServlet() - Constructor for class org.loklak.api.aggregation.ClassifierServlet
+
 
+
ClassifierServletCache - Class in org.loklak.api.aggregation
+
 
+
ClassifierServletCache() - Constructor for class org.loklak.api.aggregation.ClassifierServletCache
+
 
+
classify(String) - Static method in class org.loklak.data.Classifier
+
 
+
classify(String) - Method in enum org.loklak.data.Classifier.Context
+
 
+
classify(Collection<T>) - Method in class org.loklak.tools.bayes.BayesClassifier
+
+
Classifies the given set of features.
+
+
classify(Collection<T>) - Method in class org.loklak.tools.bayes.Classifier
+
+
The classify method.
+
+
classifyDetailed(Collection<T>) - Method in class org.loklak.tools.bayes.BayesClassifier
+
+
Classifies the given set of features.
+
+
clean() - Method in class org.loklak.objects.TimelineCache
+
 
+
cleanup() - Method in class org.loklak.server.Accounting
+
+
cleanup deletes all old entries and frees up the memory.
+
+
cleanup() - Static method in class org.loklak.tools.Digest
+
+
clean the md5 cache
+
+
clear() - Method in class org.loklak.graphics.RasterPlotter
+
+
Deletes all pixels of image and sets them to previously defined + background color.
+
+
clear() - Method in class org.loklak.objects.ResultList
+
 
+
clear() - Method in class org.loklak.objects.Timeline
+
 
+
clear() - Method in class org.loklak.objects.Timeline2
+
 
+
clear() - Method in class org.loklak.tools.ByteBuffer
+
 
+
clear() - Method in class org.loklak.tools.CacheMap
+
 
+
clear() - Method in class org.loklak.tools.CacheSet
+
 
+
clear() - Method in class org.loklak.tools.CacheStats
+
 
+
clearcache() - Static method in class org.loklak.graphics.CircleTool
+
 
+
Client - Class in org.loklak.server
+
 
+
Client(String) - Constructor for class org.loklak.server.Client
+
 
+
Client(String, String) - Constructor for class org.loklak.server.Client
+
 
+
client_host - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
ClientConnection - Class in org.loklak.http
+
+
Helper class to provide BufferedReader Objects for get and post connections
+
+
ClientConnection(String, boolean) - Constructor for class org.loklak.http.ClientConnection
+
+
GET request
+
+
ClientConnection(String) - Constructor for class org.loklak.http.ClientConnection
+
+
GET request
+
+
ClientConnection(String, Map<String, byte[]>, boolean) - Constructor for class org.loklak.http.ClientConnection
+
+
POST request
+
+
ClientConnection(String, Map<String, byte[]>) - Constructor for class org.loklak.http.ClientConnection
+
+
POST request
+
+
ClientCredential - Class in org.loklak.server
+
+
A credential is used as key in DAO.authentication
+
+
ClientCredential(String) - Constructor for class org.loklak.server.ClientCredential
+
 
+
ClientCredential(ClientCredential.Type, String) - Constructor for class org.loklak.server.ClientCredential
+
 
+
ClientCredential.Type - Enum in org.loklak.server
+
 
+
ClientIdentity - Class in org.loklak.server
+
+
an identity is only a string which contains details sufficient enough to + identify a user and to send data to that user
+
+
ClientIdentity(String) - Constructor for class org.loklak.server.ClientIdentity
+
 
+
ClientIdentity(ClientIdentity.Type, String) - Constructor for class org.loklak.server.ClientIdentity
+
 
+
ClientIdentity.Type - Enum in org.loklak.server
+
 
+
ClientService - Class in org.loklak.server
+
 
+
ClientService(String) - Constructor for class org.loklak.server.ClientService
+
 
+
ClientService(ClientService.Type, String) - Constructor for class org.loklak.server.ClientService
+
 
+
ClientService.Type - Enum in org.loklak.server
+
 
+
clone() - Method in class org.loklak.graphics.GraphPlotter
+
 
+
clone() - Method in class org.loklak.graphics.GraphPlotter.Point
+
 
+
clone() - Method in class org.loklak.tools.ASCII
+
 
+
close() - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
close() - Method in class org.loklak.data.Campaigns
+
 
+
close() - Static method in class org.loklak.data.DAO
+
+
close all objects in this class
+
+
close() - Method in class org.loklak.data.ElasticsearchClient
+
+
Close the connection to the remote elasticsearch client.
+
+
close() - Method in interface org.loklak.data.IndexFactory
+
 
+
close() - Method in class org.loklak.http.AccessTracker
+
 
+
close() - Method in class org.loklak.http.ClientConnection
+
 
+
close() - Method in class org.loklak.tools.storage.JsonDataset
+
 
+
close() - Method in class org.loklak.tools.storage.JsonRandomAccessFile
+
 
+
close() - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
clusterReady() - Method in class org.loklak.data.ElasticsearchClient
+
 
+
clusterStats() - Static method in class org.loklak.data.DAO
+
 
+
clusterStats() - Method in class org.loklak.data.ElasticsearchClient
+
 
+
cm - Static variable in class org.loklak.http.ClientConnection
+
 
+
Column(String, boolean) - Constructor for class org.loklak.tools.storage.JsonDataset.Column
+
 
+
combine(PushReport) - Method in class org.loklak.api.iot.PushReport
+
 
+
COMMA - Static variable in class org.loklak.tools.CommonPattern
+
 
+
commit() - Method in class org.loklak.tools.storage.JsonFile
+
+
Write changes to file.
+
+
commit() - Method in class org.loklak.tools.storage.JsonTray
+
 
+
CommonPattern - Class in org.loklak.tools
+
+
This class provides Pattern constants to be used + to replace a regex in s.split(regex) method calls.
+
+
CommonPattern() - Constructor for class org.loklak.tools.CommonPattern
+
 
+
compare(Campaign, Campaign) - Method in class org.loklak.data.Campaign
+
 
+
compare(Campaigns.State, Campaigns.State) - Method in enum org.loklak.data.Campaigns.State
+
 
+
compare(GeoLocation, GeoLocation) - Method in class org.loklak.geo.GeoLocation
+
 
+
compare(RSSMessage, RSSMessage) - Method in class org.loklak.rss.RSSMessage
+
 
+
compare(String, String) - Method in class org.loklak.tools.ASCII
+
 
+
compare(StringBuilder, StringBuilder) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
compareTo(Campaign) - Method in class org.loklak.data.Campaign
+
 
+
compareTo(GeoLocation) - Method in class org.loklak.geo.GeoLocation
+
+
comparator that is needed to use the object inside TreeMap/TreeSet + a Location is smaller than another if it has a _greater_ population + this order is used to get sorted lists of locations where the first elements + have the greatest population
+
+
compareTo(RSSMessage) - Method in class org.loklak.rss.RSSMessage
+
 
+
COMPRESSED_MODE - Static variable in class org.loklak.tools.storage.JsonRepository
+
 
+
Compression - Class in org.loklak.tools
+
 
+
Compression() - Constructor for class org.loklak.tools.Compression
+
 
+
computeMessageId(JSONObject, SourceType) - Static method in class org.loklak.api.iot.PushServletHelper
+
 
+
conclude(JSONArray) - Method in class org.loklak.susi.SusiTransfer
+
+
A conclusion from choices is done by the application of a function on the choice set.
+
+
conf_dir - Static variable in class org.loklak.data.DAO
+
 
+
constraints_negative - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
constraints_positive - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
contains(Collection<byte[]>, byte[]) - Static method in class org.loklak.tools.ByteBuffer
+
 
+
contains(K) - Method in class org.loklak.tools.CacheSet
+
 
+
containsProfileImage() - Method in class org.loklak.objects.UserEntry
+
 
+
convert(JSONArray) - Method in class org.loklak.harvester.JsonFieldConverter
+
 
+
convert(JSONObject) - Method in class org.loklak.harvester.JsonFieldConverter
+
 
+
convertToIndexed(BufferedImage) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
cookie() - Method in interface org.loklak.http.CookieRequest
+
 
+
cookieCount() - Method in class org.loklak.http.CookieRequestManager
+
 
+
CookieRequest - Interface in org.loklak.http
+
 
+
CookieRequestManager - Class in org.loklak.http
+
 
+
CookieRequestManager() - Constructor for class org.loklak.http.CookieRequestManager
+
 
+
copyTo(byte[], int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
correctLocation(JSONObject) - Static method in class org.loklak.harvester.TwitterAPI
+
+
beautify given location information.
+
+
count(String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get the number of documents in the search index
+
+
count(QueryBuilder, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get the number of documents in the search index for a given search query
+
+
count(String, String, long) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
countLocal(String, String) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
countLocalAccounts() - Static method in class org.loklak.data.DAO
+
 
+
countLocalMessages(long, boolean) - Static method in class org.loklak.data.DAO
+
 
+
countLocalMessages() - Static method in class org.loklak.data.DAO
+
 
+
countLocalMessages(String) - Static method in class org.loklak.data.DAO
+
 
+
countLocalQueries() - Static method in class org.loklak.data.DAO
+
 
+
countLocalUsers() - Static method in class org.loklak.data.DAO
+
 
+
countMimes() - Static method in class org.loklak.tools.Classification
+
 
+
CountryBounds() - Constructor for class org.loklak.geo.GeoNames.CountryBounds
+
 
+
Crawler - Class in org.loklak
+
 
+
Crawler() - Constructor for class org.loklak.Crawler
+
 
+
CrawlerServlet - Class in org.loklak.api.admin
+
 
+
CrawlerServlet() - Constructor for class org.loklak.api.admin.CrawlerServlet
+
 
+
created_at - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
created_at - Variable in class org.loklak.objects.MessageEntry
+
 
+
CREATED_AT_FIELDNAME - Static variable in class org.loklak.objects.AbstractObjectEntry
+
 
+
createIndexIfNotExists(String, int, int) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
createRandomString(Integer) - Static method in class org.loklak.server.AbstractAPIHandler
+
+
Creates a random alphanumeric string
+
+
CRLF - Static variable in class org.loklak.http.ClientConnection
+
 
+
CSVServlet - Class in org.loklak.api.tools
+
 
+
CSVServlet() - Constructor for class org.loklak.api.tools.CSVServlet
+
 
+
customProcessing(JSONObject) - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
customProcessing(JSONObject) - Method in class org.loklak.api.iot.FossasiaPushServlet
+
 
+
customProcessing(JSONObject) - Method in class org.loklak.api.iot.FreifunkNodePushServlet
+
 
+
customProcessing(JSONObject) - Method in class org.loklak.api.iot.NodelistPushServlet
+
 
+
customProcessing(JSONObject) - Method in class org.loklak.api.iot.OpenWifiMapPushServlet
+
 
+
+ + + +

D

+
+
DAO - Class in org.loklak.data
+
+
The Data Access Object for the message project.
+
+
DAO() - Constructor for class org.loklak.data.DAO
+
 
+
DAO.IndexName - Enum in org.loklak.data
+
 
+
DAO.MessageWrapper - Class in org.loklak.data
+
 
+
DAO.parallelScrape - Class in org.loklak.data
+
 
+
DAO.SearchLocalMessages - Class in org.loklak.data
+
 
+
DAOWrapper - Class in org.loklak.data
+
+
The json below is the minimum json + { + "statuses": [ + { + "id_str": "yourmessageid_1234", + "screen_name": "testuser", + "created_at": "2016-07-22T07:53:24.000Z", + "text": "The rain is spain stays always in the plain", + "source_type": "GENERIC", + "place_name": "Georgia, USA", + "location_point": [3.058579854228782,50.63296878274201], + "location_radius": 0, + "user": { + "user_id": "youruserid_5678", + "name": "Mr.
+
+
DAOWrapper() - Constructor for class org.loklak.data.DAOWrapper
+
 
+
DAOWrapper.GenericJSONBuilder - Class in org.loklak.data
+
 
+
darkColor(String) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
darkColor(long) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
data_name - Variable in class org.loklak.susi.SusiThought
+
 
+
DateParser - Class in org.loklak.tools
+
 
+
DateParser() - Constructor for class org.loklak.tools.DateParser
+
 
+
DAY_MILLIS - Static variable in class org.loklak.tools.DateParser
+
 
+
dayDateFormat - Static variable in class org.loklak.tools.DateParser
+
 
+
debug(Throwable) - Static method in class org.loklak.data.DAO
+
+
For Debugging events (very noisy).
+
+
declareDimension(int, int, int, int, Long, Long, String) - Method in class org.loklak.graphics.ChartPlotter
+
+
assign a metric to a graph.
+
+
decodeHex(String) - Static method in class org.loklak.tools.Digest
+
 
+
decodePublicKey(String, String) - Static method in class org.loklak.tools.IO
+
+
Create PublicKey from String representation
+
+
decrementCategory(K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Decrements the count of a given category.
+
+
decrementFeature(T, K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Decrements the count of a given feature in the given category.
+
+
deduce(String) - Method in class org.loklak.susi.SusiProcedures
+
+
Deduction is the application of an intent on perception and a world model.
+
+
defaultAnonymousTime - Static variable in class org.loklak.server.AbstractAPIHandler
+
 
+
defaultCookieTime - Static variable in class org.loklak.server.AbstractAPIHandler
+
 
+
degreeToKm(double) - Static method in class org.loklak.geo.GeoLocation
+
 
+
dehexchar(char) - Static method in class org.json.JSONTokener
+
+
Get the hex value of a character (base16).
+
+
delCookie(String) - Method in class org.loklak.http.CookieRequestManager
+
 
+
delete(String, SourceType) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
delete(String, String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Delete a document for a given id.
+
+
delete(String, SourceType) - Method in interface org.loklak.data.IndexFactory
+
 
+
delete() - Method in class org.loklak.server.Authentication
+
+
Delete the authentication.
+
+
deleteBulk(String, Map<String, String>) - Method in class org.loklak.data.ElasticsearchClient
+
+
Delete a list of documents for a given set of ids + ATTENTION: read about the time-out of version number checking in the method above.
+
+
deleteByQuery(String, QueryBuilder) - Method in class org.loklak.data.ElasticsearchClient
+
+
Delete documents using a query.
+
+
deleteImportProfile(String, SourceType) - Static method in class org.loklak.data.DAO
+
 
+
deleteLoginCookie(HttpServletResponse) - Static method in class org.loklak.server.AbstractAPIHandler
+
+
Delete the login cookie if present
+
+
deleteOld(DAO.IndexName, Date) - Static method in class org.loklak.data.DAO
+
 
+
deleteQuery(String, SourceType) - Static method in class org.loklak.data.DAO
+
 
+
demoPaint(RasterPlotter) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
Digest - Class in org.loklak.tools
+
 
+
Digest() - Constructor for class org.loklak.tools.Digest
+
 
+
digestPool - Static variable in class org.loklak.tools.Digest
+
 
+
DIMENSION_ANOT0 - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_ANOT1 - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_ANOT2 - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_ANOT3 - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_BOTTOM - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_LEFT - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_RIGHT - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
DIMENSION_TOP - Static variable in class org.loklak.graphics.ChartPlotter
+
 
+
dir - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
distance(GeoPoint) - Method in class org.loklak.geo.AbstractGeoPoint
+
+
compute the distance between two points using the Haversine Algorithm + https://en.wikipedia.org/wiki/Haversine_formula
+
+
distance(double, double, double, double) - Static method in class org.loklak.geo.AbstractGeoPoint
+
 
+
distance(GeoPoint) - Method in interface org.loklak.geo.GeoPoint
+
+
compute the distance between two points using the Haversine Algorithm + https://en.wikipedia.org/wiki/Haversine_formula
+
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.AccessServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.CampaignServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.CrawlerServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.SettingsServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.ThreaddumpServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.AssetServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.DumpDownloadServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.ProxyServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.Sitemap
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.geo.GeocodeServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.EarthquakeServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.FreifunkNodeFetchServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.GeoJsonPushServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.ImportProfileServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.NetmonPushServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.NMEAServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.NOAAAlertServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.StuffInSpaceServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.ValidateServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.YahiHazeServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.p2p.PeersServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.p2p.PushServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.tools.CSVServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.tools.XMLServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.vis.MapServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.vis.MarkdownServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.vis.PieChartServlet
+
 
+
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.AccessServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.CampaignServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.CrawlerServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.SettingsServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.admin.ThreaddumpServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.AssetServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.DumpDownloadServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.ProxyServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.cms.Sitemap
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.geo.GeocodeServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.EarthquakeServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.FreifunkNodeFetchServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.GeoJsonPushServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.ImportProfileServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.NMEAServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.NOAAAlertServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.StuffInSpaceServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.ValidateServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.iot.YahiHazeServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.p2p.PeersServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.p2p.PushServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.tools.CSVServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.tools.XMLServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.vis.MapServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.vis.MarkdownServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.api.vis.PieChartServlet
+
 
+
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
doResponseHeaders(HttpServletResponse, Resource, String) - Method in class org.loklak.server.FileHandler
+
 
+
dot(int, int, int, boolean, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
DOT - Static variable in class org.loklak.tools.CommonPattern
+
 
+
DOUBLEPOINT - Static variable in class org.loklak.tools.CommonPattern
+
 
+
doubleToString(double) - Static method in class org.json.JSONObject
+
+
Produce a string from a double.
+
+
download(String, File, boolean) - Static method in class org.loklak.http.ClientConnection
+
 
+
download(String, File) - Static method in class org.loklak.http.ClientConnection
+
 
+
download(String, boolean) - Static method in class org.loklak.http.ClientConnection
+
 
+
download(String) - Static method in class org.loklak.http.ClientConnection
+
 
+
downloadPeer(String, File) - Static method in class org.loklak.http.ClientConnection
+
 
+
downloadPeer(String) - Static method in class org.loklak.http.ClientConnection
+
 
+
draw(int, int, int, int, int, int, int, int, String, String, String, String, String, String) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
drawGrid(String) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
dump - Variable in class org.loklak.data.DAO.MessageWrapper
+
 
+
DumpDownloadServlet - Class in org.loklak.api.cms
+
 
+
DumpDownloadServlet() - Constructor for class org.loklak.api.cms.DumpDownloadServlet
+
 
+
DumpImporter - Class in org.loklak
+
 
+
DumpImporter(int) - Constructor for class org.loklak.DumpImporter
+
 
+
+ + + +

E

+
+
EarthquakeServlet - Class in org.loklak.api.iot
+
 
+
EarthquakeServlet() - Constructor for class org.loklak.api.iot.EarthquakeServlet
+
 
+
east_lon - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
elasticsearch_client - Variable in class org.loklak.data.AbstractIndexFactory
+
 
+
elasticsearch_client - Static variable in class org.loklak.data.DAO
+
 
+
ElasticsearchClient - Class in org.loklak.data
+
 
+
ElasticsearchClient(String[], String) - Constructor for class org.loklak.data.ElasticsearchClient
+
+
create a elasticsearch transport client (remote elasticsearch)
+
+
ElasticsearchClient(Settings.Builder) - Constructor for class org.loklak.data.ElasticsearchClient
+
+
create a elasticsearch node client (embedded elasticsearch)
+
+
ElasticsearchClient.BulkEntry - Class in org.loklak.data
+
 
+
ElasticsearchClient.BulkWriteResult - Class in org.loklak.data
+
 
+
ElasticsearchClient.Query - Class in org.loklak.data
+
 
+
ElasticsearchQuery(String, int, ArrayList<String>) - Constructor for class org.loklak.objects.QueryEntry.ElasticsearchQuery
+
 
+
ElasticsearchQuery(String, int) - Constructor for class org.loklak.objects.QueryEntry.ElasticsearchQuery
+
 
+
EMAIL_PATTERN - Static variable in class org.loklak.LoklakEmailHandler
+
 
+
emoji_pattern_span - Static variable in class org.loklak.harvester.TwitterScraper
+
 
+
EMPTY_BULK_RESULT - Static variable in class org.loklak.data.ElasticsearchClient
+
 
+
encodeHex(long, int) - Static method in class org.loklak.tools.Digest
+
 
+
encodeHex(byte[]) - Static method in class org.loklak.tools.Digest
+
 
+
encodeMD5Hex(String) - Static method in class org.loklak.tools.Digest
+
 
+
encodeMD5Hex(File) - Static method in class org.loklak.tools.Digest
+
 
+
encodeMD5Hex(byte[]) - Static method in class org.loklak.tools.Digest
+
 
+
encodeMD5Raw(String) - Static method in class org.loklak.tools.Digest
+
 
+
encodeMD5Raw(File) - Static method in class org.loklak.tools.Digest
+
 
+
encodeOctal(byte[]) - Static method in class org.loklak.tools.Digest
+
 
+
end() - Method in class org.json.JSONTokener
+
 
+
endsWith(StringBuilder, StringBuilder) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
enrich() - Method in class org.loklak.objects.MessageEntry
+
+
create enriched data, useful for analytics and ranking: + - identify all mentioned users, hashtags and links + - count message size without links + - count message size without links and without users
+
+
enrichLocation(JSONObject) - Static method in class org.loklak.harvester.TwitterAPI
+
+
enrich the user data with geocoding information
+
+
entity - Static variable in class org.json.XMLTokener
+
+
The table of entity values.
+
+
EQ - Static variable in class org.json.XML
+
+
The Character '='.
+
+
equals(Object) - Method in class org.loklak.geo.GeoLocation
+
 
+
equals(Object) - Method in interface org.loklak.geo.GeoPoint
+
+
equality test that is needed to use the class inside HashMap/HashSet
+
+
equals(Object) - Method in class org.loklak.geo.IntegerGeoPoint
+
+
equality test that is needed to use the class inside HashMap/HashSet
+
+
equals(Object) - Method in class org.loklak.objects.UserEntry
+
 
+
equals(Object) - Method in class org.loklak.rss.RSSMessage
+
 
+
equals(HttpsMode) - Method in enum org.loklak.server.HttpsMode
+
 
+
equals(Object) - Method in class org.loklak.susi.SusiThought
+
 
+
equals(String, String) - Method in class org.loklak.tools.ASCII
+
 
+
equals(Object) - Method in class org.loklak.tools.ASCII
+
 
+
equals(byte[], byte[]) - Static method in class org.loklak.tools.ByteBuffer
+
 
+
equals(byte[], int, byte[], int, int) - Static method in class org.loklak.tools.ByteBuffer
+
 
+
equals(StringBuilder, StringBuilder) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
escape(String) - Static method in class org.json.XML
+
+
Replace special characters with XML escapes:
+
+
evaluate(HttpServletRequest) - Static method in class org.loklak.http.RemoteAccess
+
 
+
EVENT_PREFIX - Static variable in class org.loklak.http.AccessTracker
+
 
+
execAsynchronous(File) - Static method in class org.loklak.tools.OS
+
 
+
execSynchronous(String) - Static method in class org.loklak.tools.OS
+
 
+
executor - Variable in class org.loklak.harvester.strategy.ClassicHarvester
+
 
+
executor - Static variable in class org.loklak.harvester.TwitterScraper
+
 
+
exist(String, String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get the document for a given id.
+
+
exist(K) - Method in class org.loklak.tools.CacheMap
+
 
+
EXIST_MAXSIZE - Static variable in class org.loklak.data.DAO
+
 
+
existBulk(String, String, Collection<String>) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
existMessage(String) - Static method in class org.loklak.data.DAO
+
 
+
existQuery(String) - Static method in class org.loklak.data.DAO
+
 
+
exists(String) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
exists(String) - Method in interface org.loklak.data.IndexFactory
+
 
+
existsBulk(Collection<String>) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
existsBulk(Collection<String>) - Method in interface org.loklak.data.IndexFactory
+
 
+
existsCache(String) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
existsCache(String) - Method in interface org.loklak.data.IndexFactory
+
 
+
existUser(String) - Static method in class org.loklak.data.DAO
+
 
+
expected_next - Variable in class org.loklak.objects.QueryEntry
+
 
+
exportImage(BufferedImage, String) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
exportPng() - Method in class org.loklak.graphics.RasterPlotter
+
 
+
ext2mime(String) - Static method in class org.loklak.tools.Classification
+
 
+
ext2mime(String, String) - Static method in class org.loklak.tools.Classification
+
 
+
extend(GeoLocation) - Method in class org.loklak.geo.GeoNames.CountryBounds
+
 
+
extra - Variable in class org.loklak.harvester.BaseScraper
+
 
+
extract(JSONObject) - Method in class org.loklak.susi.SusiTransfer
+
+
transfer mappings can be used to extract specific information from a json object to + create a new json object.
+
+
extractMessages(JSONObject) - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
extractMessages(JSONObject) - Method in class org.loklak.api.iot.FossasiaPushServlet
+
 
+
extractMessages(JSONObject) - Method in class org.loklak.api.iot.FreifunkNodePushServlet
+
 
+
extractMessages(JSONObject) - Method in class org.loklak.api.iot.NodelistPushServlet
+
 
+
extractMessages(JSONObject) - Method in class org.loklak.api.iot.OpenWifiMapPushServlet
+
 
+
+ + + +

F

+
+
fastFingerprintHex(File, boolean) - Static method in class org.loklak.tools.Digest
+
 
+
fastFingerprintRaw(File, boolean) - Static method in class org.loklak.tools.Digest
+
+
the fast fingerprint computes a md5-like hash from a given file, + which is different from a md5 because it does not read the complete file + but reads only the first and last megabyte of it.
+
+
favourites_count - Variable in class org.loklak.objects.MessageEntry
+
 
+
Feature() - Constructor for class org.loklak.geo.GeoJsonReader.Feature
+
 
+
Feature(JsonParser) - Constructor for class org.loklak.geo.GeoJsonReader.Feature
+
 
+
feature_type - Variable in class org.loklak.geo.GeoJsonReader.Feature
+
 
+
featureCount(T, K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the number of occurrences of the given feature in the given + category.
+
+
featureProbability(T, K) - Method in class org.loklak.tools.bayes.Classifier
+
featureWeighedAverage(T, K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the weighed average P(feature|category) with + overall weight of 1.0 and an assumed probability of + 0.5.
+
+
featureWeighedAverage(T, K, Classifier<T, K>) - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the weighed average P(feature|category) with + overall weight of 1.0, an assumed probability of + 0.5 and the given object to use for probability calculation.
+
+
featureWeighedAverage(T, K, Classifier<T, K>, float) - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the weighed average P(feature|category) with + the given weight and an assumed probability of 0.5 and the + given object to use for probability calculation.
+
+
featureWeighedAverage(T, K, Classifier<T, K>, float, float) - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the weighed average P(feature|category) with + the given weight, the given assumed probability and the given object to + use for probability calculation.
+
+
fetchResults(String, String) - Static method in class org.loklak.api.amazon.AmazonProductService
+
 
+
fetchTwitterVideos(String) - Static method in class org.loklak.harvester.TwitterScraper
+
 
+
field_appearance_first - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_appearance_latest - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_name - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_profile_image - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_profile_image_url_http - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_profile_image_url_https - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_screen_name - Static variable in class org.loklak.objects.UserEntry
+
 
+
field_user_id - Static variable in class org.loklak.objects.UserEntry
+
 
+
FIELDS_TO_COMPARE - Static variable in class org.loklak.api.iot.PushServletHelper
+
 
+
FileHandler - Class in org.loklak.server
+
 
+
FileHandler(int) - Constructor for class org.loklak.server.FileHandler
+
+
cerate a custom ResourceHandler with more caching
+
+
fileType - Variable in class org.loklak.http.RemoteAccess.FileTypeEncoding
+
 
+
finalize() - Method in class org.loklak.data.ElasticsearchClient
+
+
A finalize method is added to ensure that close() is always called.
+
+
finalize() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
finalize() - Method in class org.loklak.server.Query
+
 
+
fixed - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
fixQueryMistakes(String) - Static method in class org.loklak.objects.QueryEntry
+
+
fixing a query mistake covers most common wrong queries from the user
+
+
followers_dump - Static variable in class org.loklak.data.DAO
+
 
+
FOLLOWERS_DUMP_FILE_PREFIX - Static variable in class org.loklak.data.DAO
+
 
+
following_dump - Static variable in class org.loklak.data.DAO
+
 
+
FOLLOWING_DUMP_FILE_PREFIX - Static variable in class org.loklak.data.DAO
+
 
+
force(GraphPlotter.Point, GraphPlotter.Point, GraphPlotter.Point, GraphPlotter.Ribbon) - Static method in class org.loklak.graphics.GraphPlotter
+
 
+
forgetWord(String) - Method in enum org.loklak.data.Classifier.Context
+
 
+
FORMAT_ANSIC - Static variable in class org.loklak.rss.RSSMessage
+
 
+
FORMAT_RFC1036 - Static variable in class org.loklak.rss.RSSMessage
+
 
+
FORMAT_RFC1123 - Static variable in class org.loklak.rss.RSSMessage
+
 
+
FossasiaPushServlet - Class in org.loklak.api.iot
+
 
+
FossasiaPushServlet() - Constructor for class org.loklak.api.iot.FossasiaPushServlet
+
 
+
Frame(BufferedImage, int) - Constructor for class org.loklak.graphics.AnimationPlotter.Frame
+
 
+
FreifunkNodeFetchServlet - Class in org.loklak.api.iot
+
 
+
FreifunkNodeFetchServlet() - Constructor for class org.loklak.api.iot.FreifunkNodeFetchServlet
+
 
+
FreifunkNodePushServlet - Class in org.loklak.api.iot
+
 
+
FreifunkNodePushServlet() - Constructor for class org.loklak.api.iot.FreifunkNodePushServlet
+
 
+
full() - Method in class org.loklak.tools.CacheMap
+
 
+
full() - Method in class org.loklak.tools.CacheSet
+
 
+
FullDateHistogram(int) - Static method in class org.loklak.data.DAO
+
 
+
fullDateHistogram(String, int, String) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
fuzzyquery(String, String, String, int, String, String, SortOrder, Date, Date, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Search the local message cache using a elasticsearch query.
+
+
+ + + +

G

+
+
GenericJSONBuilder() - Constructor for class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
 
+
GeocodeServlet - Class in org.loklak.api.geo
+
+
geocoding of places into locations + test: + http://localhost:9000/api/geocode.json?data={%22places%22:[%22Frankfurt%20am%20Main%22,%22New%20York%22,%22Singapore%22]} + for reverse geocoding, try + http://localhost:9000/api/geocode.json?data={%22places%22:[%22iPhone:%2037.313690,-122.022911%22,%22%C3%9CT:%2019.109458,72.825842%22]}
+
+
GeocodeServlet() - Constructor for class org.loklak.api.geo.GeocodeServlet
+
 
+
GeoJsonPushServlet - Class in org.loklak.api.iot
+
 
+
GeoJsonPushServlet() - Constructor for class org.loklak.api.iot.GeoJsonPushServlet
+
 
+
GeoJsonReader - Class in org.loklak.geo
+
+
High-efficient GeoJson parser (high-efficient because it is able to handle very large input files, much larger than + the main memory can hold (i.e.
+
+
GeoJsonReader(InputStream, int) - Constructor for class org.loklak.geo.GeoJsonReader
+
 
+
GeoJsonReader.Feature - Class in org.loklak.geo
+
 
+
GeoLocation - Class in org.loklak.geo
+
 
+
GeoLocation(double, double, Collection<String>, String) - Constructor for class org.loklak.geo.GeoLocation
+
 
+
GeoMark - Class in org.loklak.geo
+
 
+
GeoMark(GeoLocation, double, double) - Constructor for class org.loklak.geo.GeoMark
+
 
+
GeoMark(GeoLocation, String) - Constructor for class org.loklak.geo.GeoMark
+
 
+
geometry_type - Variable in class org.loklak.geo.GeoJsonReader.Feature
+
 
+
geoNames - Static variable in class org.loklak.data.DAO
+
 
+
GeoNames - Class in org.loklak.geo
+
 
+
GeoNames(File, File, long) - Constructor for class org.loklak.geo.GeoNames
+
 
+
GeoNames.CountryBounds - Class in org.loklak.geo
+
 
+
GeoPoint - Interface in org.loklak.geo
+
+
Geolocation storage may vary using different data structures for the points.
+
+
get(int) - Method in class org.json.JSONArray
+
+
Get the object value associated with an index.
+
+
get(String) - Method in class org.json.JSONObject
+
+
Get the value object associated with a key.
+
+
get() - Method in class org.loklak.graphics.AnimationGIF
+
+
produce the gif image as byte array
+
+
get(String) - Method in class org.loklak.harvester.WeiboInfoScraper
+
 
+
get(String) - Method in class org.loklak.server.Authentication
+
+
Get a value from the internal JSONObject
+
+
get(String, String) - Method in class org.loklak.server.Query
+
 
+
get(String, String[], String) - Method in class org.loklak.server.Query
+
 
+
get(String, int) - Method in class org.loklak.server.Query
+
 
+
get(String, long) - Method in class org.loklak.server.Query
+
 
+
get(String, double) - Method in class org.loklak.server.Query
+
 
+
get(String, boolean) - Method in class org.loklak.server.Query
+
 
+
get(String, Date, int) - Method in class org.loklak.server.Query
+
 
+
get(K) - Method in class org.loklak.tools.CacheMap
+
 
+
get(String, String) - Method in class org.loklak.tools.storage.JsonDataset
+
 
+
getAccessFrom() - Method in class org.loklak.server.ClientService
+
 
+
getAccessTime() - Method in class org.loklak.http.RemoteAccess
+
 
+
getAccessTime() - Method in class org.loklak.objects.Timeline
+
 
+
getAccessTime() - Method in class org.loklak.objects.Timeline2
+
 
+
getAccessTime() - Method in class org.loklak.server.Query
+
 
+
getAccessUntil() - Method in class org.loklak.server.ClientService
+
 
+
getAccounting() - Method in class org.loklak.server.Authorization
+
 
+
getActiveStatus() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getAggregations() - Method in class org.loklak.data.DAO.SearchLocalMessages
+
 
+
getAggregationsJsonByCountry(HashMap<String, HashMap<String, HashMap<String, Double>>>) - Static method in class org.loklak.api.aggregation.ClassifierServlet
+
 
+
getAllowedClassifiers() - Static method in class org.loklak.api.aggregation.ClassifierServlet
+
 
+
getAPIPath() - Method in class org.loklak.api.admin.StatusService
+
 
+
getAPIPath() - Method in class org.loklak.api.aggregation.ClassifierServlet
+
 
+
getAPIPath() - Method in class org.loklak.api.amazon.AmazonProductService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.AccountService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.AppsService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.AuthorizationDemoService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.InstallationPageService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.LoginService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.PasswordRecoveryService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.PasswordResetService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.PublicKeyRegistrationService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.SettingsManagementService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.SignUpService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.TopMenuService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.TwitterAnalysisService
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.UserAccountPermissions
+
 
+
getAPIPath() - Method in class org.loklak.api.cms.UserManagementService
+
 
+
getAPIPath() - Method in class org.loklak.api.p2p.HelloService
+
 
+
getAPIPath() - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
getAPIPath() - Method in interface org.loklak.server.APIHandler
+
 
+
getAppearanceFirst() - Method in class org.loklak.objects.UserEntry
+
 
+
getAppearanceLatest() - Method in class org.loklak.objects.UserEntry
+
 
+
getApps() - Method in class org.loklak.objects.AccountEntry
+
 
+
getAppTwitterFactory() - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getAssetFile(String, String, String) - Static method in class org.loklak.data.DAO
+
 
+
getAudio() - Method in class org.loklak.objects.MessageEntry
+
 
+
getAuthenticationFirst() - Method in class org.loklak.objects.AccountEntry
+
 
+
getAuthenticationLatest() - Method in class org.loklak.objects.AccountEntry
+
 
+
getAuthor() - Method in class org.loklak.rss.RSSMessage
+
 
+
getBackendPeers() - Static method in class org.loklak.data.DAO
+
 
+
getBaseUserRole() - Method in class org.loklak.server.Authorization
+
 
+
getBaseUserRole() - Method in class org.loklak.server.UserRole
+
 
+
getBigDecimal(int) - Method in class org.json.JSONArray
+
+
Get the BigDecimal value associated with an index.
+
+
getBigDecimal(String) - Method in class org.json.JSONObject
+
+
Get the BigDecimal value associated with a key.
+
+
getBigInteger(int) - Method in class org.json.JSONArray
+
+
Get the BigInteger value associated with an index.
+
+
getBigInteger(String) - Method in class org.json.JSONObject
+
+
Get the BigInteger value associated with a key.
+
+
getBoolean(int) - Method in class org.json.JSONArray
+
+
Get the boolean value associated with an index.
+
+
getBoolean(String) - Method in class org.json.JSONObject
+
+
Get the boolean value associated with a key.
+
+
getBoolean(String) - Method in class org.loklak.server.Authentication
+
+
Get a boolean form the internal JSONObject
+
+
getBoolean(String, boolean) - Method in class org.loklak.server.Authentication
+
+
Get a boolean form the internal JSONObject
+
+
getBoolean(String, boolean) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getBottomTweet() - Method in class org.loklak.objects.Timeline
+
 
+
getBottomTweet() - Method in class org.loklak.objects.Timeline2
+
 
+
getBufferShard() - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getBufferShardCount() - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getBytes(String) - Static method in class org.loklak.tools.ASCII
+
 
+
getBytes(String, int, int) - Static method in class org.loklak.tools.ASCII
+
 
+
getBytes() - Method in class org.loklak.tools.ByteBuffer
+
 
+
getBytes(int, int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
getBytes(String) - Static method in class org.loklak.tools.UTF8
+
+
getBytes() as method for String synchronizes during the look-up for the + Charset object for the default charset as given with a default charset name.
+
+
getBytes(StringBuilder) - Static method in class org.loklak.tools.UTF8
+
 
+
getCard() - Method in enum org.loklak.data.Campaigns.State
+
 
+
getCategories() - Method in class org.loklak.tools.bayes.Classifier
+
+
Returns a Set of categories the classifier knows about.
+
+
getCategoriesTotal() - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the total number of categories the classifier knows about.
+
+
getCategory() - Method in class org.loklak.rss.RSSMessage
+
 
+
getCategory() - Method in class org.loklak.tools.bayes.Classification
+
+
Retrieves the category the featureset was classified as.
+
+
getChannel() - Method in class org.loklak.rss.RSSFeed
+
 
+
getChart(JSONObject, boolean, boolean) - Method in class org.loklak.api.vis.PieChartServlet
+
 
+
getClassifier(Classifier.Context) - Method in class org.loklak.objects.MessageEntry
+
 
+
getClassifierProbability(Classifier.Context) - Method in class org.loklak.objects.MessageEntry
+
 
+
getClientHost() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
getClientHost() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getClientHost() - Method in class org.loklak.server.Query
+
 
+
getClusterStatsNodes() - Method in class org.loklak.data.ElasticsearchClient
+
 
+
getCombinedTiles(OSMTile.TileCoordinates, int, int) - Static method in class org.loklak.geo.OSMTile
+
+
generate a image according to a given coordinate of a middle tile + and a width and height of tile numbers.
+
+
getConcurrency() - Method in class org.loklak.tools.storage.JsonRandomAccessFile
+
 
+
getConcurrency() - Method in interface org.loklak.tools.storage.JsonReader
+
 
+
getConcurrency() - Method in class org.loklak.tools.storage.JsonStreamReader
+
 
+
getConfig(String, String) - Static method in class org.loklak.data.DAO
+
+
get values from
+
+
getConfig(String, String[], String) - Static method in class org.loklak.data.DAO
+
 
+
getConfig(String, long) - Static method in class org.loklak.data.DAO
+
 
+
getConfig(String, double) - Static method in class org.loklak.data.DAO
+
 
+
getConfig(String, int) - Static method in class org.loklak.data.DAO
+
 
+
getConfig(String, boolean) - Static method in class org.loklak.data.DAO
+
 
+
getConfigKeys() - Static method in class org.loklak.data.DAO
+
 
+
getContentDomainFromExt(String) - Static method in class org.loklak.tools.Classification
+
+
Get the content domain of a document according to the file extension.
+
+
getContentDomainFromMime(String) - Static method in class org.loklak.tools.Classification
+
+
Get the content domain of a document according to the mime type.
+
+
getConversionSchema() - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
getConversionSchema() - Method in class org.loklak.api.iot.FossasiaPushServlet
+
 
+
getConversionSchema() - Method in class org.loklak.api.iot.FreifunkNodePushServlet
+
 
+
getConversionSchema() - Method in class org.loklak.api.iot.NodelistPushServlet
+
 
+
getConversionSchema() - Method in class org.loklak.api.iot.OpenWifiMapPushServlet
+
 
+
getConversionSchema(String) - Static method in class org.loklak.data.DAO
+
 
+
getCopyright() - Method in class org.loklak.rss.RSSMessage
+
 
+
getCount() - Method in class org.loklak.susi.SusiThought
+
+
The number of information pieces in a set of informations may have a count.
+
+
getCountryCenter(String) - Method in class org.loklak.geo.GeoNames
+
 
+
getCountryName(String) - Method in class org.loklak.geo.GeoNames
+
 
+
getCreated() - Method in class org.loklak.data.ElasticsearchClient.BulkWriteResult
+
 
+
getCreatedAt() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getCreatedAt() - Method in class org.loklak.objects.MessageEntry
+
 
+
getCreationDate() - Method in class org.loklak.data.Campaign
+
 
+
getCursor() - Method in class org.loklak.objects.Timeline
+
+
gets the outer bound of the tweets returned to the user so far
+
+
getCursor() - Method in class org.loklak.objects.Timeline2
+
+
gets the outer bound of the tweets returned to the user so far
+
+
getCustomClosableHttpClient(boolean) - Static method in class org.loklak.http.ClientConnection
+
 
+
getData() - Method in class org.loklak.harvester.BaseScraper
+
 
+
getData() - Method in class org.loklak.susi.SusiThought
+
+
Information contained in this thought can get returned as a table, a set of information pieces.
+
+
getDataFromConnection(String, String) - Method in class org.loklak.harvester.BaseScraper
+
 
+
getDataFromConnection(String) - Method in class org.loklak.harvester.BaseScraper
+
 
+
getDataFromConnection() - Method in class org.loklak.harvester.BaseScraper
+
 
+
getDataFromConnection() - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
getDate() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
getDefaultKaizenQueries(int) - Static method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.admin.StatusService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.aggregation.ClassifierServlet
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.amazon.AmazonProductService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.AccountService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.AppsService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.AuthorizationDemoService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.InstallationPageService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.LoginService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.PasswordRecoveryService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.PasswordResetService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.PublicKeyRegistrationService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.SettingsManagementService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.SignUpService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.TopMenuService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.TwitterAnalysisService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.UserAccountPermissions
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.cms.UserManagementService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.api.p2p.HelloService
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
getDefaultPermissions(BaseUserRole) - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
getDefaultPermissions(BaseUserRole) - Method in interface org.loklak.server.APIHandler
+
 
+
getDefaultUserRole(BaseUserRole) - Method in class org.loklak.server.UserRoles
+
 
+
getDescriptions() - Method in class org.loklak.rss.RSSMessage
+
 
+
getDisplayName() - Method in class org.loklak.server.UserRole
+
 
+
getDocs() - Method in class org.loklak.rss.RSSMessage
+
 
+
getDomain() - Method in interface org.loklak.data.Insertable
+
 
+
getDouble(int) - Method in class org.json.JSONArray
+
+
Get the double value associated with an index.
+
+
getDouble(String) - Method in class org.json.JSONObject
+
+
Get the double value associated with a key.
+
+
getDouble(String, double) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getDumpDir() - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getDumpReader(File) - Method in class org.loklak.tools.storage.JsonRepository
+
+
create a concurrent dump reader for the given file.
+
+
getEdges(String, boolean) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
getEndTime() - Method in class org.loklak.data.Campaign
+
 
+
getEnum(Class<E>, int) - Method in class org.json.JSONArray
+
+
Get the enum value associated with an index.
+
+
getEnum(Class<E>, String) - Method in class org.json.JSONObject
+
+
Get the enum value associated with a key.
+
+
getErrorCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
getErrors() - Method in class org.loklak.data.ElasticsearchClient.BulkWriteResult
+
 
+
getExistStats() - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
getExpectedNext() - Method in class org.loklak.objects.QueryEntry
+
 
+
getExtraField() - Method in interface org.loklak.data.Insertable
+
 
+
getExtraValue(String) - Method in class org.loklak.harvester.BaseScraper
+
 
+
getFavouritesCount() - Method in class org.loklak.objects.MessageEntry
+
 
+
getFeatures() - Method in class org.loklak.tools.bayes.Classifier
+
+
Returns a Set of features the classifier knows about.
+
+
getFeatureset() - Method in class org.loklak.tools.bayes.Classification
+
+
Retrieves the featureset classified.
+
+
getFile() - Method in class org.loklak.tools.storage.JsonFile
+
 
+
getFile() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
+
 
+
getFilename() - Method in enum org.loklak.harvester.JsonFieldConverter.JsonConversionSchemaEnum
+
 
+
getFilename() - Method in enum org.loklak.harvester.JsonValidator.JsonSchemaEnum
+
 
+
getFilePointer() - Method in class org.loklak.tools.BufferedRandomAccessFile
+
+
Returns the current position of the pointer in the file.
+
+
getFileType(HttpServletRequest) - Static method in class org.loklak.http.RemoteAccess
+
 
+
getFollowerIdRemaining() - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getFollowersNames(String, int) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getFollowingIdRemaining() - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getFollowingNames(String, int) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getFrequency() - Method in enum org.loklak.harvester.HarvestingFrequency
+
 
+
getFrontPeers() - Static method in class org.loklak.data.DAO
+
+
from all known front peers, generate a list of available peers, ordered by the peer latency
+
+
getFulltext() - Method in class org.loklak.rss.RSSMessage
+
 
+
getGuid() - Method in class org.loklak.rss.RSSMessage
+
 
+
getHarvestingFreq() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getHash(String, String) - Static method in class org.loklak.server.AbstractAPIHandler
+
+
Create a hash for an input an salt
+
+
getHashtags() - Method in class org.loklak.objects.MessageEntry
+
 
+
getHeight() - Method in class org.loklak.graphics.RasterPlotter
+
 
+
getHit() - Method in class org.loklak.tools.CacheStats
+
 
+
getHits() - Method in class org.loklak.objects.ResultList
+
+
get the number of total hits
+
+
getHits() - Method in class org.loklak.objects.Timeline
+
 
+
getHits() - Method in class org.loklak.objects.Timeline2
+
 
+
getHits() - Method in class org.loklak.susi.SusiThought
+
 
+
getHosts() - Method in class org.loklak.objects.MessageEntry
+
 
+
getHtml(ClientConnection) - Method in class org.loklak.harvester.BaseScraper
+
 
+
getHTML(HttpEntity) - Static method in class org.loklak.http.ClientConnection
+
+
Get body of HttpEntity as String
+
+
getID() - Method in class org.loklak.data.Campaign
+
 
+
getId() - Method in class org.loklak.data.IndexEntry
+
 
+
getId() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getId() - Method in class org.loklak.objects.MessageEntry
+
 
+
getIdentity(HttpServletRequest, HttpServletResponse, Query) - Static method in class org.loklak.server.AbstractAPIHandler
+
+
Checks a request for valid login data, either a existing session, a cookie or an access token
+
+
getIdentity() - Method in class org.loklak.server.Authentication
+
+
Get the associated ClientIdentity
+
+
getIdentity() - Method in class org.loklak.server.Authorization
+
 
+
getImage() - Method in class org.loklak.graphics.RasterPlotter
+
 
+
getImage() - Method in class org.loklak.rss.RSSFeed
+
 
+
getImages() - Method in class org.loklak.objects.MessageEntry
+
 
+
getImportDumps(int) - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getImported() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getImportedDumps(int) - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getImporter() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getImportProfile() - Method in class org.loklak.api.iot.PushReport
+
 
+
getIndex() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.JsonHandle
+
 
+
getIndex() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
+
 
+
getInstance(String, String, String, String) - Static method in class org.loklak.api.amazon.SignedRequestsHelper
+
+
You must provide the three values below to initialize the helper.
+
+
getInt(int) - Method in class org.json.JSONArray
+
+
Get the int value associated with an index.
+
+
getInt(String) - Method in class org.json.JSONObject
+
+
Get the int value associated with a key.
+
+
getInt(String, int) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getISO3166cc() - Method in class org.loklak.geo.GeoLocation
+
 
+
getJSON() - Method in class org.loklak.tools.CacheStats
+
 
+
getJSON() - Method in interface org.loklak.tools.storage.JsonFactory
+
 
+
getJSON() - Method in class org.loklak.tools.storage.JsonMinifier.JsonCapsuleFactory
+
 
+
getJSON() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.JsonHandle
+
 
+
getJSON() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
+
 
+
getJSON() - Method in class org.loklak.tools.storage.JsonStreamReader.WrapperJsonFactory
+
 
+
getJSONArray(int) - Method in class org.json.JSONArray
+
+
Get the JSONArray associated with an index.
+
+
getJSONArray(String) - Method in class org.json.JSONObject
+
+
Get the JSONArray value associated with a key.
+
+
getJSONArray(String, JSONArray) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getJsonFactory(long, int) - Method in class org.loklak.tools.storage.JsonRandomAccessFile
+
 
+
getJSONObject(int) - Method in class org.json.JSONArray
+
+
Get the JSONObject associated with an index.
+
+
getJSONObject(String) - Method in class org.json.JSONObject
+
+
Get the JSONObject value associated with a key.
+
+
getJSONObject(String, JSONObject) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getJSONObject(String) - Method in class org.loklak.tools.storage.JsonTray
+
 
+
getJSONObjectWithDefault(String, JSONObjectWithDefault) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getKey() - Method in class org.loklak.server.Client
+
 
+
getKeyAlgorithm() - Method in class org.loklak.server.Settings
+
+
Get the key algorithm e.g.
+
+
getKeyAsString(Key) - Static method in class org.loklak.tools.IO
+
+
Get String representation of a key
+
+
getKeyHash(PublicKey, String) - Static method in class org.loklak.tools.IO
+
+
Create hash for a key
+
+
getKeyHash(PublicKey) - Static method in class org.loklak.tools.IO
+
+
Create hash for a key, use default algorithm SHA-256
+
+
getKeys() - Method in class org.loklak.server.Query
+
 
+
getKnownCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
getKnownMessageIds() - Method in class org.loklak.api.iot.PushReport
+
 
+
getLanguage() - Method in class org.loklak.rss.RSSMessage
+
 
+
getLargestCity(double, double, double, double) - Method in class org.loklak.geo.GeoNames
+
 
+
getLastHarvested() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getLastModified() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getLat() - Method in class org.loklak.rss.RSSMessage
+
 
+
getLength() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.JsonHandle
+
 
+
getLength() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
+
 
+
getLifetime() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getLink() - Method in class org.loklak.rss.RSSMessage
+
 
+
getLinks() - Method in class org.loklak.objects.MessageEntry
+
 
+
getLinks() - Method in class org.loklak.rss.RSSFeed
+
 
+
getLocalHTTPPort() - Method in class org.loklak.http.RemoteAccess
+
 
+
getLocalHTTPSPort() - Method in class org.loklak.http.RemoteAccess
+
 
+
getLocalPath() - Method in class org.loklak.http.RemoteAccess
+
 
+
getLocationHeader(HttpResponse) - Static method in class org.loklak.http.ClientConnection
+
+
Find value of location header from the given HttpResponse
+
+
getLocationMark() - Method in class org.loklak.objects.MessageEntry
+
 
+
getLocationPoint() - Method in class org.loklak.objects.MessageEntry
+
 
+
getLocationRadius() - Method in class org.loklak.objects.MessageEntry
+
+
get the radius in meter
+
+
getLocationSource() - Method in class org.loklak.objects.MessageEntry
+
 
+
getLon() - Method in class org.loklak.rss.RSSMessage
+
 
+
getLong(int) - Method in class org.json.JSONArray
+
+
Get the long value associated with an index.
+
+
getLong(String) - Method in class org.json.JSONObject
+
+
Get the long value associated with a key.
+
+
getLong(String, long) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getMap(GetResponse) - Static method in class org.loklak.data.ElasticsearchClient
+
 
+
getMap() - Method in class org.loklak.server.Query
+
 
+
getMap() - Method in class org.loklak.tools.CacheMap
+
 
+
getMaxSize() - Method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
getMaxSize() - Method in class org.loklak.harvester.strategy.PriorityKaizenHarvester.PriorityKaizenQueries
+
 
+
getMemoryCapacity() - Method in class org.loklak.tools.bayes.Classifier
+
+
Retrieves the memory's capacity.
+
+
getMentions() - Method in class org.loklak.objects.MessageEntry
+
 
+
getMessage(String) - Method in class org.loklak.rss.RSSFeed
+
 
+
getMessageFieldName() - Method in enum org.loklak.objects.Timeline.Order
+
 
+
getMessageFieldName() - Method in enum org.loklak.objects.Timeline2.Order
+
 
+
getMessageFieldType() - Method in enum org.loklak.objects.Timeline.Order
+
 
+
getMessageFieldType() - Method in enum org.loklak.objects.Timeline2.Order
+
 
+
getMessageQueueClients() - Static method in class org.loklak.data.IncomingMessageBuffer
+
 
+
getMessageQueueMaxSize() - Static method in class org.loklak.data.IncomingMessageBuffer
+
 
+
getMessageQueueSize() - Static method in class org.loklak.data.IncomingMessageBuffer
+
 
+
getMessagesPerDay() - Method in class org.loklak.objects.QueryEntry
+
 
+
getMetaRedirectURL(HttpEntity) - Static method in class org.loklak.http.ClientConnection
+
+
Get redirect URL from Meta tag in response body
+
+
getMinimalBaseUserRole() - Method in class org.loklak.api.admin.StatusService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.aggregation.ClassifierServlet
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.amazon.AmazonProductService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.AccountService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.AppsService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.AuthorizationDemoService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.InstallationPageService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.LoginService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.PasswordRecoveryService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.PasswordResetService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.PublicKeyRegistrationService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.SettingsManagementService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.SignUpService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.TopMenuService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.TwitterAnalysisService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.UserAccountPermissions
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.cms.UserManagementService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.api.p2p.HelloService
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
getMinimalBaseUserRole() - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
getMinimalBaseUserRole() - Method in interface org.loklak.server.APIHandler
+
 
+
getMiss() - Method in class org.loklak.tools.CacheStats
+
 
+
getMode() - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getName() - Method in class org.loklak.data.Campaign
+
 
+
getName() - Method in class org.loklak.objects.UserEntry
+
 
+
getName() - Method in class org.loklak.server.Client
+
 
+
getName() - Method in class org.loklak.server.UserRole
+
 
+
getName() - Method in class org.loklak.tools.storage.JsonRandomAccessFile
+
 
+
getName() - Method in interface org.loklak.tools.storage.JsonReader
+
 
+
getName() - Method in class org.loklak.tools.storage.JsonStreamReader
+
 
+
getNames(JSONObject) - Static method in class org.json.JSONObject
+
+
Get an array of field names from a JSONObject.
+
+
getNames(Object) - Static method in class org.json.JSONObject
+
+
Get an array of field names from an Object.
+
+
getNames() - Method in class org.loklak.geo.GeoLocation
+
 
+
getNetwork(String, int, int) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getNetworkerNames(String, int, TwitterAPI.Networker) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getNewCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
getNewUserIdsChunk() - Static method in class org.loklak.data.DAO
+
 
+
getNextTweets(int, int) - Method in class org.loklak.objects.Timeline
+
 
+
getNextTweets(int, int) - Method in class org.loklak.objects.Timeline2
+
 
+
getNode(String) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
getOauthToken() - Method in class org.loklak.objects.AccountEntry
+
 
+
getOauthTokenSecret() - Method in class org.loklak.objects.AccountEntry
+
 
+
getObject() - Method in class org.loklak.data.IndexEntry
+
 
+
getObjectStats() - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
getOffset() - Method in class org.loklak.susi.SusiThought
+
 
+
getOn() - Method in class org.loklak.objects.MessageEntry
+
 
+
getOrCreate(String, String, String, String, List<String>) - Static method in class org.loklak.api.aggregation.ClassifierServletCache
+
 
+
getOrCreate(String, String, String, String, List<String>, List<String>) - Static method in class org.loklak.api.aggregation.ClassifierServletCache
+
 
+
getOrCreate(ClientIdentity, String, boolean, Timeline.Order) - Method in class org.loklak.objects.TimelineCache
+
 
+
getOrder(String) - Static method in class org.loklak.data.DAO
+
 
+
getOrder() - Method in class org.loklak.objects.Timeline
+
 
+
getOrder() - Method in class org.loklak.objects.Timeline2
+
 
+
getOwnDumps(int) - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
getParent() - Method in class org.loklak.server.UserRole
+
 
+
getPeerHash() - Method in class org.loklak.server.Settings
+
+
Get the hash of the public key
+
+
getPeerHashAlgorithm() - Method in class org.loklak.server.Settings
+
+
Get the hash algorithm for the public key
+
+
getPeername() - Method in class org.loklak.http.RemoteAccess
+
 
+
getPermissionOverrides() - Method in class org.loklak.server.Authorization
+
 
+
getPermissionOverrides() - Method in class org.loklak.server.UserRole
+
 
+
getPermissionOverrides(String) - Method in class org.loklak.server.UserRole
+
 
+
getPermissionOverrides(APIHandler) - Method in class org.loklak.server.UserRole
+
 
+
getPermissions(APIHandler) - Method in class org.loklak.server.Authorization
+
 
+
getPermissions(APIHandler) - Method in class org.loklak.server.UserRole
+
 
+
getPersistent() - Method in class org.loklak.tools.storage.JsonTray
+
 
+
getPID() - Static method in class org.loklak.tools.OS
+
+
use a hack to get the current process PID
+
+
getPixel(int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
getPixel(int, int, int[]) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
getPlaceContext() - Method in class org.loklak.objects.MessageEntry
+
 
+
getPlaceId() - Method in class org.loklak.objects.MessageEntry
+
 
+
getPlaceName() - Method in class org.loklak.objects.MessageEntry
+
 
+
getPopulation() - Method in class org.loklak.geo.GeoLocation
+
 
+
getPos() - Method in class org.loklak.tools.BufferedRandomAccessFile.IndexedLine
+
 
+
getPostId() - Method in class org.loklak.harvester.Post
+
 
+
getPostId() - Method in class org.loklak.objects.MessageEntry
+
 
+
getPostMap(HttpServletRequest) - Static method in class org.loklak.http.RemoteAccess
+
 
+
getPrivacyStatus() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getPrivateKey() - Method in class org.loklak.server.Settings
+
+
Get the private key as PrivateKey
+
+
getPrivateKeyAsString() - Method in class org.loklak.server.Settings
+
+
Get the private key as String
+
+
getProbability() - Method in class org.loklak.tools.bayes.Classification
+
+
Retrieves the classification's probability.
+
+
getProcessCpuLoad() - Static method in class org.loklak.tools.OS
+
 
+
getProfileImage() - Method in class org.loklak.objects.UserEntry
+
 
+
getProfileImageUrl() - Method in class org.loklak.objects.UserEntry
+
 
+
getProviderHash() - Method in class org.loklak.objects.MessageEntry
+
 
+
getProviderType() - Method in class org.loklak.objects.MessageEntry
+
 
+
getPubDate() - Method in class org.loklak.rss.RSSMessage
+
 
+
getPublicKey() - Method in class org.loklak.server.Settings
+
+
Get the public key as PublicKey
+
+
getPublicKeyAsString() - Method in class org.loklak.server.Settings
+
+
Get the public key as String
+
+
getQuery() - Method in class org.loklak.data.Campaign
+
 
+
getQuery() - Method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
getQuery() - Method in class org.loklak.harvester.strategy.PriorityKaizenHarvester.PriorityKaizenQueries
+
 
+
getQuery() - Method in class org.loklak.objects.QueryEntry
+
 
+
getQuery() - Method in class org.loklak.objects.Timeline
+
 
+
getQuery() - Method in class org.loklak.objects.Timeline2
+
 
+
getQuery() - Method in class org.loklak.susi.SusiThought
+
 
+
getQueryCount() - Method in class org.loklak.objects.QueryEntry
+
 
+
getQueryFirst() - Method in class org.loklak.objects.QueryEntry
+
 
+
getQueryLast() - Method in class org.loklak.objects.QueryEntry
+
 
+
getQueryLength() - Method in class org.loklak.objects.QueryEntry
+
 
+
getQueryMap(String) - Static method in class org.loklak.http.RemoteAccess
+
 
+
getRateLimitStatus(String) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getRecordCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
getRedirect(String, boolean, boolean) - Static method in class org.loklak.http.ClientConnection
+
+
get a redirect for an url: this method shall be called if it is expected that a url + is redirected to another url.
+
+
getRedirect(String) - Static method in class org.loklak.http.ClientConnection
+
+
get a redirect for an url: this method shall be called if it is expected that a url + is redirected to another url.
+
+
getRedirect(String, boolean) - Static method in class org.loklak.http.ClientConnection
+
 
+
getReferrer() - Method in class org.loklak.rss.RSSMessage
+
 
+
getRemoteHost() - Method in class org.loklak.http.RemoteAccess
+
 
+
getRequest() - Method in class org.loklak.server.Query
+
 
+
getRequestFrequency(String) - Method in class org.loklak.server.Authorization
+
 
+
getRequests(String) - Method in class org.loklak.server.Accounting
+
 
+
getResource(String) - Method in class org.loklak.server.FileHandler
+
 
+
getResultIndex() - Method in class org.loklak.objects.Timeline
+
 
+
getResultIndex() - Method in class org.loklak.objects.Timeline2
+
 
+
getRetrievalCount() - Method in class org.loklak.objects.QueryEntry
+
 
+
getRetrievalLast() - Method in class org.loklak.objects.QueryEntry
+
 
+
getRetrievalNext() - Method in class org.loklak.objects.QueryEntry
+
 
+
getRetweetCount() - Method in class org.loklak.objects.MessageEntry
+
 
+
getRetweetFrom() - Method in class org.loklak.objects.MessageEntry
+
 
+
getSchema(String) - Static method in class org.loklak.data.DAO
+
 
+
getSchemaFilename() - Method in enum org.loklak.data.DAO.IndexName
+
 
+
getScore(TwitterScraper.TwitterTweet) - Method in class org.loklak.harvester.strategy.KaizenHarvester
+
 
+
getScraperInfo() - Method in class org.loklak.objects.Timeline
+
 
+
getScraperInfo() - Method in class org.loklak.objects.Timeline2
+
 
+
getScraperObjects(List<String>, Map<String, String>) - Static method in class org.loklak.data.DAO
+
 
+
getScreenName(Set<Number>, int, boolean) - Static method in class org.loklak.harvester.TwitterAPI
+
+
search for twitter user names by a given set of user id's
+
+
getScreenName() - Method in class org.loklak.objects.AccountEntry
+
 
+
getScreenName() - Method in class org.loklak.objects.MessageEntry
+
 
+
getScreenName() - Method in class org.loklak.objects.UserEntry
+
 
+
getServerProtocolHostStub() - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
getServerProtocolHostStub() - Method in interface org.loklak.server.APIHandler
+
 
+
getServerThreads() - Static method in class org.loklak.LoklakServer
+
 
+
getServerURI() - Static method in class org.loklak.LoklakServer
+
 
+
getService(String) - Method in class org.loklak.server.Authorization
+
 
+
getSharers() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getSingleTile(OSMTile.TileCoordinates, int) - Static method in class org.loklak.geo.OSMTile
+
 
+
getSize() - Method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
getSize() - Method in class org.loklak.harvester.strategy.PriorityKaizenHarvester.PriorityKaizenQueries
+
 
+
getSize() - Method in class org.loklak.rss.RSSMessage
+
 
+
getSourceHash() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getSourceType() - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
getSourceType() - Method in class org.loklak.api.iot.FossasiaPushServlet
+
 
+
getSourceType() - Method in class org.loklak.api.iot.FreifunkNodePushServlet
+
 
+
getSourceType() - Method in class org.loklak.api.iot.NodelistPushServlet
+
 
+
getSourceType() - Method in class org.loklak.api.iot.OpenWifiMapPushServlet
+
 
+
getSourceType() - Method in enum org.loklak.harvester.JsonValidator.JsonSchemaEnum
+
 
+
getSourceType() - Method in class org.loklak.objects.AccountEntry
+
 
+
getSourceType() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getSourceType() - Method in class org.loklak.objects.MessageEntry
+
 
+
getSourceType() - Method in class org.loklak.objects.QueryEntry
+
 
+
getSourceUrl() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
getStartTime() - Method in class org.loklak.data.Campaign
+
 
+
getStats() - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
getStats() - Method in class org.loklak.data.ElasticsearchClient
+
+
Retrieve a statistic object from the connected elasticsearch cluster
+
+
getStats() - Method in class org.loklak.tools.CacheMap
+
 
+
getStats() - Method in class org.loklak.tools.CacheSet
+
 
+
getStatsJson() - Method in class org.loklak.tools.CacheMap
+
 
+
getStatsJson() - Method in class org.loklak.tools.CacheSet
+
 
+
getStatusCode() - Method in class org.loklak.http.ClientConnection
+
 
+
getStatusCode() - Method in exception org.loklak.server.APIException
+
 
+
getStatusIdUrl() - Method in class org.loklak.objects.MessageEntry
+
 
+
getString(int) - Method in class org.json.JSONArray
+
+
Get the string associated with an index.
+
+
getString(String) - Method in class org.json.JSONObject
+
+
Get the string associated with a key.
+
+
getString(String) - Method in class org.loklak.server.Authentication
+
+
Get a String form the internal JSONObject
+
+
getString(String, String) - Method in class org.loklak.server.Authentication
+
+
Get a String form the internal JSONObject.
+
+
getString(String, String) - Method in class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
getSubject() - Method in class org.loklak.rss.RSSMessage
+
 
+
getSystemCpuLoad() - Static method in class org.loklak.tools.OS
+
 
+
getSystemLoadAverage() - Static method in class org.loklak.tools.OS
+
 
+
getTestFile() - Static method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
getTestLines(int) - Static method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
getText() - Method in interface org.loklak.data.Insertable
+
 
+
getText() - Method in class org.loklak.objects.MessageEntry
+
 
+
getText(int, String) - Method in class org.loklak.objects.MessageEntry
+
 
+
getText() - Method in class org.loklak.tools.BufferedRandomAccessFile.IndexedLine
+
 
+
getTextLength() - Method in class org.loklak.objects.MessageEntry
+
 
+
getTimeSinceLastAccess() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
getTimeSinceLastAccess() - Method in class org.loklak.server.Query
+
 
+
getTimestamp() - Method in class org.loklak.harvester.Post
+
 
+
getTimestampDate() - Method in class org.loklak.harvester.Post
+
 
+
getTimestampDate() - Method in class org.loklak.objects.MessageEntry
+
 
+
getTimezoneOffset() - Method in class org.loklak.data.Campaign
+
 
+
getTimezoneOffset() - Method in class org.loklak.objects.QueryEntry
+
 
+
getTimezoneOffset() - Static method in class org.loklak.tools.DateParser
+
 
+
getTitle() - Method in class org.loklak.rss.RSSMessage
+
 
+
getTo() - Method in class org.loklak.objects.MessageEntry
+
 
+
getTopTweet() - Method in class org.loklak.objects.Timeline
+
 
+
getTopTweet() - Method in class org.loklak.objects.Timeline2
+
 
+
getTracks() - Method in class org.loklak.http.AccessTracker
+
 
+
getTTL() - Method in class org.loklak.rss.RSSMessage
+
 
+
getTweetOwnDumps(int) - Static method in class org.loklak.data.DAO
+
 
+
getType(String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Get the type name of a document or null if the document does not exist.
+
+
getType() - Method in class org.loklak.data.IndexEntry
+
 
+
getType() - Method in class org.loklak.objects.UserEntry
+
 
+
getType() - Method in class org.loklak.server.ClientCredential
+
 
+
getType() - Method in class org.loklak.server.ClientIdentity
+
 
+
getType() - Method in class org.loklak.server.ClientService
+
 
+
getUpdate() - Method in class org.loklak.tools.CacheStats
+
 
+
getUser(String, boolean) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getUser() - Method in class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
getUser(String) - Method in class org.loklak.objects.Timeline
+
 
+
getUser(TwitterScraper.TwitterTweet) - Method in class org.loklak.objects.Timeline
+
 
+
getUser(String) - Method in class org.loklak.objects.Timeline2
+
 
+
getUser(Post) - Method in class org.loklak.objects.Timeline2
+
 
+
getUser() - Method in class org.loklak.objects.UserEntry
+
 
+
getUserID() - Method in interface org.loklak.data.Insertable
+
 
+
getUserId() - Method in class org.loklak.objects.UserEntry
+
 
+
getUsername() - Method in interface org.loklak.data.Insertable
+
 
+
getUserRemaining() - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getUserRole() - Method in class org.loklak.server.Authorization
+
 
+
getUserRoleFromString(String) - Method in class org.loklak.server.UserRoles
+
 
+
getUserRoles() - Method in class org.loklak.server.UserRoles
+
 
+
getUserTwitterFactory(String) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
getValidatorSchema() - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
getValidatorSchema() - Method in class org.loklak.api.iot.FossasiaPushServlet
+
 
+
getValidatorSchema() - Method in class org.loklak.api.iot.FreifunkNodePushServlet
+
 
+
getValidatorSchema() - Method in class org.loklak.api.iot.NodelistPushServlet
+
 
+
getValidatorSchema() - Method in class org.loklak.api.iot.OpenWifiMapPushServlet
+
 
+
getVideos() - Method in class org.loklak.objects.MessageEntry
+
 
+
getVolatile() - Method in class org.loklak.tools.storage.JsonTray
+
 
+
getWidth() - Method in class org.loklak.graphics.RasterPlotter
+
 
+
GPSPosition() - Constructor for class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
GraphPlotter - Class in org.loklak.graphics
+
 
+
GraphPlotter() - Constructor for class org.loklak.graphics.GraphPlotter
+
 
+
GraphPlotter.Point - Class in org.loklak.graphics
+
 
+
GraphPlotter.Ribbon - Class in org.loklak.graphics
+
 
+
GREEN - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
GREY - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
gridDot(int, int, int, boolean, int) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridDot(int, int, int, int, int) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridHeight() - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridLine(int, int, int, int) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridLine(int, int, int, int, String, int, String, int, int, int, int, boolean) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridPrint(int, int, int, String, String, int, int) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridPrint315(int, int, int, String, int) - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
gridWidth() - Method in class org.loklak.graphics.HexGridPlotter
+
 
+
GT - Static variable in class org.json.XML
+
+
The Character '>'.
+
+
gunzip(File, File, boolean) - Static method in class org.loklak.tools.Compression
+
 
+
gunzip(byte[]) - Static method in class org.loklak.tools.Compression
+
 
+
gzip(File, File, boolean) - Static method in class org.loklak.tools.Compression
+
 
+
gzip(byte[]) - Static method in class org.loklak.tools.Compression
+
 
+
+ + + +

H

+
+
handle(String, Request, HttpServletRequest, HttpServletResponse) - Method in class org.loklak.server.FileHandler
+
 
+
harvest() - Method in class org.loklak.harvester.strategy.ClassicHarvester
+
 
+
harvest() - Method in interface org.loklak.harvester.strategy.Harvester
+
+
This method is in-charge of harvesting and scraping messages
+
+
harvest() - Method in class org.loklak.harvester.strategy.KaizenHarvester
+
 
+
Harvester - Interface in org.loklak.harvester.strategy
+
 
+
harvester - Static variable in class org.loklak.LoklakServer
+
 
+
harvesting_freq - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
HarvestingFrequency - Enum in org.loklak.harvester
+
 
+
has(String) - Method in class org.json.JSONObject
+
+
Determine if the JSONObject contains a specific key.
+
+
has(String) - Method in class org.loklak.server.Authentication
+
+
Check the internal JSONObject for a key
+
+
has(String) - Method in class org.loklak.server.UserRoles
+
 
+
has(String) - Method in class org.loklak.tools.storage.JsonTray
+
 
+
hasEdge(String, String) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
hashCode() - Method in class org.loklak.data.Campaign
+
 
+
hashCode() - Method in interface org.loklak.geo.GeoPoint
+
+
compute the hash code of a coordinate + this produces identical hash codes for locations that are close to each other
+
+
hashCode() - Method in class org.loklak.geo.IntegerGeoPoint
+
+
compute the hash code of a coordinate + this produces identical hash codes for locations that are close to each other
+
+
hashCode() - Method in class org.loklak.rss.RSSMessage
+
 
+
hashCode() - Method in class org.loklak.server.Query
+
 
+
hashCode() - Method in class org.loklak.tools.ASCII
+
 
+
hasNext() - Method in class org.loklak.rss.RSSFeed.messageIterator
+
 
+
hasSignature(JSONObject) - Static method in class org.loklak.tools.JsonSignature
+
 
+
hasSignature(Map<String, byte[]>) - Static method in class org.loklak.tools.JsonSignature
+
 
+
healLatency(float) - Static method in class org.loklak.data.DAO
+
 
+
height - Variable in class org.loklak.graphics.RasterPlotter
+
 
+
HelloService - Class in org.loklak.api.p2p
+
+
Servlet to span the message peer-to-peer network.
+
+
HelloService() - Constructor for class org.loklak.api.p2p.HelloService
+
 
+
HexGridPlotter - Class in org.loklak.graphics
+
 
+
HexGridPlotter(int, int, RasterPlotter.DrawMode, String, int) - Constructor for class org.loklak.graphics.HexGridPlotter
+
 
+
history - Static variable in class org.loklak.http.RemoteAccess
+
 
+
hit() - Method in class org.loklak.tools.CacheStats
+
 
+
hitCount - Variable in class org.loklak.data.ElasticsearchClient.Query
+
 
+
hostHash(String) - Static method in class org.loklak.http.RemoteAccess
+
 
+
HOUR_MILLIS - Static variable in class org.loklak.tools.DateParser
+
 
+
html - Variable in class org.loklak.harvester.BaseScraper
+
 
+
html2unicode(String) - Static method in class org.loklak.tools.CharacterCoding
+
+
Replaces HTML-encoded characters with unicode representation.
+
+
html2utf8(String) - Static method in class org.loklak.objects.MessageEntry
+
 
+
html2utf8Custom(String) - Static method in class org.loklak.objects.MessageEntry
+
 
+
html_dir - Static variable in class org.loklak.data.DAO
+
 
+
HttpsMode - Enum in org.loklak.server
+
 
+
+ + + +

I

+
+
id - Variable in class org.loklak.geo.GeoJsonReader.Feature
+
 
+
id - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
identityASCIIComparator - Static variable in class org.loklak.tools.ASCII
+
 
+
images - Variable in class org.loklak.objects.MessageEntry
+
 
+
importAccountDumps(int) - Static method in class org.loklak.data.DAO
+
 
+
imported - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
importer - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
ImportProfileEntry - Class in org.loklak.objects
+
 
+
ImportProfileEntry(JSONObject) - Constructor for class org.loklak.objects.ImportProfileEntry
+
 
+
ImportProfileEntry.EntryStatus - Enum in org.loklak.objects
+
 
+
ImportProfileEntry.PrivacyStatus - Enum in org.loklak.objects
+
 
+
ImportProfileFactory - Class in org.loklak.data
+
 
+
ImportProfileFactory(ElasticsearchClient, String, int, int) - Constructor for class org.loklak.data.ImportProfileFactory
+
 
+
ImportProfileServlet - Class in org.loklak.api.iot
+
 
+
ImportProfileServlet() - Constructor for class org.loklak.api.iot.ImportProfileServlet
+
 
+
IncomingMessageBuffer - Class in org.loklak.data
+
 
+
IncomingMessageBuffer() - Constructor for class org.loklak.data.IncomingMessageBuffer
+
 
+
increment(String) - Method in class org.json.JSONObject
+
+
Increment a property of a JSONObject.
+
+
incrementCategory(K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Increments the count of a given category.
+
+
incrementErrorCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
incrementFeature(T, K) - Method in class org.loklak.tools.bayes.Classifier
+
+
Increments the count of a given feature in the given category.
+
+
incrementKnownCount(String) - Method in class org.loklak.api.iot.PushReport
+
 
+
incrementNewCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
incrementRecordCount() - Method in class org.loklak.api.iot.PushReport
+
 
+
index_name - Variable in class org.loklak.data.AbstractIndexFactory
+
 
+
IndexedLine(long, byte[]) - Constructor for class org.loklak.tools.BufferedRandomAccessFile.IndexedLine
+
 
+
IndexEntry<IndexObject extends ObjectEntry> - Class in org.loklak.data
+
 
+
IndexEntry(String, SourceType, IndexObject) - Constructor for class org.loklak.data.IndexEntry
+
 
+
IndexFactory<Entry extends ObjectEntry> - Interface in org.loklak.data
+
 
+
indexOf(byte[], int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
indexOf(byte[], byte[], int) - Static method in class org.loklak.tools.ByteBuffer
+
 
+
indexOf(StringBuilder, char) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
indexOf(StringBuilder, int, char) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
init() - Method in class org.loklak.api.iot.AbstractPushServlet
+
 
+
init(JSONObject) - Method in class org.loklak.data.AccountFactory
+
 
+
init(int) - Method in enum org.loklak.data.Classifier.Context
+
 
+
init(int, int) - Static method in class org.loklak.data.Classifier
+
 
+
init(Map<String, String>, Path) - Static method in class org.loklak.data.DAO
+
+
initialize the DAO
+
+
init(JSONObject) - Method in class org.loklak.data.ImportProfileFactory
+
 
+
init(JSONObject) - Method in interface org.loklak.data.IndexFactory
+
 
+
init(JSONObject) - Method in class org.loklak.data.MessageFactory
+
 
+
init(JSONObject) - Method in class org.loklak.data.QueryFactory
+
 
+
init(JSONObject) - Method in class org.loklak.data.UserFactory
+
 
+
init(JSONObject) - Method in class org.loklak.objects.AccountEntry
+
 
+
init(JSONObject) - Method in class org.loklak.objects.QueryEntry
+
 
+
init(File) - Static method in class org.loklak.tools.Classification
+
 
+
initGET(Map<String, String>) - Method in class org.loklak.server.Query
+
 
+
initPOST(Map<String, byte[]>) - Method in class org.loklak.server.Query
+
+
Deprecated.
+
+
inputStream - Variable in class org.loklak.http.ClientConnection
+
 
+
inputStream2String(InputStream) - Static method in class org.loklak.http.CookieRequestManager
+
 
+
insensitive - Variable in class org.loklak.tools.ASCII
+
 
+
insensitive - Variable in class org.loklak.tools.UTF8
+
 
+
insensitiveASCIIComparator - Static variable in class org.loklak.tools.ASCII
+
 
+
insert(Insertable) - Static method in class org.loklak.data.DAOWrapper
+
 
+
Insertable - Interface in org.loklak.data
+
+
This is the interface that allow you to store data in elasticseach index + This is a lower level implemention of DAOWrapper.
+
+
insertBitmap(BufferedImage, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
inserts image
+
+
insertBitmap(BufferedImage, int, int, RasterPlotter.FilterMode) - Method in class org.loklak.graphics.RasterPlotter
+
+
inserts image
+
+
insertBitmap(BufferedImage, int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
inserts image where all pixels which have the same RGB value as the + pixel at (xx, yy) are transparent
+
+
insertBitmap(BufferedImage, int, int, int, int, RasterPlotter.FilterMode) - Method in class org.loklak.graphics.RasterPlotter
+
+
inserts image where all pixels that have the same RGB value as the + pixel at (xx, yy) are transparent
+
+
insertBitmap(BufferedImage, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
inserts image where all pixels that have the same RGB value as the + pixel at (xx, yy) are transparent
+
+
insertBitmap(BufferedImage, int, int, int, RasterPlotter.FilterMode) - Method in class org.loklak.graphics.RasterPlotter
+
+
inserts image where all pixels that have a special RGB value + pixel at (xx, yy) are transparent
+
+
InstallationPageService - Class in org.loklak.api.cms
+
 
+
InstallationPageService() - Constructor for class org.loklak.api.cms.InstallationPageService
+
 
+
IntegerGeoPoint - Class in org.loklak.geo
+
+
GeoPoint implementation with Integer accuracy
+
+
IntegerGeoPoint(double, double) - Constructor for class org.loklak.geo.IntegerGeoPoint
+
 
+
IntegerGeoPoint(int, int) - Constructor for class org.loklak.geo.IntegerGeoPoint
+
 
+
invert(int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
+
invert filter for a square part of the image
+
+
invertColor(long) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
IO - Class in org.loklak.tools
+
 
+
IO() - Constructor for class org.loklak.tools.IO
+
 
+
isAdmin() - Method in class org.loklak.server.Authorization
+
 
+
isAnonymous() - Method in class org.loklak.server.ClientCredential
+
 
+
isAnonymous() - Method in class org.loklak.server.ClientIdentity
+
 
+
isAnyKnownExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isApplicationExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isAudioExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isBusy() - Method in class org.loklak.data.IncomingMessageBuffer
+
 
+
isBusy() - Method in class org.loklak.DumpImporter
+
 
+
isControlExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isCookie() - Method in class org.loklak.server.ClientCredential
+
 
+
isDoS_blackout() - Method in class org.loklak.server.Query
+
 
+
isDoS_servicereduction() - Method in class org.loklak.server.Query
+
 
+
isDoSBlackout() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
isDoSServicereduction() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
isEmail() - Method in class org.loklak.server.ClientIdentity
+
 
+
isEmpty() - Method in class org.loklak.harvester.strategy.KaizenQueries
+
 
+
isEmpty() - Method in class org.loklak.objects.Timeline2
+
 
+
isEmpty() - Method in class org.loklak.rss.RSSFeed
+
 
+
isEmpty() - Method in class org.loklak.tools.ByteBuffer
+
 
+
isGreaterOrEqualTo(HttpsMode) - Method in enum org.loklak.server.HttpsMode
+
 
+
isGreaterThan(HttpsMode) - Method in enum org.loklak.server.HttpsMode
+
 
+
isImageExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isLocalhost(String, String) - Static method in class org.loklak.http.RemoteAccess
+
 
+
isLocalhostAccess() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
isLocalhostAccess() - Method in class org.loklak.server.Query
+
 
+
isMacArchitecture - Static variable in class org.loklak.tools.Browser
+
 
+
isMacArchitecture - Static variable in class org.loklak.tools.OS
+
 
+
isMediaExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isNull(int) - Method in class org.json.JSONArray
+
+
Determine if the value is null.
+
+
isNull(String) - Method in class org.json.JSONObject
+
+
Determine if the value associated with the key is null or if there is no + value.
+
+
iso8601Format - Static variable in class org.loklak.tools.DateParser
+
+
Date formatter/non-sloppy parser for W3C datetime (ISO8601) in GMT/UTC
+
+
iso8601MillisFormat - Static variable in class org.loklak.tools.DateParser
+
 
+
isPasswdLogin() - Method in class org.loklak.server.ClientCredential
+
 
+
isPersistent() - Method in class org.loklak.server.ClientCredential
+
 
+
isPersistent() - Method in enum org.loklak.server.ClientCredential.Type
+
 
+
isPersistent() - Method in class org.loklak.server.ClientIdentity
+
 
+
isPersistent() - Method in enum org.loklak.server.ClientIdentity.Type
+
 
+
isPictureMime(String) - Static method in class org.loklak.tools.Classification
+
 
+
isPubkeyChallange() - Method in class org.loklak.server.ClientCredential
+
 
+
isReady() - Method in class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
isResetToken() - Method in class org.loklak.server.ClientCredential
+
 
+
isSmallerOrEqualTo(HttpsMode) - Method in enum org.loklak.server.HttpsMode
+
 
+
isSmallerThan(HttpsMode) - Method in enum org.loklak.server.HttpsMode
+
 
+
isTextExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isToken() - Method in class org.loklak.server.ClientCredential
+
 
+
isUnixFS - Static variable in class org.loklak.tools.Browser
+
 
+
isUnixFS - Static variable in class org.loklak.tools.OS
+
 
+
isValid(String) - Static method in enum org.loklak.objects.SourceType
+
+
we want type names to be in uppercase.
+
+
isVideoExtension(String) - Static method in class org.loklak.tools.Classification
+
 
+
isWin32 - Static variable in class org.loklak.tools.Browser
+
 
+
isWin32 - Static variable in class org.loklak.tools.OS
+
 
+
isWindows - Static variable in class org.loklak.tools.Browser
+
 
+
isWindows - Static variable in class org.loklak.tools.OS
+
 
+
isWrapper() - Method in class org.loklak.harvester.Post
+
 
+
itemLookup(String, String) - Method in class org.loklak.api.amazon.AmazonProductService
+
 
+
itemSearch(String, String) - Method in class org.loklak.api.amazon.AmazonProductService
+
 
+
iterator() - Method in class org.json.JSONArray
+
 
+
iterator() - Method in class org.loklak.objects.Timeline
+
+
the tweet iterator returns tweets in descending appearance order (top first)
+
+
iterator() - Method in class org.loklak.objects.Timeline2
+
+
the tweet iterator returns tweets in descending appearance order (top first)
+
+
iterator() - Method in class org.loklak.rss.RSSFeed
+
 
+
+ + + +

J

+
+
join(String) - Method in class org.json.JSONArray
+
+
Make a string from the contents of this JSONArray.
+
+
JSONArray - Class in org.json
+
+
A JSONArray is an ordered sequence of values.
+
+
JSONArray() - Constructor for class org.json.JSONArray
+
+
Construct an empty JSONArray.
+
+
JSONArray(JSONTokener) - Constructor for class org.json.JSONArray
+
+
Construct a JSONArray from a JSONTokener.
+
+
JSONArray(String) - Constructor for class org.json.JSONArray
+
+
Construct a JSONArray from a source JSON text.
+
+
JSONArray(Collection<?>) - Constructor for class org.json.JSONArray
+
+
Construct a JSONArray from a Collection.
+
+
JSONArray(Object) - Constructor for class org.json.JSONArray
+
+
Construct a JSONArray from an array
+
+
JsonDataset - Class in org.loklak.tools.storage
+
 
+
JsonDataset(File, String, JsonDataset.Column[], String, String, JsonRepository.Mode, boolean, int) - Constructor for class org.loklak.tools.storage.JsonDataset
+
+
define a data set: an indexed JsonDump where the index is held in RAM
+
+
JsonDataset.Column - Class in org.loklak.tools.storage
+
 
+
JsonDataset.JsonFactoryIndex - Class in org.loklak.tools.storage
+
 
+
JSONException - Exception in org.json
+
+
The JSONException is thrown by the JSON.org classes when things are amiss.
+
+
JSONException(String) - Constructor for exception org.json.JSONException
+
+
Constructs a JSONException with an explanatory message.
+
+
JSONException(String, Throwable) - Constructor for exception org.json.JSONException
+
+
Constructs a JSONException with an explanatory message and cause.
+
+
JSONException(Throwable) - Constructor for exception org.json.JSONException
+
+
Constructs a new JSONException with the specified cause.
+
+
jsonFactory - Static variable in class org.loklak.data.DAO
+
 
+
JsonFactory - Interface in org.loklak.tools.storage
+
 
+
JsonFactoryIndex() - Constructor for class org.loklak.tools.storage.JsonDataset.JsonFactoryIndex
+
 
+
JsonFieldConverter - Class in org.loklak.harvester
+
 
+
JsonFieldConverter(JsonFieldConverter.JsonConversionSchemaEnum) - Constructor for class org.loklak.harvester.JsonFieldConverter
+
 
+
JsonFieldConverter.JsonConversionSchemaEnum - Enum in org.loklak.harvester
+
 
+
JsonFile - Class in org.loklak.tools.storage
+
+
This extends JSONObject to be a file which gets loaded and written to disk + It also offers some key management tools
+
+
JsonFile(File) - Constructor for class org.loklak.tools.storage.JsonFile
+
 
+
JsonHandle(JSONObject, long, int) - Constructor for class org.loklak.tools.storage.JsonRandomAccessFile.JsonHandle
+
 
+
jsonMap - Variable in class org.loklak.data.ElasticsearchClient.BulkEntry
+
 
+
jsonMapper - Static variable in class org.loklak.data.DAO
+
 
+
JsonMinifier - Class in org.loklak.tools.storage
+
 
+
JsonMinifier() - Constructor for class org.loklak.tools.storage.JsonMinifier
+
 
+
JsonMinifier.JsonCapsuleFactory - Class in org.loklak.tools.storage
+
 
+
JSONML - Class in org.json
+
+
This provides static methods to convert an XML text into a JSONArray or + JSONObject, and to covert a JSONArray or JSONObject into an XML text using + the JsonML transform.
+
+
JSONML() - Constructor for class org.json.JSONML
+
 
+
JSONObject - Class in org.json
+
+
A JSONObject is an unordered collection of name/value pairs.
+
+
JSONObject() - Constructor for class org.json.JSONObject
+
+
Construct an empty JSONObject.
+
+
JSONObject(boolean) - Constructor for class org.json.JSONObject
+
+
Construct an empty JSONObject.
+
+
JSONObject(JSONObject, String[]) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from a subset of another JSONObject.
+
+
JSONObject(JSONTokener) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from a JSONTokener.
+
+
JSONObject(Map<?, ?>) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from a Map.
+
+
JSONObject(Object) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from an Object using bean getters.
+
+
JSONObject(Object, String[]) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from an Object, using reflection to find the + public members.
+
+
JSONObject(String) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from a source JSON text string.
+
+
JSONObject(String, Locale) - Constructor for class org.json.JSONObject
+
+
Construct a JSONObject from a ResourceBundle.
+
+
JSONObjectWithDefault - Class in org.loklak.tools.storage
+
+
This class extends JSONObjects with additional get-methods that accept default values.
+
+
JSONObjectWithDefault() - Constructor for class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
JSONObjectWithDefault(JSONObject) - Constructor for class org.loklak.tools.storage.JSONObjectWithDefault
+
 
+
JsonRandomAccessFile - Class in org.loklak.tools.storage
+
 
+
JsonRandomAccessFile(File, int) - Constructor for class org.loklak.tools.storage.JsonRandomAccessFile
+
+
if a JsonRandomAccessFile object in initiated, it must be wrapped with a Thread object and started.
+
+
JsonRandomAccessFile.JsonHandle - Class in org.loklak.tools.storage
+
+
The JsonHandle class is a bundle of a json with the information about the + seek location in the file and the length of bytes of the original json string
+
+
JsonRandomAccessFile.ReaderJsonFactory - Class in org.loklak.tools.storage
+
 
+
JsonReader - Interface in org.loklak.tools.storage
+
 
+
JsonRepository - Class in org.loklak.tools.storage
+
 
+
JsonRepository(File, String, String, JsonRepository.Mode, boolean, int) - Constructor for class org.loklak.tools.storage.JsonRepository
+
 
+
JsonRepository.Mode - Enum in org.loklak.tools.storage
+
 
+
JsonSignature - Class in org.loklak.tools
+
+
This class offers functions to add and verify signatures of JSONObjects
+
+
JsonSignature() - Constructor for class org.loklak.tools.JsonSignature
+
 
+
JsonStreamReader - Class in org.loklak.tools.storage
+
 
+
JsonStreamReader(InputStream, String, int) - Constructor for class org.loklak.tools.storage.JsonStreamReader
+
 
+
JsonStreamReader.WrapperJsonFactory - Class in org.loklak.tools.storage
+
 
+
JSONString - Interface in org.json
+
+
The JSONString interface allows a toJSONString() + method so that a class can change the behavior of + JSONObject.toString(), JSONArray.toString(), + and JSONWriter.value(Object).
+
+
JSONTokener - Class in org.json
+
+
A JSONTokener takes a source string and extracts characters and tokens from + it.
+
+
JSONTokener(Reader) - Constructor for class org.json.JSONTokener
+
+
Construct a JSONTokener from a Reader.
+
+
JSONTokener(InputStream) - Constructor for class org.json.JSONTokener
+
+
Construct a JSONTokener from an InputStream.
+
+
JSONTokener(String) - Constructor for class org.json.JSONTokener
+
+
Construct a JSONTokener from a string.
+
+
JsonTray - Class in org.loklak.tools.storage
+
 
+
JsonTray(File, int) - Constructor for class org.loklak.tools.storage.JsonTray
+
 
+
jsonTypeRef - Static variable in class org.loklak.data.DAO
+
 
+
JsonValidator - Class in org.loklak.harvester
+
+
Validate json file against json schema
+
+
JsonValidator(JsonValidator.JsonSchemaEnum) - Constructor for class org.loklak.harvester.JsonValidator
+
 
+
JsonValidator.JsonSchemaEnum - Enum in org.loklak.harvester
+
 
+
+ + + +

K

+
+
KaizenHarvester - Class in org.loklak.harvester.strategy
+
+
KaizenHarvester + + Kaizen is targeted to do more information and query grabbing, whether it + uses the official Twitter API, meta-data from collected tweets, or the + analysis of tweets.
+
+
KaizenHarvester(KaizenQueries) - Constructor for class org.loklak.harvester.strategy.KaizenHarvester
+
 
+
KaizenHarvester() - Constructor for class org.loklak.harvester.strategy.KaizenHarvester
+
 
+
KaizenQueries - Class in org.loklak.harvester.strategy
+
+
KaizenQueries are objects that holds the query strings for KaizenHarvester.
+
+
KaizenQueries() - Constructor for class org.loklak.harvester.strategy.KaizenQueries
+
 
+
key - Variable in class org.loklak.tools.storage.JsonDataset.Column
+
 
+
keys() - Method in class org.json.JSONObject
+
+
Get an enumeration of the keys of the JSONObject.
+
+
keys() - Method in enum org.loklak.rss.RSSMessage.Token
+
 
+
keys() - Method in class org.loklak.susi.SusiTransfer
+
+
get the set of transfer keys
+
+
keySet() - Method in class org.json.JSONObject
+
+
Get a set of keys of the JSONObject.
+
+
+ + + +

L

+
+
last_harvested - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
last_modified - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
lat - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
lat() - Method in interface org.loklak.geo.GeoPoint
+
+
get the latitude of the point
+
+
lat() - Method in class org.loklak.geo.IntegerGeoPoint
+
 
+
lat_north - Variable in class org.loklak.geo.GeoNames.CountryBounds
+
 
+
lat_south - Variable in class org.loklak.geo.GeoNames.CountryBounds
+
 
+
latestVisit(String, String) - Static method in class org.loklak.http.RemoteAccess
+
 
+
layer - Variable in class org.loklak.graphics.GraphPlotter.Point
+
 
+
lazyGet(JSONObject, String) - Method in class org.loklak.objects.AbstractObjectEntry
+
 
+
learn(K, Collection<T>) - Method in class org.loklak.tools.bayes.Classifier
+
+
Train the classifier by telling it that the given features resulted in + the given category.
+
+
learn(Classification<T, K>) - Method in class org.loklak.tools.bayes.Classifier
+
+
Train the classifier by telling it that the given features resulted in + the given category.
+
+
learnPhrase(String) - Method in enum org.loklak.data.Classifier.Context
+
 
+
learnPhrase(String) - Static method in class org.loklak.data.Classifier
+
 
+
length() - Method in class org.json.JSONArray
+
+
Get the number of elements in the JSONArray, included nulls.
+
+
length() - Method in class org.json.JSONObject
+
+
Get the number of keys stored in the JSONObject.
+
+
length() - Method in class org.loklak.tools.ByteBuffer
+
 
+
lifetime - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
line(int, int, int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
line(int, int, int, int, Long, int, Long, int, int, int, int, boolean) - Method in class org.loklak.graphics.RasterPlotter
+
+
draw a line using Bresenham's line drawing algorithm.
+
+
lineArrow(int, int, int, int, int, int, long, long) - Method in class org.loklak.graphics.RasterPlotter
+
+
draw a line with an arrow at the end
+
+
lineDot(int, int, int, int, int, int, long, long) - Method in class org.loklak.graphics.RasterPlotter
+
+
draw a line with a dot at the end
+
+
loadDefaultUserRoles() - Method in class org.loklak.server.UserRoles
+
+
Create default user roles, use names of the BaseUserRoles
+
+
loadPrivateKey() - Method in class org.loklak.server.Settings
+
+
Load private key from file
+
+
loadPublicKey() - Method in class org.loklak.server.Settings
+
+
Load public key from file
+
+
loadUserRolesFromObject() - Method in class org.loklak.server.UserRoles
+
 
+
location_mark - Variable in class org.loklak.objects.MessageEntry
+
 
+
location_point - Variable in class org.loklak.objects.MessageEntry
+
 
+
location_radius - Variable in class org.loklak.objects.MessageEntry
+
 
+
location_source - Variable in class org.loklak.objects.MessageEntry
+
 
+
LocationSource - Enum in org.loklak.geo
+
 
+
log(String) - Static method in class org.loklak.data.DAO
+
+
For logging informational events
+
+
login_keys - Static variable in class org.loklak.data.DAO
+
 
+
LoginService - Class in org.loklak.api.cms
+
+
This service allows users to login, logout or to check their login status.
+
+
LoginService() - Constructor for class org.loklak.api.cms.LoginService
+
 
+
LoklakEmailHandler - Class in org.loklak
+
 
+
LoklakEmailHandler() - Constructor for class org.loklak.LoklakEmailHandler
+
 
+
LoklakInstallation - Class in org.loklak
+
 
+
LoklakInstallation() - Constructor for class org.loklak.LoklakInstallation
+
 
+
LoklakServer - Class in org.loklak
+
 
+
LoklakServer() - Constructor for class org.loklak.LoklakServer
+
 
+
lon - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
lon() - Method in interface org.loklak.geo.GeoPoint
+
+
get the longitude of the point
+
+
lon() - Method in class org.loklak.geo.IntegerGeoPoint
+
 
+
lon_east - Variable in class org.loklak.geo.GeoNames.CountryBounds
+
 
+
lon_west - Variable in class org.loklak.geo.GeoNames.CountryBounds
+
 
+
LT - Static variable in class org.json.XML
+
+
The Character '<'.
+
+
+ + + +

M

+
+
macFSCreatorCache - Static variable in class org.loklak.tools.OS
+
 
+
macFSTypeCache - Static variable in class org.loklak.tools.OS
+
 
+
main(String[]) - Static method in class org.loklak.api.admin.StatusService
+
 
+
main(String[]) - Static method in class org.loklak.data.Campaign
+
 
+
main(String[]) - Static method in class org.loklak.geo.GeoJsonReader
+
 
+
main(String[]) - Static method in class org.loklak.geo.GeoNames
+
 
+
main(String[]) - Static method in class org.loklak.geo.IntegerGeoPoint
+
 
+
main(String[]) - Static method in class org.loklak.graphics.AnimationGIF
+
 
+
main(String[]) - Static method in class org.loklak.graphics.ChartPlotter
+
 
+
main(String[]) - Static method in class org.loklak.graphics.HexGridPlotter
+
 
+
main(String[]) - Static method in class org.loklak.graphics.RasterPlotter
+
 
+
main(String[]) - Static method in class org.loklak.harvester.RedirectUnshortener
+
 
+
main(String[]) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
main(String[]) - Static method in class org.loklak.harvester.TwitterScraper
+
+
Usage: java twitter4j.examples.search.SearchTweets [query]
+
+
main(String[]) - Static method in class org.loklak.harvester.WeiboInfoScraper
+
 
+
main(String[]) - Static method in class org.loklak.http.CookieRequestManager
+
 
+
main(String[]) - Static method in class org.loklak.LoklakInstallation
+
 
+
main(String[]) - Static method in class org.loklak.LoklakServer
+
 
+
main(String[]) - Static method in class org.loklak.objects.QueryEntry
+
 
+
main(String[]) - Static method in class org.loklak.objects.UserEntry
+
 
+
main(String[]) - Static method in class org.loklak.server.Accounting
+
 
+
main(String[]) - Static method in class org.loklak.susi.SusiThought
+
 
+
main(String[]) - Static method in class org.loklak.tools.Browser
+
 
+
main(String[]) - Static method in class org.loklak.tools.BufferedRandomAccessFile
+
 
+
main(String[]) - Static method in class org.loklak.tools.DateParser
+
 
+
main(String[]) - Static method in class org.loklak.tools.JsonSignature
+
 
+
main(String[]) - Static method in class org.loklak.tools.StringBuilderComparator
+
 
+
makeRequest() - Method in interface org.loklak.http.CookieRequest
+
 
+
MapServlet - Class in org.loklak.api.vis
+
 
+
MapServlet() - Constructor for class org.loklak.api.vis.MapServlet
+
 
+
MarkdownServlet - Class in org.loklak.api.vis
+
 
+
MarkdownServlet() - Constructor for class org.loklak.api.vis.MarkdownServlet
+
 
+
MAX_FINISHED - Static variable in class org.loklak.http.AccessTracker
+
 
+
maxPathLength - Static variable in class org.loklak.tools.Browser
+
 
+
maxPathLength - Static variable in class org.loklak.tools.OS
+
 
+
mergeData(JSONArray) - Method in class org.loklak.susi.SusiThought
+
+
Merging of data is required during an mind-meld.
+
+
mergePost(Timeline2) - Method in class org.loklak.objects.Timeline2
+
 
+
mergePost(Timeline2[]) - Method in class org.loklak.objects.Timeline2
+
 
+
message_dump - Static variable in class org.loklak.data.DAO
+
 
+
MESSAGE_DUMP_FILE_PREFIX - Static variable in class org.loklak.data.DAO
+
 
+
message_period - Variable in class org.loklak.objects.QueryEntry
+
 
+
MessageEntry - Class in org.loklak.objects
+
 
+
MessageEntry() - Constructor for class org.loklak.objects.MessageEntry
+
 
+
MessageEntry(JSONObject) - Constructor for class org.loklak.objects.MessageEntry
+
 
+
MessageEntry.TextLinkMap - Class in org.loklak.objects
+
 
+
MessageFactory - Class in org.loklak.data
+
 
+
MessageFactory(ElasticsearchClient, String, int, int) - Constructor for class org.loklak.data.MessageFactory
+
 
+
messageIterator() - Constructor for class org.loklak.rss.RSSFeed.messageIterator
+
 
+
messages - Static variable in class org.loklak.data.DAO
+
 
+
messages_day - Static variable in class org.loklak.data.DAO
+
 
+
messages_hour - Static variable in class org.loklak.data.DAO
+
 
+
messages_per_day - Variable in class org.loklak.objects.QueryEntry
+
 
+
messages_week - Static variable in class org.loklak.data.DAO
+
 
+
MessageWrapper(TwitterScraper.TwitterTweet, UserEntry, boolean) - Constructor for class org.loklak.data.DAO.MessageWrapper
+
 
+
META_KEYS_STRINGS - Static variable in class org.loklak.tools.storage.JsonRepository
+
 
+
metadata_name - Variable in class org.loklak.susi.SusiThought
+
 
+
meter - Static variable in interface org.loklak.geo.GeoPoint
+
 
+
midUrl - Variable in class org.loklak.harvester.BaseScraper
+
 
+
minify(JSONObject) - Method in class org.loklak.tools.storage.JsonMinifier
+
 
+
minuteDateFormat - Static variable in class org.loklak.tools.DateParser
+
 
+
miss() - Method in class org.loklak.tools.CacheStats
+
 
+
mix(ArrayList<Map.Entry<String, String>>, int) - Static method in class org.loklak.geo.GeoNames
+
+
Create sequences of words from a word token list.
+
+
mlat() - Method in class org.loklak.geo.GeoMark
+
 
+
mlon() - Method in class org.loklak.geo.GeoMark
+
 
+
MOD_DATE_KEY_STRING - Static variable in class org.loklak.tools.storage.JsonRepository
+
 
+
modifier - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
MONTH_MILLIS - Static variable in class org.loklak.tools.DateParser
+
 
+
more() - Method in class org.json.JSONTokener
+
+
Determine if the source string still contains characters that next() + can consume.
+
+
mqttPublisher - Static variable in class org.loklak.data.DAO
+
 
+
MQTTPublisher - Class in org.loklak.stream
+
 
+
MQTTPublisher(String) - Constructor for class org.loklak.stream.MQTTPublisher
+
 
+
+ + + +

N

+
+
n - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
names() - Method in class org.json.JSONObject
+
+
Produce a JSONArray containing the names of the elements of this + JSONObject.
+
+
NetmonPushServlet - Class in org.loklak.api.iot
+
 
+
NetmonPushServlet() - Constructor for class org.loklak.api.iot.NetmonPushServlet
+
 
+
NEWLINE - Static variable in class org.loklak.tools.CommonPattern
+
 
+
newUserIds - Static variable in class org.loklak.data.DAO
+
 
+
next() - Method in class org.json.JSONTokener
+
+
Get the next character in the source string.
+
+
next(char) - Method in class org.json.JSONTokener
+
+
Consume the next character, and check that it matches a specified + character.
+
+
next(int) - Method in class org.json.JSONTokener
+
+
Get the next n characters.
+
+
next() - Method in class org.loklak.rss.RSSFeed.messageIterator
+
 
+
nextCDATA() - Method in class org.json.XMLTokener
+
+
Get the text in the CDATA block.
+
+
nextClean() - Method in class org.json.JSONTokener
+
+
Get the next char in the string, skipping whitespace.
+
+
nextContent() - Method in class org.json.XMLTokener
+
+
Get the next XML outer token, trimming whitespace.
+
+
nextEntity(char) - Method in class org.json.XMLTokener
+
+
Return the next entity.
+
+
nextMeta() - Method in class org.json.XMLTokener
+
+
Returns the next XML meta token.
+
+
nextString(char) - Method in class org.json.JSONTokener
+
+
Return the characters up to the next close quote character.
+
+
nextTo(char) - Method in class org.json.JSONTokener
+
+
Get the text up but not including the specified character or the + end of line, whichever comes first.
+
+
nextTo(String) - Method in class org.json.JSONTokener
+
+
Get the text up but not including one of the specified delimiter + characters or the end of line, whichever comes first.
+
+
nextToken() - Method in class org.json.XMLTokener
+
+
Get the next XML Token.
+
+
nextValue() - Method in class org.json.JSONTokener
+
+
Get the next value.
+
+
NMEAServlet - Class in org.loklak.api.iot
+
 
+
NMEAServlet() - Constructor for class org.loklak.api.iot.NMEAServlet
+
 
+
NMEAServlet.GPSPosition - Class in org.loklak.api.iot
+
 
+
NOAAAlertServlet - Class in org.loklak.api.iot
+
 
+
NOAAAlertServlet() - Constructor for class org.loklak.api.iot.NOAAAlertServlet
+
 
+
NodelistPushServlet - Class in org.loklak.api.iot
+
 
+
NodelistPushServlet() - Constructor for class org.loklak.api.iot.NodelistPushServlet
+
 
+
nodeSettings() - Static method in class org.loklak.data.DAO
+
 
+
nodeSettings() - Method in class org.loklak.data.ElasticsearchClient
+
 
+
nomix(String[]) - Static method in class org.loklak.geo.GeoNames
+
+
Helper function which generates the same result as the mix method using a list of single-word tags.
+
+
NON_WORD_PATTERN - Static variable in class org.loklak.data.Classifier
+
 
+
normalize(String) - Static method in class org.loklak.geo.GeoNames
+
 
+
normalize() - Method in class org.loklak.graphics.GraphPlotter
+
 
+
normalizeHorizontal() - Method in class org.loklak.graphics.GraphPlotter
+
 
+
normalizeVertical() - Method in class org.loklak.graphics.GraphPlotter
+
 
+
north_lat - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
noSpace(String) - Static method in class org.json.XML
+
+
Throw an exception if the string contains whitespace.
+
+
NULL - Static variable in class org.json.JSONObject
+
+
It is sometimes more convenient and less ambiguous to have a + NULL object than to use Java's null value.
+
+
numberToString(Number) - Static method in class org.json.JSONObject
+
+
Produce a string from a Number.
+
+
+ + + +

O

+
+
objectCache - Variable in class org.loklak.data.AbstractIndexFactory
+
 
+
ObjectEntry - Interface in org.loklak.objects
+
 
+
on - Variable in class org.loklak.objects.MessageEntry
+
 
+
oneDayAgo() - Static method in class org.loklak.tools.DateParser
+
 
+
oneHourAgo() - Static method in class org.loklak.tools.DateParser
+
 
+
oneMonthAgo() - Static method in class org.loklak.tools.DateParser
+
 
+
oneWeekAgo() - Static method in class org.loklak.tools.DateParser
+
 
+
openBrowser(String) - Static method in class org.loklak.tools.Browser
+
 
+
openBrowserClassic(String) - Static method in class org.loklak.tools.Browser
+
 
+
OpenWifiMapPushServlet - Class in org.loklak.api.iot
+
 
+
OpenWifiMapPushServlet() - Constructor for class org.loklak.api.iot.OpenWifiMapPushServlet
+
 
+
OPERATION_KEY_STRING - Static variable in class org.loklak.tools.storage.JsonRepository
+
 
+
opt(int) - Method in class org.json.JSONArray
+
+
Get the optional object value associated with an index.
+
+
opt(String) - Method in class org.json.JSONObject
+
+
Get an optional value associated with a key.
+
+
optBigDecimal(int, BigDecimal) - Method in class org.json.JSONArray
+
+
Get the optional BigDecimal value associated with an index.
+
+
optBigDecimal(String, BigDecimal) - Method in class org.json.JSONObject
+
+
Get an optional BigDecimal associated with a key, or the defaultValue if + there is no such key or if its value is not a number.
+
+
optBigInteger(int, BigInteger) - Method in class org.json.JSONArray
+
+
Get the optional BigInteger value associated with an index.
+
+
optBigInteger(String, BigInteger) - Method in class org.json.JSONObject
+
+
Get an optional BigInteger associated with a key, or the defaultValue if + there is no such key or if its value is not a number.
+
+
optBoolean(int) - Method in class org.json.JSONArray
+
+
Get the optional boolean value associated with an index.
+
+
optBoolean(int, boolean) - Method in class org.json.JSONArray
+
+
Get the optional boolean value associated with an index.
+
+
optBoolean(String) - Method in class org.json.JSONObject
+
+
Get an optional boolean associated with a key.
+
+
optBoolean(String, boolean) - Method in class org.json.JSONObject
+
+
Get an optional boolean associated with a key.
+
+
optDouble(int) - Method in class org.json.JSONArray
+
+
Get the optional double value associated with an index.
+
+
optDouble(int, double) - Method in class org.json.JSONArray
+
+
Get the optional double value associated with an index.
+
+
optDouble(String) - Method in class org.json.JSONObject
+
+
Get an optional double associated with a key, or NaN if there is no such + key or if its value is not a number.
+
+
optDouble(String, double) - Method in class org.json.JSONObject
+
+
Get an optional double associated with a key, or the defaultValue if + there is no such key or if its value is not a number.
+
+
optEnum(Class<E>, int) - Method in class org.json.JSONArray
+
+
Get the enum value associated with a key.
+
+
optEnum(Class<E>, int, E) - Method in class org.json.JSONArray
+
+
Get the enum value associated with a key.
+
+
optEnum(Class<E>, String) - Method in class org.json.JSONObject
+
+
Get the enum value associated with a key.
+
+
optEnum(Class<E>, String, E) - Method in class org.json.JSONObject
+
+
Get the enum value associated with a key.
+
+
optInt(int) - Method in class org.json.JSONArray
+
+
Get the optional int value associated with an index.
+
+
optInt(int, int) - Method in class org.json.JSONArray
+
+
Get the optional int value associated with an index.
+
+
optInt(String) - Method in class org.json.JSONObject
+
+
Get an optional int value associated with a key, or zero if there is no + such key or if the value is not a number.
+
+
optInt(String, int) - Method in class org.json.JSONObject
+
+
Get an optional int value associated with a key, or the default if there + is no such key or if the value is not a number.
+
+
optJSONArray(int) - Method in class org.json.JSONArray
+
+
Get the optional JSONArray associated with an index.
+
+
optJSONArray(String) - Method in class org.json.JSONObject
+
+
Get an optional JSONArray associated with a key.
+
+
optJSONObject(int) - Method in class org.json.JSONArray
+
+
Get the optional JSONObject associated with an index.
+
+
optJSONObject(String) - Method in class org.json.JSONObject
+
+
Get an optional JSONObject associated with a key.
+
+
optLong(int) - Method in class org.json.JSONArray
+
+
Get the optional long value associated with an index.
+
+
optLong(int, long) - Method in class org.json.JSONArray
+
+
Get the optional long value associated with an index.
+
+
optLong(String) - Method in class org.json.JSONObject
+
+
Get an optional long value associated with a key, or zero if there is no + such key or if the value is not a number.
+
+
optLong(String, long) - Method in class org.json.JSONObject
+
+
Get an optional long value associated with a key, or the default if there + is no such key or if the value is not a number.
+
+
optString(int) - Method in class org.json.JSONArray
+
+
Get the optional string value associated with an index.
+
+
optString(int, String) - Method in class org.json.JSONArray
+
+
Get the optional string associated with an index.
+
+
optString(String) - Method in class org.json.JSONObject
+
+
Get an optional string associated with a key.
+
+
optString(String, String) - Method in class org.json.JSONObject
+
+
Get an optional string associated with a key.
+
+
order - Variable in class org.loklak.harvester.BaseScraper
+
 
+
org.json - package org.json
+
 
+
org.loklak - package org.loklak
+
 
+
org.loklak.api - package org.loklak.api
+
 
+
org.loklak.api.admin - package org.loklak.api.admin
+
 
+
org.loklak.api.aggregation - package org.loklak.api.aggregation
+
 
+
org.loklak.api.amazon - package org.loklak.api.amazon
+
 
+
org.loklak.api.cms - package org.loklak.api.cms
+
 
+
org.loklak.api.geo - package org.loklak.api.geo
+
 
+
org.loklak.api.iot - package org.loklak.api.iot
+
 
+
org.loklak.api.p2p - package org.loklak.api.p2p
+
 
+
org.loklak.api.tools - package org.loklak.api.tools
+
 
+
org.loklak.api.vis - package org.loklak.api.vis
+
 
+
org.loklak.data - package org.loklak.data
+
 
+
org.loklak.geo - package org.loklak.geo
+
 
+
org.loklak.graphics - package org.loklak.graphics
+
 
+
org.loklak.harvester - package org.loklak.harvester
+
 
+
org.loklak.harvester.strategy - package org.loklak.harvester.strategy
+
 
+
org.loklak.http - package org.loklak.http
+
 
+
org.loklak.objects - package org.loklak.objects
+
 
+
org.loklak.rss - package org.loklak.rss
+
 
+
org.loklak.server - package org.loklak.server
+
 
+
org.loklak.stream - package org.loklak.stream
+
 
+
org.loklak.susi - package org.loklak.susi
+
 
+
org.loklak.tools - package org.loklak.tools
+
 
+
org.loklak.tools.bayes - package org.loklak.tools.bayes
+
 
+
org.loklak.tools.storage - package org.loklak.tools.storage
+
 
+
original - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
OS - Class in org.loklak.tools
+
 
+
OS() - Constructor for class org.loklak.tools.OS
+
 
+
OS.System - Enum in org.loklak.tools
+
 
+
OSMTile - Class in org.loklak.geo
+
 
+
OSMTile() - Constructor for class org.loklak.geo.OSMTile
+
 
+
OSMTile.TileCoordinates - Class in org.loklak.geo
+
 
+
OutgoingMessageBuffer - Class in org.loklak.data
+
+
Buffer for outgoing messages which must be pushed to the index with a scheduler
+
+
OutgoingMessageBuffer() - Constructor for class org.loklak.data.OutgoingMessageBuffer
+
 
+
outgoingMessages - Static variable in class org.loklak.data.DAO
+
 
+
+ + + +

P

+
+
parallelScrape(Timeline2, BaseScraper) - Constructor for class org.loklak.data.DAO.parallelScrape
+
 
+
parent - Variable in class org.loklak.objects.MessageEntry
+
 
+
parse(String) - Method in class org.loklak.api.iot.NMEAServlet
+
 
+
parse(String, int) - Static method in class org.loklak.tools.DateParser
+
+
parse a date string for a given time zone
+
+
parseArrayList(Object) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
parseDate(Object) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
parseDate(Object, Date) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
parseDate(JSONObject) - Method in class org.loklak.tools.storage.JsonDataset
+
 
+
parseHTTPDate(String) - Static method in class org.loklak.rss.RSSMessage
+
 
+
parseLong(Object) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
parseOrder(String) - Static method in class org.loklak.objects.Timeline
+
 
+
parseOrder(String) - Static method in class org.loklak.objects.Timeline2
+
 
+
parseString(Object) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
parseVideo(File, String, String) - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
parseVideo(InputStream, String, String) - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
parseVideo(BufferedReader, String, String) - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
PasswordRecoveryService - Class in org.loklak.api.cms
+
 
+
PasswordRecoveryService() - Constructor for class org.loklak.api.cms.PasswordRecoveryService
+
 
+
passwordreset - Static variable in class org.loklak.data.DAO
+
 
+
PasswordResetService - Class in org.loklak.api.cms
+
 
+
PasswordResetService() - Constructor for class org.loklak.api.cms.PasswordResetService
+
 
+
PATTERN_ISO8601 - Static variable in class org.loklak.tools.DateParser
+
 
+
PATTERN_ISO8601MILLIS - Static variable in class org.loklak.tools.DateParser
+
 
+
PATTERN_MONTHDAY - Static variable in class org.loklak.tools.DateParser
+
 
+
PATTERN_MONTHDAYHOURMINUTE - Static variable in class org.loklak.tools.DateParser
+
 
+
Peer - Class in org.loklak.objects
+
 
+
Peer() - Constructor for class org.loklak.objects.Peer
+
 
+
Peer.Status - Enum in org.loklak.objects
+
 
+
peers(String, String, Timeline.Order, String, int, int, String) - Static method in class org.loklak.api.p2p.PeersServlet
+
 
+
peers - Static variable in class org.loklak.data.DAO
+
 
+
Peers - Class in org.loklak.objects
+
 
+
Peers() - Constructor for class org.loklak.objects.Peers
+
 
+
PeersServlet - Class in org.loklak.api.p2p
+
 
+
PeersServlet() - Constructor for class org.loklak.api.p2p.PeersServlet
+
 
+
pendingClusterTasks() - Static method in class org.loklak.data.DAO
+
 
+
pendingClusterTasks() - Method in class org.loklak.data.ElasticsearchClient
+
 
+
period() - Method in class org.loklak.objects.Timeline
+
+
compute the average time between any two consecutive tweets
+
+
period() - Method in class org.loklak.objects.Timeline2
+
+
compute the average time between any two consecutive tweets
+
+
persist() - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
 
+
physics(GraphPlotter.Ribbon, GraphPlotter.Ribbon) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
PI180 - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
PI2 - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
PI32 - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
PI4 - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
PieChartServlet - Class in org.loklak.api.vis
+
 
+
PieChartServlet() - Constructor for class org.loklak.api.vis.PieChartServlet
+
 
+
PIPE - Static variable in class org.loklak.tools.CommonPattern
+
 
+
place_context - Variable in class org.loklak.objects.MessageEntry
+
 
+
place_context - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
place_country - Variable in class org.loklak.objects.MessageEntry
+
 
+
place_id - Variable in class org.loklak.objects.MessageEntry
+
 
+
place_name - Variable in class org.loklak.objects.MessageEntry
+
 
+
plot(int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
plot(int, int, int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
PLUS - Static variable in class org.loklak.tools.CommonPattern
+
 
+
pngEncode(int) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
Point(double, double, int) - Constructor for class org.loklak.graphics.GraphPlotter.Point
+
 
+
POISON - Static variable in class org.loklak.rss.RSSMessage
+
 
+
POISON_FEATURE - Static variable in class org.loklak.geo.GeoJsonReader
+
 
+
POISON_JSON_MAP - Static variable in interface org.loklak.tools.storage.JsonReader
+
 
+
pollMessage() - Method in class org.loklak.rss.RSSFeed
+
 
+
Post - Class in org.loklak.harvester
+
 
+
Post() - Constructor for class org.loklak.harvester.Post
+
 
+
Post(boolean) - Constructor for class org.loklak.harvester.Post
+
 
+
Post(JSONObject) - Constructor for class org.loklak.harvester.Post
+
 
+
Post(String, String) - Constructor for class org.loklak.harvester.Post
+
 
+
Post(long) - Constructor for class org.loklak.harvester.Post
+
 
+
postId - Variable in class org.loklak.harvester.Post
+
 
+
postId - Variable in class org.loklak.objects.MessageEntry
+
 
+
prepareSearchUrl(String) - Method in class org.loklak.harvester.BaseScraper
+
 
+
prepareSearchUrl(String) - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
print() - Method in class org.loklak.graphics.GraphPlotter
+
 
+
print(RasterPlotter, int, int, int, char, boolean, int) - Static method in class org.loklak.graphics.PrintTool
+
 
+
print(RasterPlotter, int, int, int, String, int, boolean, int) - Static method in class org.loklak.graphics.PrintTool
+
 
+
PrintTool - Class in org.loklak.graphics
+
 
+
PrintTool() - Constructor for class org.loklak.graphics.PrintTool
+
 
+
PriorityKaizenHarvester - Class in org.loklak.harvester.strategy
+
 
+
PriorityKaizenHarvester() - Constructor for class org.loklak.harvester.strategy.PriorityKaizenHarvester
+
 
+
PriorityKaizenHarvester.PriorityKaizenQueries - Class in org.loklak.harvester.strategy
+
 
+
PriorityKaizenQueries(int) - Constructor for class org.loklak.harvester.strategy.PriorityKaizenHarvester.PriorityKaizenQueries
+
 
+
privacyStatus - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
private_settings - Static variable in class org.loklak.data.DAO
+
 
+
process(HttpServletRequest, HttpServletResponse, Query) - Method in class org.loklak.api.cms.ProxyServlet
+
 
+
process(HttpServletRequest, HttpServletResponse, Query) - Method in class org.loklak.api.vis.MapServlet
+
 
+
process(HttpServletRequest, HttpServletResponse, Query) - Method in class org.loklak.api.vis.MarkdownServlet
+
 
+
process() - Static method in class org.loklak.Crawler
+
 
+
processCampaigns() - Method in class org.loklak.data.Campaigns
+
 
+
propagate(String[]) - Static method in class org.loklak.api.p2p.HelloService
+
 
+
propagate() - Method in enum org.loklak.objects.SourceType
+
 
+
properties - Variable in class org.loklak.geo.GeoJsonReader.Feature
+
 
+
protectPath(Path) - Static method in class org.loklak.tools.OS
+
 
+
provider_hash - Variable in class org.loklak.objects.MessageEntry
+
 
+
provider_type - Variable in class org.loklak.harvester.BaseScraper
+
 
+
provider_type - Variable in class org.loklak.objects.MessageEntry
+
 
+
ProviderType - Enum in org.loklak.objects
+
+
The ProviderType objects answers on the question "who provided that content".
+
+
ProxyServlet - Class in org.loklak.api.cms
+
 
+
ProxyServlet() - Constructor for class org.loklak.api.cms.ProxyServlet
+
 
+
public_settings - Static variable in class org.loklak.data.DAO
+
 
+
PublicKeyRegistrationService - Class in org.loklak.api.cms
+
+
This service allows users to register a public key for login.
+
+
PublicKeyRegistrationService() - Constructor for class org.loklak.api.cms.PublicKeyRegistrationService
+
 
+
publish(String, String) - Method in class org.loklak.stream.MQTTPublisher
+
 
+
publish(String, String[]) - Method in class org.loklak.stream.MQTTPublisher
+
 
+
push(String[], Timeline, boolean) - Static method in class org.loklak.api.p2p.PushServlet
+
+
transmit the timeline to several hosts
+
+
push(String[], Timeline) - Static method in class org.loklak.api.p2p.PushServlet
+
 
+
push_cache_dir - Static variable in class org.loklak.data.DAO
+
 
+
PushReport - Class in org.loklak.api.iot
+
 
+
PushReport() - Constructor for class org.loklak.api.iot.PushReport
+
 
+
PushServlet - Class in org.loklak.api.p2p
+
+
push api to send messages to the loklak index.
+
+
PushServlet() - Constructor for class org.loklak.api.p2p.PushServlet
+
 
+
PushServletHelper - Class in org.loklak.api.iot
+
 
+
PushServletHelper() - Constructor for class org.loklak.api.iot.PushServletHelper
+
 
+
PushThread - Class in org.loklak.harvester
+
 
+
PushThread(String, Timeline) - Constructor for class org.loklak.harvester.PushThread
+
 
+
put(boolean) - Method in class org.json.JSONArray
+
+
Append a boolean value.
+
+
put(Collection<?>) - Method in class org.json.JSONArray
+
+
Put a value in the JSONArray, where the value will be a JSONArray which + is produced from a Collection.
+
+
put(double) - Method in class org.json.JSONArray
+
+
Append a double value.
+
+
put(int) - Method in class org.json.JSONArray
+
+
Append an int value.
+
+
put(long) - Method in class org.json.JSONArray
+
+
Append an long value.
+
+
put(Map<?, ?>) - Method in class org.json.JSONArray
+
+
Put a value in the JSONArray, where the value will be a JSONObject which + is produced from a Map.
+
+
put(Object) - Method in class org.json.JSONArray
+
+
Append an object value.
+
+
put(int, boolean) - Method in class org.json.JSONArray
+
+
Put or replace a boolean value in the JSONArray.
+
+
put(int, Collection<?>) - Method in class org.json.JSONArray
+
+
Put a value in the JSONArray, where the value will be a JSONArray which + is produced from a Collection.
+
+
put(int, double) - Method in class org.json.JSONArray
+
+
Put or replace a double value.
+
+
put(int, int) - Method in class org.json.JSONArray
+
+
Put or replace an int value.
+
+
put(int, long) - Method in class org.json.JSONArray
+
+
Put or replace a long value.
+
+
put(int, Map<?, ?>) - Method in class org.json.JSONArray
+
+
Put a value in the JSONArray, where the value will be a JSONObject that + is produced from a Map.
+
+
put(int, Object) - Method in class org.json.JSONArray
+
+
Put or replace an object value in the JSONArray.
+
+
put(String, boolean) - Method in class org.json.JSONObject
+
+
Put a key/boolean pair in the JSONObject.
+
+
put(String, Collection<?>) - Method in class org.json.JSONObject
+
+
Put a key/value pair in the JSONObject, where the value will be a + JSONArray which is produced from a Collection.
+
+
put(String, double) - Method in class org.json.JSONObject
+
+
Put a key/double pair in the JSONObject.
+
+
put(String, int) - Method in class org.json.JSONObject
+
+
Put a key/int pair in the JSONObject.
+
+
put(String, long) - Method in class org.json.JSONObject
+
+
Put a key/long pair in the JSONObject.
+
+
put(String, Map<?, ?>) - Method in class org.json.JSONObject
+
+
Put a key/value pair in the JSONObject, where the value will be a + JSONObject which is produced from a Map.
+
+
put(String, Object) - Method in class org.json.JSONObject
+
+
Put a key/value pair in the JSONObject.
+
+
put(String, Object) - Method in class org.loklak.server.Authentication
+
+
Put data into the internal JSONObject
+
+
put(K, V) - Method in class org.loklak.tools.CacheMap
+
 
+
put(String, boolean) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, double) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, Collection<?>) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, int) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, long) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, Map<?, ?>) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, Object) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, JSONObject) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
put(String, JSONObject, boolean) - Method in class org.loklak.tools.storage.JsonTray
+
 
+
putAll(JSONObject) - Method in class org.json.JSONObject
+
 
+
putAll(Timeline) - Method in class org.loklak.objects.Timeline
+
 
+
putAll(Timeline2) - Method in class org.loklak.objects.Timeline2
+
 
+
putAll(JSONObject) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
putOnce(String, Object) - Method in class org.json.JSONObject
+
+
Put a key/value pair in the JSONObject, but only if the key and the value + are both non-null, and only if there is not already a member with that + name.
+
+
putOpt(String, Object) - Method in class org.json.JSONObject
+
+
Put a key/value pair in the JSONObject, but only if the key and the value + are both non-null.
+
+
putPersistent(String, JSONObject) - Method in class org.loklak.tools.storage.JsonTray
+
 
+
putUnique(JSONObject) - Method in class org.loklak.tools.storage.JsonDataset
+
+
put an object into the index, but do not overwrite existing pairs
+
+
putVolatile(String, JSONObject) - Method in class org.loklak.tools.storage.JsonTray
+
 
+
+ + + +

Q

+
+
quality - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
queries - Static variable in class org.loklak.data.DAO
+
 
+
query - Variable in class org.loklak.data.DAO.SearchLocalMessages
+
 
+
query(String, String, Operator, int, int) - Method in class org.loklak.data.ElasticsearchClient
+
+
Query with a string and boundaries.
+
+
query(String, String, String) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
query(String, QueryBuilder, String, int, int, long, String, int, String...) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
Query(String, QueryBuilder, String, int, int, long, String, int, String...) - Constructor for class org.loklak.data.ElasticsearchClient.Query
+
+
Search the local message cache using a elasticsearch query.
+
+
query - Variable in class org.loklak.harvester.BaseScraper
+
 
+
query - Variable in class org.loklak.objects.QueryEntry
+
 
+
Query - Class in org.loklak.server
+
 
+
Query(HttpServletRequest) - Constructor for class org.loklak.server.Query
+
 
+
query_count - Variable in class org.loklak.objects.QueryEntry
+
 
+
query_first - Variable in class org.loklak.objects.QueryEntry
+
 
+
query_last - Variable in class org.loklak.objects.QueryEntry
+
 
+
query_length - Variable in class org.loklak.objects.QueryEntry
+
 
+
queryBuilder - Variable in class org.loklak.objects.QueryEntry.ElasticsearchQuery
+
 
+
QueryEntry - Class in org.loklak.objects
+
+
A Query is a recording of a search result based on the query.
+
+
QueryEntry(String, int, long, SourceType, boolean) - Constructor for class org.loklak.objects.QueryEntry
+
+
This initializer can only be used for first-time creation of a query track.
+
+
QueryEntry(JSONObject) - Constructor for class org.loklak.objects.QueryEntry
+
 
+
QueryEntry.ElasticsearchQuery - Class in org.loklak.objects
+
 
+
QueryEntry.PlaceContext - Enum in org.loklak.objects
+
 
+
QueryEntry.Tokens - Class in org.loklak.objects
+
 
+
QueryFactory - Class in org.loklak.data
+
 
+
QueryFactory(ElasticsearchClient, String, int, int) - Constructor for class org.loklak.data.QueryFactory
+
 
+
queryWithConstraints(String, String, String, Map<String, String>, boolean) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
QUEST - Static variable in class org.json.XML
+
+
The Character '?'.
+
+
QUESTION - Static variable in class org.loklak.tools.CommonPattern
+
 
+
queuedIndexing - Static variable in class org.loklak.LoklakServer
+
 
+
QUOT - Static variable in class org.json.XML
+
+
The Character '"'.
+
+
quote(String) - Static method in class org.json.JSONObject
+
+
Produce a string in double quotes with backslash sequences in all the + right places.
+
+
quote(String, Writer) - Static method in class org.json.JSONObject
+
 
+
+ + + +

R

+
+
randGetCookie() - Method in class org.loklak.http.CookieRequestManager
+
 
+
random - Static variable in class org.loklak.data.DAO
+
 
+
RasterPlotter - Class in org.loklak.graphics
+
+
This Class implements some convenience-methods to support drawing of statistical Data + It is not intended to replace existing awt-funktions even if it looks so + This class provides some drawing methods that creates transparency effects that + are not available in awt.
+
+
RasterPlotter(int, int, RasterPlotter.DrawMode, String) - Constructor for class org.loklak.graphics.RasterPlotter
+
 
+
RasterPlotter(int, int, RasterPlotter.DrawMode, long) - Constructor for class org.loklak.graphics.RasterPlotter
+
 
+
RasterPlotter.DrawMode - Enum in org.loklak.graphics
+
 
+
RasterPlotter.FilterMode - Enum in org.loklak.graphics
+
 
+
raw - Variable in class org.loklak.objects.QueryEntry.Tokens
+
 
+
read(String) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
read() - Method in class org.loklak.tools.BufferedRandomAccessFile
+
+
Reads one byte form the current position
+
+
read(byte[], int, int) - Method in class org.loklak.tools.BufferedRandomAccessFile
+
+
Reads the set number of bytes into the passed buffer.
+
+
read(byte[], long) - Method in class org.loklak.tools.BufferedRandomAccessFile
+
 
+
readConfig(Path) - Static method in class org.loklak.LoklakServer
+
 
+
ReaderJsonFactory(long, int) - Constructor for class org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
+
 
+
readFile(Path) - Static method in class org.loklak.tools.IO
+
 
+
readFileCached(Path) - Static method in class org.loklak.tools.IO
+
 
+
readIndexedLine() - Method in class org.loklak.tools.BufferedRandomAccessFile
+
+
Reading of text lines will produce index information along with the parsed text.
+
+
readJSON(String) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
readJSON(String) - Method in interface org.loklak.data.IndexFactory
+
 
+
readJsonFromUrl(String) - Static method in class org.loklak.api.iot.EarthquakeServlet
+
 
+
readJsonFromUrl(String) - Static method in class org.loklak.api.iot.FreifunkNodeFetchServlet
+
 
+
readJsonFromUrl(String) - Static method in class org.loklak.api.iot.StuffInSpaceServlet
+
 
+
readJsonFromUrl(String) - Static method in class org.loklak.api.iot.YahiHazeServlet
+
 
+
readMap(String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Read a json document from the search index for a given id.
+
+
readMessage(String) - Static method in class org.loklak.data.DAO
+
 
+
readMessage(String) - Method in class org.loklak.data.IncomingMessageBuffer
+
 
+
readSource(String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Read a document from the search index for a given id.
+
+
recordEvent(String, Object) - Method in class org.loklak.server.Query
+
 
+
RED - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
RedirectUnshortener - Class in org.loklak.harvester
+
 
+
RedirectUnshortener() - Constructor for class org.loklak.harvester.RedirectUnshortener
+
 
+
reduceToMaxsize(int) - Method in class org.loklak.objects.Timeline
+
 
+
reduceToMaxsize(int) - Method in class org.loklak.objects.Timeline2
+
 
+
REFERRER_KEY_STRING - Static variable in class org.loklak.tools.storage.JsonRepository
+
 
+
RemoteAccess - Class in org.loklak.http
+
+
Storage of a peer list which can be used for peer-to-peer communication.
+
+
RemoteAccess.FileType - Enum in org.loklak.http
+
 
+
RemoteAccess.FileTypeEncoding - Class in org.loklak.http
+
 
+
remove(int) - Method in class org.json.JSONArray
+
+
Remove an index and close the hole.
+
+
remove(String) - Method in class org.json.JSONObject
+
+
Remove a name and its value, if present.
+
+
remove() - Method in class org.loklak.rss.RSSFeed.messageIterator
+
 
+
remove(String) - Method in class org.loklak.server.Authentication
+
+
Remove an object from the internal JSONObject
+
+
remove(Collection<byte[]>, byte[]) - Static method in class org.loklak.tools.ByteBuffer
+
 
+
remove(K) - Method in class org.loklak.tools.CacheMap
+
 
+
remove(K) - Method in class org.loklak.tools.CacheSet
+
 
+
remove(String) - Method in class org.loklak.tools.storage.JsonFile
+
 
+
remove(String) - Method in class org.loklak.tools.storage.JsonTray
+
 
+
removeSignature(JSONObject) - Static method in class org.loklak.tools.JsonSignature
+
+
Remove the signature
+
+
removeSignature(Map<String, byte[]>) - Static method in class org.loklak.tools.JsonSignature
+
 
+
reset() - Method in class org.loklak.tools.bayes.Classifier
+
+
Resets the learned feature and category counts.
+
+
result - Variable in class org.loklak.data.ElasticsearchClient.Query
+
 
+
ResultList<E> - Class in org.loklak.objects
+
 
+
ResultList() - Constructor for class org.loklak.objects.ResultList
+
 
+
retrieval_count - Variable in class org.loklak.objects.QueryEntry
+
 
+
retrieval_last - Variable in class org.loklak.objects.QueryEntry
+
 
+
retrieval_next - Variable in class org.loklak.objects.QueryEntry
+
 
+
retweet_count - Variable in class org.loklak.objects.MessageEntry
+
 
+
retweet_from - Variable in class org.loklak.objects.MessageEntry
+
 
+
REWRITABLE_MODE - Static variable in class org.loklak.tools.storage.JsonRepository
+
 
+
Ribbon(double, double, double) - Constructor for class org.loklak.graphics.GraphPlotter.Ribbon
+
 
+
RICH_TEXT_SEPARATOR - Static variable in class org.loklak.objects.MessageEntry
+
 
+
rowToJSONArray(JSONTokener) - Static method in class org.json.CDL
+
+
Produce a JSONArray of strings from a row of comma delimited values.
+
+
rowToJSONObject(JSONArray, JSONTokener) - Static method in class org.json.CDL
+
+
Produce a JSONObject from a row of comma delimited text, using a + parallel JSONArray of strings to provides the names of the elements.
+
+
rowToString(JSONArray) - Static method in class org.json.CDL
+
+
Produce a comma delimited text row from a JSONArray.
+
+
RSSFeed - Class in org.loklak.rss
+
 
+
RSSFeed(int) - Constructor for class org.loklak.rss.RSSFeed
+
 
+
RSSFeed(Set<URL>, String) - Constructor for class org.loklak.rss.RSSFeed
+
+
make a RSS feed using a set of urls + the source string is assigned to all messages as author to mark the messages' origin
+
+
RSSFeed.messageIterator - Class in org.loklak.rss
+
 
+
RSSMessage - Class in org.loklak.rss
+
 
+
RSSMessage(String, String, String) - Constructor for class org.loklak.rss.RSSMessage
+
 
+
RSSMessage(String, String, URL, String) - Constructor for class org.loklak.rss.RSSMessage
+
 
+
RSSMessage() - Constructor for class org.loklak.rss.RSSMessage
+
 
+
RSSMessage.Token - Enum in org.loklak.rss
+
 
+
run() - Method in class org.loklak.Caretaker
+
 
+
run() - Method in class org.loklak.data.DAO.parallelScrape
+
 
+
run() - Method in class org.loklak.data.IncomingMessageBuffer
+
 
+
run() - Method in class org.loklak.DumpImporter
+
 
+
run() - Method in class org.loklak.geo.GeoJsonReader
+
 
+
run() - Method in class org.loklak.harvester.PushThread
+
 
+
run() - Method in class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
run() - Method in class org.loklak.http.AccessTracker
+
 
+
run() - Method in class org.loklak.tools.storage.JsonRandomAccessFile
+
 
+
run() - Method in class org.loklak.tools.storage.JsonStreamReader
+
 
+
+ + + +

S

+
+
save() - Method in class org.loklak.data.Campaigns
+
 
+
save(Campaigns.State) - Method in class org.loklak.data.Campaigns
+
 
+
save(File, String, String) - Method in class org.loklak.graphics.AnimationPlotter
+
 
+
save(File, String) - Method in class org.loklak.graphics.RasterPlotter
+
+
save the image to a file
+
+
saveImportProfile(int, Query, SourceType, String, List<String>) - Static method in class org.loklak.api.iot.PushServletHelper
+
 
+
saveMessagesAndImportProfile(JSONArray, int, Query, SourceType, String) - Static method in class org.loklak.api.iot.PushServletHelper
+
 
+
score_retrieval - Variable in class org.loklak.objects.QueryEntry
+
 
+
score_suggest - Variable in class org.loklak.objects.QueryEntry
+
 
+
scrape(BufferedReader, String, String) - Method in class org.loklak.harvester.BaseScraper
+
 
+
scrape(BufferedReader, String, String) - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
scrapeLoklak(Map<String, String>, boolean, boolean) - Static method in class org.loklak.data.DAO
+
 
+
scraperName - Variable in class org.loklak.harvester.BaseScraper
+
 
+
scrapeTwitter(Query, String, Timeline.Order, int, boolean, long, boolean) - Static method in class org.loklak.data.DAO
+
 
+
scrapeTwitter(Query, ArrayList<String>, String, Timeline.Order, int, boolean, long, boolean) - Static method in class org.loklak.data.DAO
+
 
+
screen_name - Variable in class org.loklak.objects.MessageEntry
+
 
+
search(String, ArrayList<String>, Timeline.Order, boolean, boolean, int) - Static method in class org.loklak.harvester.TwitterScraper
+
 
+
search(String, Timeline.Order, boolean, boolean, int) - Static method in class org.loklak.harvester.TwitterScraper
+
 
+
searchBackend(String, ArrayList<String>, Timeline.Order, int, int, String, long) - Static method in class org.loklak.data.DAO
+
 
+
searchLocalAccount(String) - Static method in class org.loklak.data.DAO
+
+
Search the local account cache using an elasticsearch query.
+
+
SearchLocalImportProfiles(String) - Static method in class org.loklak.data.DAO
+
 
+
SearchLocalImportProfilesWithConstraints(Map<String, String>, boolean) - Static method in class org.loklak.data.DAO
+
 
+
SearchLocalMessages(String, Timeline.Order, int, int, int, ArrayList<String>, String...) - Constructor for class org.loklak.data.DAO.SearchLocalMessages
+
+
Search the local message cache using a elasticsearch query.
+
+
SearchLocalMessages(String, Timeline.Order, int, int, int, String...) - Constructor for class org.loklak.data.DAO.SearchLocalMessages
+
 
+
SearchLocalQueries(String, int, String, String, SortOrder, Date, Date, String) - Static method in class org.loklak.data.DAO
+
+
Search the local message cache using a elasticsearch query.
+
+
searchLocalUserByScreenName(String) - Static method in class org.loklak.data.DAO
+
+
Search the local user cache using a elasticsearch query.
+
+
searchLocalUserByUserId(String) - Static method in class org.loklak.data.DAO
+
 
+
searchOnOtherPeers(List<String>, String, ArrayList<String>, Timeline.Order, int, int, String, String, long) - Static method in class org.loklak.data.DAO
+
 
+
secondDateFormat - Static variable in class org.loklak.tools.DateParser
+
 
+
seek(long) - Method in class org.loklak.tools.BufferedRandomAccessFile
+
+
Overridden seek method always throws exception: this would not work in concurrent environments.
+
+
SEMICOLON - Static variable in class org.loklak.tools.CommonPattern
+
 
+
sendEmail(String, String, String) - Static method in class org.loklak.LoklakEmailHandler
+
+
Send an email
+
+
serialVersionUID - Static variable in class org.loklak.api.vis.PieChartServlet
+
 
+
server - Static variable in class org.loklak.LoklakInstallation
+
 
+
service(Query, Authorization) - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
service(Query, Authorization) - Method in interface org.loklak.server.APIHandler
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.admin.StatusService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.aggregation.ClassifierServlet
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.amazon.AmazonProductService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.AccountService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.AppsService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.AuthorizationDemoService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.InstallationPageService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.LoginService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.PasswordRecoveryService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.PasswordResetService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.PublicKeyRegistrationService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.SettingsManagementService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.SignUpService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.TopMenuService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.TwitterAnalysisService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.UserAccountPermissions
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.cms.UserManagementService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.api.p2p.HelloService
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.harvester.BaseScraper
+
 
+
serviceImpl(Query, HttpServletResponse, Authorization, JSONObjectWithDefault) - Method in class org.loklak.server.AbstractAPIHandler
+
 
+
services - Static variable in class org.loklak.LoklakServer
+
 
+
setAccessFrom(Date) - Method in class org.loklak.server.ClientService
+
 
+
setAccessUntil(Date) - Method in class org.loklak.server.ClientService
+
 
+
setAccounting(Accounting) - Method in class org.loklak.server.Authorization
+
 
+
setActiveStatus(ImportProfileEntry.EntryStatus) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setAdmin() - Method in class org.loklak.server.Authorization
+
 
+
setAuthor(String, String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setAuthor(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setCaching(HttpServletResponse, int) - Static method in class org.loklak.server.FileHandler
+
 
+
setCategory(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setChannel(RSSMessage) - Method in class org.loklak.rss.RSSFeed
+
 
+
setClientHost(String) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setColor(long) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
setCoordinate(double, double) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setCoordinateRadius(int) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setCopyright(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setCreatedAt(Date) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setCreatedAt(Date) - Method in class org.loklak.objects.MessageEntry
+
 
+
setCreatedTime(Date) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setCursor(int) - Method in class org.loklak.objects.Timeline
+
+
sets the cursor to the outer bound of the visible tweet number.
+
+
setCursor(int) - Method in class org.loklak.objects.Timeline2
+
+
sets the cursor to the outer bound of the visible tweet number.
+
+
setData(JSONArray) - Method in class org.loklak.susi.SusiThought
+
+
Information contained in this thought has the form of a result set table, organized in rows and columns.
+
+
setDefaultUserRole(BaseUserRole, UserRole) - Method in class org.loklak.server.UserRoles
+
 
+
setDescription(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setDisplayName(String) - Method in class org.loklak.server.UserRole
+
 
+
setDocs(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setDoSBlackout(boolean) - Method in class org.loklak.http.AccessTracker.Track
+
 
+
setDoSServicereduction(boolean) - Method in class org.loklak.http.AccessTracker.Track
+
 
+
setDrawMode(RasterPlotter.DrawMode) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
setEdge(String, String) - Method in class org.loklak.graphics.GraphPlotter
+
 
+
setExpireTime(long) - Method in class org.loklak.server.Authentication
+
+
Set an expire time.
+
+
setExtra(Query) - Method in class org.loklak.harvester.BaseScraper
+
 
+
setExtra(Map<String, String>) - Method in class org.loklak.harvester.BaseScraper
+
 
+
setExtraValue(String, String) - Method in class org.loklak.harvester.BaseScraper
+
 
+
setFavouritesCount(long) - Method in class org.loklak.objects.MessageEntry
+
 
+
setGuid(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setHarvestingFreq(HarvestingFrequency) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setHits(long) - Method in class org.loklak.objects.ResultList
+
+
set the number of total hits this list has
+
+
setHits(int) - Method in class org.loklak.objects.Timeline
+
 
+
setHits(int) - Method in class org.loklak.objects.Timeline2
+
 
+
setHits(int) - Method in class org.loklak.susi.SusiThought
+
+
While the number of information pieces in a whole has a count, the number of relevant + information pieces may have been extracted.
+
+
setId(String) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setIdentity(ClientIdentity) - Method in class org.loklak.server.Authentication
+
+
Associate a ClientIdentity with this Authentication
+
+
setIDstr(String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setImage(String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setImage(String) - Method in class org.loklak.rss.RSSFeed
+
 
+
setImages(ArrayList<String>) - Method in class org.loklak.objects.MessageEntry
+
 
+
setImages(String[]) - Method in class org.loklak.objects.MessageEntry
+
 
+
setImages(String) - Method in class org.loklak.objects.MessageEntry
+
 
+
setImported(List<String>) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setImporter(String) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setImportProfile(ImportProfileEntry) - Method in class org.loklak.api.iot.PushReport
+
 
+
setLanguage(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setLastHarvested(Date) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setLastModified(Date) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setLifetime(long) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setLink(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setLocationMark(double[]) - Method in class org.loklak.objects.MessageEntry
+
+
set the location
+
+
setLocationPoint(double[]) - Method in class org.loklak.objects.MessageEntry
+
+
set the location
+
+
setLocationRadius(int) - Method in class org.loklak.objects.MessageEntry
+
 
+
setLocationSource(LocationSource) - Method in class org.loklak.objects.MessageEntry
+
 
+
setMapping(String, XContentBuilder) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
setMemoryCapacity(int) - Method in class org.loklak.tools.bayes.Classifier
+
+
Sets the memory's capacity.
+
+
setMetadata(JSONObject) - Method in class org.loklak.server.ClientService
+
 
+
setName(String) - Method in class org.loklak.objects.UserEntry
+
 
+
setOffset(int) - Method in class org.loklak.susi.SusiThought
+
+
In a series of information pieces the first information piece has number 0.
+
+
setOn(Date) - Method in class org.loklak.objects.MessageEntry
+
 
+
setParam() - Method in class org.loklak.harvester.BaseScraper
+
 
+
setParam() - Method in class org.loklak.harvester.YoutubeScraper
+
 
+
setParent(UserRole) - Method in class org.loklak.server.UserRole
+
 
+
setPermission(String, String, JSONObject) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, JSONObject) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, String) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, String) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, int) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, int) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, long) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, long) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, double) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, double) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, Object) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, Object) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, boolean) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, boolean) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, Map<?, ?>) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, Map<?, ?>) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, Collection<?>) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(APIHandler, String, Collection<?>) - Method in class org.loklak.server.Authorization
+
 
+
setPermission(String, String, JSONObject) - Method in class org.loklak.server.UserRole
+
 
+
setPermission(APIHandler, String, JSONObject) - Method in class org.loklak.server.UserRole
+
 
+
setPixel(int, int, int[]) - Method in class org.loklak.graphics.RasterPlotter
+
 
+
setPlaceId(String) - Method in class org.loklak.objects.MessageEntry
+
 
+
setPlaceName(String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setPlaceName(String, QueryEntry.PlaceContext) - Method in class org.loklak.objects.MessageEntry
+
 
+
setPopulation(long) - Method in class org.loklak.geo.GeoLocation
+
 
+
setPostId(String) - Method in class org.loklak.harvester.Post
+
 
+
setPrivacyStatus(ImportProfileEntry.PrivacyStatus) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setPrivateKey(PrivateKey, String) - Method in class org.loklak.server.Settings
+
+
Set the private key
+
+
setProcess(String) - Method in class org.loklak.susi.SusiThought
+
+
The process which created this thought may have a name or description string.
+
+
setProfileImage(byte[]) - Method in class org.loklak.objects.UserEntry
+
 
+
setProfileImageUrl(String) - Method in class org.loklak.objects.UserEntry
+
 
+
setProviderHash(String) - Method in class org.loklak.objects.MessageEntry
+
 
+
setProviderType(ProviderType) - Method in class org.loklak.objects.MessageEntry
+
 
+
setPubDate(Date) - Method in class org.loklak.rss.RSSMessage
+
 
+
setPublicKey(PublicKey, String) - Method in class org.loklak.server.Settings
+
+
Set the public key
+
+
setQuery(Map<String, String>) - Method in class org.loklak.http.AccessTracker.Track
+
 
+
setQuery(String) - Method in class org.loklak.objects.Timeline
+
 
+
setQuery(String) - Method in class org.loklak.objects.Timeline2
+
 
+
setQuery(String) - Method in class org.loklak.susi.SusiThought
+
+
If this thought was the result of a retrieval using a specific expression, that expression is + called the query.
+
+
setReferrer(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setRequestFrequency(String, int) - Method in class org.loklak.server.Authorization
+
 
+
setResponse(HttpServletResponse, String) - Method in class org.loklak.server.Query
+
 
+
setResultIndex(DAO.IndexName) - Method in class org.loklak.objects.Timeline
+
 
+
setResultIndex(DAO.IndexName) - Method in class org.loklak.objects.Timeline2
+
 
+
setRetweetCount(long) - Method in class org.loklak.objects.MessageEntry
+
 
+
setRetweetFrom(String) - Method in class org.loklak.objects.MessageEntry
+
 
+
setScraperInfo(String) - Method in class org.loklak.objects.Timeline
+
 
+
setScraperInfo(String) - Method in class org.loklak.objects.Timeline2
+
 
+
setScraperInfo(String) - Method in class org.loklak.susi.SusiThought
+
+
If the expression to create this thought had an agent that expressed the result set of the + information contained in this thought, it is called the scraper.
+
+
setScreenName(String) - Method in class org.loklak.objects.MessageEntry
+
 
+
setSharers(List<String>) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setSize(long) - Method in class org.loklak.rss.RSSMessage
+
 
+
setSourceHash(long) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setSourceType(SourceType) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setSourceType(SourceType) - Method in class org.loklak.objects.MessageEntry
+
 
+
setSourceUrl(URL) - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
setStatusIdUrl(URL) - Method in class org.loklak.objects.MessageEntry
+
 
+
setSubject(String[]) - Method in class org.loklak.rss.RSSMessage
+
 
+
setText(String) - Method in class org.loklak.objects.MessageEntry
+
 
+
setTimeSinceLastAccess(long) - Method in class org.loklak.http.AccessTracker.Track
+
 
+
setTimestamp(long) - Method in class org.loklak.harvester.Post
+
 
+
setTimestamp() - Method in class org.loklak.harvester.Post
+
 
+
Settings - Class in org.loklak.server
+
 
+
Settings(File) - Constructor for class org.loklak.server.Settings
+
 
+
SettingsManagementService - Class in org.loklak.api.cms
+
 
+
SettingsManagementService() - Constructor for class org.loklak.api.cms.SettingsManagementService
+
 
+
SettingsServlet - Class in org.loklak.api.admin
+
+
submit all setting values where the settings key starts with "client."
+
+
SettingsServlet() - Constructor for class org.loklak.api.admin.SettingsServlet
+
 
+
setTitle(String) - Method in class org.loklak.rss.RSSMessage
+
 
+
setTo(Date) - Method in class org.loklak.objects.MessageEntry
+
 
+
setUp() - Method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
setUserid(String) - Method in class org.loklak.data.DAOWrapper.GenericJSONBuilder
+
+
Not required
+
+
setUserRole(UserRole) - Method in class org.loklak.server.Authorization
+
 
+
setValue(RSSMessage.Token, String) - Method in class org.loklak.rss.RSSMessage
+
 
+
severe(String) - Static method in class org.loklak.data.DAO
+
+
For events serious enough to inform and log, but not fatal.
+
+
severe(String, Throwable) - Static method in class org.loklak.data.DAO
+
 
+
severe(Throwable) - Static method in class org.loklak.data.DAO
+
 
+
shallHarvest() - Method in class org.loklak.harvester.strategy.KaizenHarvester
+
 
+
sharers - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
shiftProcessedDump(String) - Method in class org.loklak.tools.storage.JsonRepository
+
+
move a file from the import directory to the imported directory.
+
+
short2long - Variable in class org.loklak.objects.MessageEntry.TextLinkMap
+
 
+
show() - Method in class org.loklak.graphics.AnimationPlotter
+
+
show the images as stream of JFrame on desktop
+
+
show() - Method in class org.loklak.graphics.RasterPlotter
+
+
show the image as JFrame on desktop
+
+
showAnalysis(String, String) - Static method in class org.loklak.api.cms.TwitterAnalysisService
+
 
+
shutdown() - Method in class org.loklak.Caretaker
+
+
ask the thread to shut down
+
+
shutdown() - Method in class org.loklak.data.IncomingMessageBuffer
+
+
ask the thread to shut down
+
+
shutdown() - Method in class org.loklak.DumpImporter
+
+
ask the thread to shut down
+
+
shutdown(int) - Static method in class org.loklak.LoklakInstallation
+
 
+
sign(Map<String, String>) - Method in class org.loklak.api.amazon.SignedRequestsHelper
+
+
This method signs requests in hashmap form.
+
+
sign(String) - Method in class org.loklak.api.amazon.SignedRequestsHelper
+
+
This method signs requests in query-string form.
+
+
signatureString - Static variable in class org.loklak.tools.JsonSignature
+
 
+
SignedRequestsHelper - Class in org.loklak.api.amazon
+
+
This class contains all the logic for signing requests to the Amazon Product + Advertising API.
+
+
SignUpService - Class in org.loklak.api.cms
+
 
+
SignUpService() - Constructor for class org.loklak.api.cms.SignUpService
+
 
+
similar(Object) - Method in class org.json.JSONArray
+
+
Determine if two JSONArrays are similar.
+
+
similar(Object) - Method in class org.json.JSONObject
+
+
Determine if two JSONObjects are similar.
+
+
since - Variable in class org.loklak.objects.QueryEntry.ElasticsearchQuery
+
 
+
Sitemap - Class in org.loklak.api.cms
+
 
+
Sitemap() - Constructor for class org.loklak.api.cms.Sitemap
+
 
+
size() - Method in class org.loklak.objects.Timeline
+
 
+
size() - Method in class org.loklak.objects.Timeline2
+
 
+
size() - Method in class org.loklak.rss.RSSFeed
+
 
+
size() - Method in class org.loklak.tools.storage.JsonDataset
+
 
+
sizename(int) - Static method in class org.loklak.rss.RSSMessage
+
 
+
skipPast(String) - Method in class org.json.XMLTokener
+
+
Skip characters until past the requested string.
+
+
skipTo(char) - Method in class org.json.JSONTokener
+
+
Skip characters until the next character is the requested character.
+
+
SLASH - Static variable in class org.json.XML
+
+
The Character '/'.
+
+
SLASH - Static variable in class org.loklak.tools.CommonPattern
+
 
+
source_hash - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
source_type - Variable in class org.loklak.harvester.BaseScraper
+
 
+
source_type - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
source_type - Variable in class org.loklak.objects.MessageEntry
+
 
+
source_type - Variable in class org.loklak.objects.QueryEntry
+
 
+
source_url - Variable in class org.loklak.objects.ImportProfileEntry
+
 
+
SourceType - Enum in org.loklak.objects
+
+
The SourceType objects answers on the question "what kind of data format".
+
+
south_lat - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
SPACE - Static variable in class org.loklak.tools.CommonPattern
+
 
+
split(String) - Static method in class org.loklak.geo.GeoNames
+
+
Split the text into word tokens.
+
+
split(byte[], byte) - Static method in class org.loklak.tools.ByteBuffer
+
 
+
split(StringBuilder, char) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
split(StringBuilder, Pattern) - Static method in class org.loklak.tools.StringBuilderComparator
+
 
+
stack(String, int, boolean, boolean, boolean) - Static method in class org.loklak.Crawler
+
 
+
startsWith(byte[], int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
startsWith(StringBuilder, StringBuilder) - Method in class org.loklak.tools.StringBuilderComparator
+
 
+
startTracking(String, String, String) - Method in class org.loklak.http.AccessTracker
+
 
+
startupTime - Static variable in class org.loklak.Caretaker
+
 
+
status(String) - Static method in class org.loklak.api.admin.StatusService
+
 
+
status_id_url - Variable in class org.loklak.objects.MessageEntry
+
 
+
StatusService - Class in org.loklak.api.admin
+
 
+
StatusService() - Constructor for class org.loklak.api.admin.StatusService
+
 
+
stop() - Method in class org.loklak.harvester.strategy.ClassicHarvester
+
 
+
stop() - Method in interface org.loklak.harvester.strategy.Harvester
+
+
This method is executed when Loklak is shutting down
+
+
stop() - Method in class org.loklak.harvester.strategy.KaizenHarvester
+
 
+
streamEnabled - Static variable in class org.loklak.data.DAO
+
 
+
String(byte[]) - Static method in class org.loklak.tools.ASCII
+
 
+
String(byte[], int, int) - Static method in class org.loklak.tools.ASCII
+
 
+
String(byte[]) - Static method in class org.loklak.tools.UTF8
+
+
using the string method with the default charset given as argument should prevent using the charset cache + in FastCharsetProvider.java:118 which locks all concurrent threads using a UTF8.String() method
+
+
String(byte[], int, int) - Static method in class org.loklak.tools.UTF8
+
 
+
StringBuilderComparator - Class in org.loklak.tools
+
+
case-insensitive compare of two StringBuilder objects + this shall replace the corresponding method in class String when StringBuilder objects are not transformed into string
+
+
StringBuilderComparator(boolean) - Constructor for class org.loklak.tools.StringBuilderComparator
+
 
+
stringToValue(String) - Static method in class org.json.JSONObject
+
+
Try to convert a string into a number, boolean, or null.
+
+
stringToValue(String) - Static method in class org.json.XML
+
+
Try to convert a string into a number, boolean, or null.
+
+
StuffInSpaceServlet - Class in org.loklak.api.iot
+
 
+
StuffInSpaceServlet() - Constructor for class org.loklak.api.iot.StuffInSpaceServlet
+
 
+
suggest(String, int, int) - Method in class org.loklak.geo.GeoNames
+
 
+
SusiProcedures - Class in org.loklak.susi
+
 
+
SusiProcedures() - Constructor for class org.loklak.susi.SusiProcedures
+
 
+
SusiThought - Class in org.loklak.susi
+
+
A thought is a piece of data that can be remembered.
+
+
SusiThought() - Constructor for class org.loklak.susi.SusiThought
+
+
create an empty thought, to be filled with single data entities.
+
+
SusiThought(JSONObject) - Constructor for class org.loklak.susi.SusiThought
+
+
create a clone of a json object as a SusiThought object
+
+
SusiThought(Matcher) - Constructor for class org.loklak.susi.SusiThought
+
+
Create an initial thought using the matcher on an expression.
+
+
SusiThought(String, String) - Constructor for class org.loklak.susi.SusiThought
+
+
Deprecated.
+
+
SusiTransfer - Class in org.loklak.susi
+
+
Transfer is the ability to perceive a given thought in a different representation + in such a way that it applies on an intent or an intent set.
+
+
SusiTransfer(String) - Constructor for class org.loklak.susi.SusiTransfer
+
+
Create a new transfer.
+
+
syntaxError(String) - Method in class org.json.JSONTokener
+
+
Make a JSONException to signal a syntax error.
+
+
systemMacOSC - Static variable in class org.loklak.tools.Browser
+
 
+
systemMacOSX - Static variable in class org.loklak.tools.Browser
+
 
+
systemOS - Static variable in class org.loklak.tools.Browser
+
 
+
systemOS - Static variable in class org.loklak.tools.OS
+
 
+
systemUnix - Static variable in class org.loklak.tools.Browser
+
 
+
systemUnknown - Static variable in class org.loklak.tools.Browser
+
 
+
systemWindows - Static variable in class org.loklak.tools.Browser
+
 
+
+ + + +

T

+
+
t - Variable in class org.loklak.data.DAO.MessageWrapper
+
 
+
TAB - Static variable in class org.loklak.tools.CommonPattern
+
 
+
tags - Static variable in class org.loklak.rss.RSSMessage
+
 
+
take() - Method in class org.loklak.geo.GeoJsonReader
+
 
+
take() - Method in class org.loklak.tools.storage.JsonRandomAccessFile
+
 
+
take() - Method in interface org.loklak.tools.storage.JsonReader
+
 
+
take() - Method in class org.loklak.tools.storage.JsonStreamReader
+
 
+
takeTimelineMin(Timeline.Order, int, int) - Method in class org.loklak.data.OutgoingMessageBuffer
+
+
if the given list of timelines contain at least the wanted minimum size of messages, they are flushed from the queue + and combined into a new timeline
+
+
tearDown() - Method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
Test() - Constructor for class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
testSequentialWriteThenRead() - Method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
testSimultanousWriteAndRead() - Method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
testValidity(Object) - Static method in class org.json.JSONObject
+
+
Throw an exception if the object is a NaN or infinite number.
+
+
text - Variable in class org.loklak.objects.MessageEntry
+
 
+
text - Variable in class org.loklak.objects.MessageEntry.TextLinkMap
+
 
+
TextLinkMap() - Constructor for class org.loklak.objects.MessageEntry.TextLinkMap
+
 
+
ThreaddumpServlet - Class in org.loklak.api.admin
+
 
+
ThreaddumpServlet() - Constructor for class org.loklak.api.admin.ThreaddumpServlet
+
 
+
TileCoordinates(double, double, int) - Constructor for class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
TileCoordinates(int, int, int) - Constructor for class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
time - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
timeline - Variable in class org.loklak.data.DAO.SearchLocalMessages
+
 
+
Timeline - Class in org.loklak.objects
+
+
A timeline is a structure which holds tweet for the purpose of presentation + There is no tweet retrieval method here, just an iterator which returns the tweets in reverse appearing order
+
+
Timeline(Timeline.Order) - Constructor for class org.loklak.objects.Timeline
+
 
+
Timeline(Timeline.Order, String) - Constructor for class org.loklak.objects.Timeline
+
 
+
Timeline.Order - Enum in org.loklak.objects
+
 
+
Timeline2 - Class in org.loklak.objects
+
+
A timeline2 is a structure which holds tweet for the purpose of presentation + There is no tweet retrieval method here, just an iterator which returns the tweets in reverse appearing order
+
+
Timeline2(Timeline2.Order) - Constructor for class org.loklak.objects.Timeline2
+
 
+
Timeline2(Timeline2.Order, String) - Constructor for class org.loklak.objects.Timeline2
+
 
+
Timeline2.Order - Enum in org.loklak.objects
+
 
+
timelineCache - Static variable in class org.loklak.data.DAO
+
 
+
TimelineCache - Class in org.loklak.objects
+
+
The purpose of the timeline cache is, to provide a storage for paginated search
+
+
TimelineCache(long) - Constructor for class org.loklak.objects.TimelineCache
+
 
+
timelineSize() - Method in class org.loklak.data.OutgoingMessageBuffer
+
 
+
timestamp - Variable in class org.loklak.harvester.Post
+
 
+
TIMESTAMP_FIELDNAME - Static variable in class org.loklak.objects.AbstractObjectEntry
+
 
+
timestampDate - Variable in class org.loklak.objects.MessageEntry
+
 
+
timezoneOffset - Variable in class org.loklak.objects.QueryEntry
+
 
+
TL - Static variable in class org.loklak.graphics.RasterPlotter
+
 
+
to - Variable in class org.loklak.objects.MessageEntry
+
 
+
toArray() - Method in class org.loklak.objects.Timeline2
+
 
+
toEmptyAccountJson(UserEntry) - Static method in class org.loklak.objects.AccountEntry
+
 
+
toFileName() - Method in enum org.loklak.data.Campaigns.State
+
 
+
toIndexed() - Method in class org.loklak.graphics.RasterPlotter
+
 
+
toJSON() - Static method in class org.loklak.Crawler
+
 
+
toJSON() - Method in class org.loklak.data.Campaign
+
 
+
toJSON(boolean) - Method in class org.loklak.geo.GeoMark
+
 
+
toJSON() - Method in class org.loklak.objects.AccountEntry
+
 
+
toJSON(UserEntry) - Method in class org.loklak.objects.AccountEntry
+
 
+
toJSON() - Method in class org.loklak.objects.ImportProfileEntry
+
 
+
toJSON() - Method in class org.loklak.objects.MessageEntry
+
 
+
toJSON(UserEntry, boolean, int, String) - Method in class org.loklak.objects.MessageEntry
+
 
+
toJSON() - Method in interface org.loklak.objects.ObjectEntry
+
 
+
toJSON() - Method in class org.loklak.objects.QueryEntry
+
 
+
toJSON(boolean, String, String) - Method in class org.loklak.objects.Timeline
+
 
+
toJSON(boolean, String, String) - Method in class org.loklak.objects.Timeline2
+
 
+
toJSON() - Method in class org.loklak.objects.Timeline2
+
 
+
toJSON(JsonGenerator) - Method in class org.loklak.objects.UserEntry
+
 
+
toJSON() - Method in class org.loklak.objects.UserEntry
+
 
+
toJSON() - Method in class org.loklak.server.Client
+
 
+
toJSON() - Method in class org.loklak.server.ClientIdentity
+
 
+
toJSON() - Method in class org.loklak.server.ClientService
+
 
+
toJSONArray(String) - Static method in class org.json.CDL
+
+
Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.
+
+
toJSONArray(JSONTokener) - Static method in class org.json.CDL
+
+
Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.
+
+
toJSONArray(JSONArray, String) - Static method in class org.json.CDL
+
+
Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.
+
+
toJSONArray(JSONArray, JSONTokener) - Static method in class org.json.CDL
+
+
Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.
+
+
toJSONArray(String) - Static method in class org.json.JSONML
+
+
Convert a well-formed (but not necessarily valid) XML string into a + JSONArray using the JsonML transform.
+
+
toJSONArray(XMLTokener) - Static method in class org.json.JSONML
+
+
Convert a well-formed (but not necessarily valid) XML string into a + JSONArray using the JsonML transform.
+
+
toJSONArray(JSONArray) - Method in class org.json.JSONObject
+
+
Produce a JSONArray containing the values of the members of this + JSONObject.
+
+
toJSONBytes() - Method in class org.loklak.objects.AbstractObjectEntry
+
 
+
toJSONObject(JSONArray) - Method in class org.json.JSONArray
+
+
Produce a JSONObject by combining a JSONArray of names with the values of + this JSONArray.
+
+
toJSONObject(XMLTokener) - Static method in class org.json.JSONML
+
+
Convert a well-formed (but not necessarily valid) XML string into a + JSONObject using the JsonML transform.
+
+
toJSONObject(String) - Static method in class org.json.JSONML
+
+
Convert a well-formed (but not necessarily valid) XML string into a + JSONObject using the JsonML transform.
+
+
toJSONObject(String) - Static method in class org.json.XML
+
+
Convert a well-formed (but not necessarily valid) XML string into a + JSONObject.
+
+
toJSONObject() - Method in class org.loklak.tools.storage.JsonFile
+
+
Return a copy of the JSON content
+
+
toJSONString() - Method in interface org.json.JSONString
+
+
The toJSONString method allows a class to produce its own JSON + serialization.
+
+
toJSONString() - Method in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
Tokens(String) - Constructor for class org.loklak.objects.QueryEntry.Tokens
+
 
+
toMap() - Method in class org.json.JSONObject
+
 
+
TopMenuService - Class in org.loklak.api.cms
+
 
+
TopMenuService() - Constructor for class org.loklak.api.cms.TopMenuService
+
 
+
toPostDate(Date) - Static method in class org.loklak.tools.DateParser
+
 
+
toPostTimeline() - Method in class org.loklak.objects.Timeline
+
 
+
toString(JSONArray) - Static method in class org.json.CDL
+
+
Produce a comma delimited text from a JSONArray of JSONObjects.
+
+
toString(JSONArray, JSONArray) - Static method in class org.json.CDL
+
+
Produce a comma delimited text from a JSONArray of JSONObjects using + a provided list of names.
+
+
toString() - Method in class org.json.JSONArray
+
+
Make a JSON text of this JSONArray.
+
+
toString(int) - Method in class org.json.JSONArray
+
+
Make a prettyprinted JSON text of this JSONArray.
+
+
toString(JSONArray) - Static method in class org.json.JSONML
+
+
Reverse the JSONML transformation, making an XML text from a JSONArray.
+
+
toString(JSONObject) - Static method in class org.json.JSONML
+
+
Reverse the JSONML transformation, making an XML text from a JSONObject.
+
+
toString() - Method in class org.json.JSONObject
+
+
Make a JSON text of this JSONObject.
+
+
toString(int) - Method in class org.json.JSONObject
+
+
Make a prettyprinted JSON text of this JSONObject.
+
+
toString() - Method in class org.json.JSONTokener
+
+
Make a printable string of this JSONTokener.
+
+
toString(Object) - Static method in class org.json.XML
+
+
Convert a JSONObject into a well-formed, element-normal XML string.
+
+
toString(Object, String) - Static method in class org.json.XML
+
+
Convert a JSONObject into a well-formed, element-normal XML string.
+
+
toString() - Method in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
toString() - Method in class org.loklak.data.Campaign
+
 
+
toString() - Method in class org.loklak.geo.GeoJsonReader.Feature
+
 
+
toString() - Method in class org.loklak.geo.GeoLocation
+
 
+
toString() - Method in interface org.loklak.geo.GeoPoint
+
+
printout format of the point
+
+
toString() - Method in class org.loklak.geo.IntegerGeoPoint
+
 
+
toString() - Method in class org.loklak.http.AccessTracker.Track
+
 
+
toString() - Method in class org.loklak.objects.AbstractObjectEntry
+
 
+
toString() - Method in class org.loklak.objects.MessageEntry.TextLinkMap
+
 
+
toString() - Method in interface org.loklak.objects.ObjectEntry
+
 
+
toString() - Method in class org.loklak.objects.Timeline
+
 
+
toString() - Method in class org.loklak.objects.Timeline2
+
 
+
toString() - Method in class org.loklak.objects.UserEntry
+
 
+
toString() - Method in class org.loklak.rss.RSSFeed
+
 
+
toString() - Method in enum org.loklak.rss.RSSMessage.Token
+
 
+
toString() - Method in class org.loklak.rss.RSSMessage
+
 
+
toString(boolean) - Method in class org.loklak.rss.RSSMessage
+
 
+
toString() - Method in class org.loklak.server.Client
+
 
+
toString() - Method in class org.loklak.susi.SusiTransfer
+
 
+
toString() - Method in class org.loklak.tools.bayes.Classification
+
toString() - Method in class org.loklak.tools.BufferedRandomAccessFile.IndexedLine
+
 
+
toString() - Method in class org.loklak.tools.ByteBuffer
+
 
+
toString(int, int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
toString() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.JsonHandle
+
 
+
toString() - Method in class org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
+
 
+
toStringBuilder(int, int, int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
toSusi() - Method in class org.loklak.objects.ResultList
+
 
+
toSusi(boolean) - Method in class org.loklak.objects.Timeline
+
 
+
toSusi(boolean) - Method in class org.loklak.objects.Timeline2
+
 
+
toTimeline() - Method in class org.loklak.objects.Timeline2
+
 
+
trace(Throwable) - Static method in class org.loklak.data.DAO
+
+
For Stacktracing exceptions (preferred over debug).
+
+
Track(String, String, String) - Constructor for class org.loklak.http.AccessTracker.Track
+
 
+
Track(String) - Constructor for class org.loklak.http.AccessTracker.Track
+
 
+
track - Variable in class org.loklak.server.Query
+
 
+
translate4scraper() - Method in class org.loklak.objects.QueryEntry.Tokens
+
 
+
transmitMessage(TwitterScraper.TwitterTweet, UserEntry) - Method in class org.loklak.data.OutgoingMessageBuffer
+
 
+
transmitTimelineToBackend(Timeline) - Method in class org.loklak.data.OutgoingMessageBuffer
+
 
+
trim(int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
trim(int, int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
TwitterAnalysisService - Class in org.loklak.api.cms
+
 
+
TwitterAnalysisService() - Constructor for class org.loklak.api.cms.TwitterAnalysisService
+
 
+
TwitterAPI - Class in org.loklak.harvester
+
 
+
TwitterAPI() - Constructor for class org.loklak.harvester.TwitterAPI
+
 
+
TwitterScraper - Class in org.loklak.harvester
+
 
+
TwitterScraper() - Constructor for class org.loklak.harvester.TwitterScraper
+
 
+
TwitterScraper.TwitterTweet - Class in org.loklak.harvester
+
 
+
TwitterTweet(String, long, String, String, String, long, long, Collection<String>, Collection<String>, String, String, UserEntry, boolean, boolean) - Constructor for class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
TwitterTweet(JSONObject) - Constructor for class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
TwitterTweet() - Constructor for class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
TZ_GMT - Static variable in class org.loklak.rss.RSSMessage
+
+
pattern for a W3C datetime variant of a non-localized ISO8601 date
+
+
+ + + +

U

+
+
u - Variable in class org.loklak.data.DAO.MessageWrapper
+
 
+
UNDERSCORE - Static variable in class org.loklak.tools.CommonPattern
+
 
+
unicode2html(String, boolean) - Static method in class org.loklak.tools.CharacterCoding
+
+
Replaces characters which have special representation in HTML.
+
+
unicode2xml(String, boolean) - Static method in class org.loklak.tools.CharacterCoding
+
+
Replaces characters which have special representation in XML.
+
+
unify(String) - Method in class org.loklak.susi.SusiThought
+
+
Unification applies a piece of memory within the current argument to a statement + which creates an instantiated statement
+
+
unShorten(String) - Static method in class org.loklak.harvester.RedirectUnshortener
+
 
+
unshorten(String) - Static method in class org.loklak.harvester.TwitterScraper
+
 
+
until - Variable in class org.loklak.objects.QueryEntry.ElasticsearchQuery
+
 
+
update(Peer) - Method in class org.loklak.objects.Peers
+
 
+
update(long, boolean) - Method in class org.loklak.objects.QueryEntry
+
+
update the query entry
+
+
update() - Method in class org.loklak.objects.QueryEntry
+
+
A 'blind' update can be done if the user submits a query but there are rules which prevent that the target system is queried + as well.
+
+
update() - Method in class org.loklak.tools.CacheStats
+
 
+
updateAccessTime() - Method in class org.loklak.objects.Timeline
+
 
+
updateAccessTime() - Method in class org.loklak.objects.Timeline2
+
 
+
updatefix() - Method in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
updateFrontPeerCache(RemoteAccess) - Static method in class org.loklak.data.DAO
+
 
+
upgrade() - Static method in class org.loklak.Caretaker
+
+
loklak upgrades itself if this is called
+
+
upgradeTime - Static variable in class org.loklak.Caretaker
+
 
+
url(int) - Method in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
user2json(User) - Static method in class org.loklak.harvester.TwitterAPI
+
 
+
USER_AGENT - Static variable in class org.loklak.http.ClientConnection
+
 
+
user_dump - Static variable in class org.loklak.data.DAO
+
 
+
USER_DUMP_FILE_PREFIX - Static variable in class org.loklak.data.DAO
+
 
+
UserAccountPermissions - Class in org.loklak.api.cms
+
 
+
UserAccountPermissions() - Constructor for class org.loklak.api.cms.UserAccountPermissions
+
 
+
UserEntry - Class in org.loklak.objects
+
 
+
UserEntry(String, String, String, String) - Constructor for class org.loklak.objects.UserEntry
+
 
+
UserEntry(JSONObject) - Constructor for class org.loklak.objects.UserEntry
+
 
+
UserFactory - Class in org.loklak.data
+
 
+
UserFactory(ElasticsearchClient, String, int, int) - Constructor for class org.loklak.data.UserFactory
+
 
+
UserManagementService - Class in org.loklak.api.cms
+
 
+
UserManagementService() - Constructor for class org.loklak.api.cms.UserManagementService
+
 
+
UserRole - Class in org.loklak.server
+
 
+
UserRole(String, BaseUserRole, UserRole, JSONObject) - Constructor for class org.loklak.server.UserRole
+
 
+
userRoles - Static variable in class org.loklak.data.DAO
+
 
+
UserRoles - Class in org.loklak.server
+
 
+
UserRoles(JSONObject) - Constructor for class org.loklak.server.UserRoles
+
 
+
users - Static variable in class org.loklak.data.DAO
+
 
+
UTCCalendar - Static variable in class org.loklak.tools.DateParser
+
 
+
utcFormatter - Static variable in class org.loklak.objects.AbstractObjectEntry
+
 
+
UTCtimeZone - Static variable in class org.loklak.tools.DateParser
+
 
+
UTF8 - Class in org.loklak.tools
+
 
+
UTF8() - Constructor for class org.loklak.tools.UTF8
+
 
+
+ + + +

V

+
+
validate(String) - Method in class org.loklak.harvester.JsonValidator
+
 
+
ValidateServlet - Class in org.loklak.api.iot
+
 
+
ValidateServlet() - Constructor for class org.loklak.api.iot.ValidateServlet
+
 
+
valueFrom(Map<String, String>, String) - Method in enum org.loklak.rss.RSSMessage.Token
+
 
+
valueOf(String) - Static method in enum org.loklak.data.Campaigns.State
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.data.Classifier.Category
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.data.Classifier.Context
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.data.DAO.IndexName
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.geo.LocationSource
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.graphics.RasterPlotter.DrawMode
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.graphics.RasterPlotter.FilterMode
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.harvester.HarvestingFrequency
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(int) - Static method in enum org.loklak.harvester.HarvestingFrequency
+
 
+
valueOf(String) - Static method in enum org.loklak.harvester.JsonFieldConverter.JsonConversionSchemaEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.harvester.JsonValidator.JsonSchemaEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(SourceType) - Static method in enum org.loklak.harvester.JsonValidator.JsonSchemaEnum
+
 
+
valueOf(String) - Static method in enum org.loklak.http.RemoteAccess.FileType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.AccountEntry.Field
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.ImportProfileEntry.EntryStatus
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.ImportProfileEntry.PrivacyStatus
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.Peer.Status
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.ProviderType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.QueryEntry.PlaceContext
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.SourceType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.Timeline.Order
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.objects.Timeline2.Order
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.rss.RSSMessage.Token
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.server.BaseUserRole
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.server.ClientCredential.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.server.ClientIdentity.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.server.ClientService.Type
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.server.HttpsMode
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.tools.Classification.ContentDomain
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.tools.OS.System
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum org.loklak.tools.storage.JsonRepository.Mode
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOfNick(String) - Static method in class org.loklak.rss.RSSMessage
+
 
+
values() - Static method in enum org.loklak.data.Campaigns.State
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.data.Classifier.Category
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.data.Classifier.Context
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.data.DAO.IndexName
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.geo.LocationSource
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.graphics.RasterPlotter.DrawMode
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.graphics.RasterPlotter.FilterMode
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.harvester.HarvestingFrequency
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.harvester.JsonFieldConverter.JsonConversionSchemaEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.harvester.JsonValidator.JsonSchemaEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.http.RemoteAccess.FileType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.AccountEntry.Field
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.ImportProfileEntry.EntryStatus
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.ImportProfileEntry.PrivacyStatus
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.Peer.Status
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.ProviderType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.QueryEntry.PlaceContext
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.SourceType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.Timeline.Order
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.objects.Timeline2.Order
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.rss.RSSMessage.Token
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.server.BaseUserRole
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.server.ClientCredential.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.server.ClientIdentity.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.server.ClientService.Type
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.server.HttpsMode
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.tools.Classification.ContentDomain
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.tools.OS.System
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum org.loklak.tools.storage.JsonRepository.Mode
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
valueToString(Object) - Static method in class org.json.JSONObject
+
+
Make a JSON text of an Object value.
+
+
variable_pattern - Static variable in class org.loklak.susi.SusiThought
+
 
+
velocity - Variable in class org.loklak.api.iot.NMEAServlet.GPSPosition
+
 
+
verificationLinkPlaceholder - Static variable in class org.loklak.api.cms.SignUpService
+
 
+
verify(JSONObject, PublicKey) - Static method in class org.loklak.tools.JsonSignature
+
+
Verfies if the signature of a JSONObject is valid
+
+
verify(Map<String, byte[]>, PublicKey) - Static method in class org.loklak.tools.JsonSignature
+
 
+
VERTICALBAR - Static variable in class org.loklak.tools.CommonPattern
+
 
+
videos - Variable in class org.loklak.objects.MessageEntry
+
 
+
vocabulary() - Method in enum org.loklak.data.Classifier.Context
+
 
+
+ + + +

W

+
+
wait_ready(long) - Static method in class org.loklak.data.DAO
+
 
+
wait_ready(long, ClusterHealthStatus) - Method in class org.loklak.data.ElasticsearchClient
+
 
+
waitReady(long) - Method in class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
WEEK_MILLIS - Static variable in class org.loklak.tools.DateParser
+
 
+
WeiboInfoScraper - Class in org.loklak.harvester
+
 
+
WeiboInfoScraper() - Constructor for class org.loklak.harvester.WeiboInfoScraper
+
 
+
west_lon - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
WHITESPACE_PATTERN - Static variable in class org.loklak.data.Classifier
+
 
+
width - Variable in class org.loklak.graphics.RasterPlotter
+
 
+
willBeTimeConsuming() - Method in class org.loklak.harvester.TwitterScraper.TwitterTweet
+
 
+
wrap(Object) - Static method in class org.json.JSONObject
+
+
Wrap an object, if necessary.
+
+
WrapperJsonFactory(JSONObject) - Constructor for class org.loklak.tools.storage.JsonStreamReader.WrapperJsonFactory
+
 
+
write(Writer) - Method in class org.json.JSONArray
+
+
Write the contents of the JSONArray as JSON text to a writer.
+
+
write(Writer, int, int) - Method in class org.json.JSONArray
+
+
Write the contents of the JSONArray as JSON text to a writer.
+
+
write(Writer) - Method in class org.json.JSONObject
+
+
Write the contents of the JSONObject as JSON text to a writer.
+
+
write(Writer, int, int) - Method in class org.json.JSONObject
+
+
Write the contents of the JSONObject as JSON text to a writer.
+
+
write(int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
write(char) - Method in class org.loklak.tools.ByteBuffer
+
 
+
write(byte[]) - Method in class org.loklak.tools.ByteBuffer
+
 
+
write(byte[], int, int) - Method in class org.loklak.tools.ByteBuffer
+
 
+
write(JSONObject) - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
write(JSONObject, char) - Method in class org.loklak.tools.storage.JsonRepository
+
 
+
writeAccount(AccountEntry, boolean) - Static method in class org.loklak.data.DAO
+
+
Store an account together with a user into the search index + This method is synchronized to prevent concurrent IO caused by this call.
+
+
writeArray(JsonGenerator, String, Collection<String>) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
writeArray(JsonGenerator, String, String[]) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
writeArray(JsonGenerator, String, double[]) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
writeDate(JsonGenerator, String, long) - Static method in class org.loklak.objects.AbstractObjectEntry
+
 
+
writeDump - Static variable in class org.loklak.data.DAO
+
 
+
writeEntries(Collection<IndexEntry<IndexObject>>) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
writeEntries(Collection<IndexEntry<Entry>>) - Method in interface org.loklak.data.IndexFactory
+
 
+
writeEntry(IndexEntry<IndexObject>) - Method in class org.loklak.data.AbstractIndexFactory
+
 
+
writeEntry(IndexEntry<Entry>) - Method in interface org.loklak.data.IndexFactory
+
 
+
writeImage(RemoteAccess.FileTypeEncoding, HttpServletResponse, Query, RasterPlotter) - Static method in class org.loklak.http.RemoteAccess
+
 
+
writeImportProfile(ImportProfileEntry, boolean) - Static method in class org.loklak.data.DAO
+
+
Store an import profile into the search index + This method is synchronized to prevent concurrent IO caused by this call.
+
+
writeLines(File, String[]) - Static method in class org.loklak.tools.BufferedRandomAccessFile.Test
+
 
+
writeMap(String, Map<String, Object>, String, String) - Method in class org.loklak.data.ElasticsearchClient
+
+
Write a json document into the search index.
+
+
writeMapBulk(String, List<ElasticsearchClient.BulkEntry>) - Method in class org.loklak.data.ElasticsearchClient
+
+
bulk message write
+
+
writeMessage(DAO.MessageWrapper) - Static method in class org.loklak.data.DAO
+
+
Store a message together with a user into the search index
+
+
writeMessageBulk(Collection<DAO.MessageWrapper>) - Static method in class org.loklak.data.DAO
+
 
+
writeSource(String, XContentBuilder, String, String, long, VersionType) - Method in class org.loklak.data.ElasticsearchClient
+
+
Write a json document into the search index.
+
+
writeTo(OutputStream) - Method in class org.loklak.tools.ByteBuffer
+
 
+
writeToIndex() - Method in class org.loklak.objects.Timeline
+
 
+
writeToIndex() - Method in class org.loklak.objects.Timeline2
+
 
+
+ + + +

X

+
+
x - Variable in class org.loklak.graphics.GraphPlotter.Point
+
 
+
XML - Class in org.json
+
+
This provides static methods to convert an XML text into a JSONObject, + and to covert a JSONObject into an XML text.
+
+
XML() - Constructor for class org.json.XML
+
 
+
XMLServlet - Class in org.loklak.api.tools
+
 
+
XMLServlet() - Constructor for class org.loklak.api.tools.XMLServlet
+
 
+
XMLTokener - Class in org.json
+
+
The XMLTokener extends the JSONTokener to provide additional methods + for the parsing of XML texts.
+
+
XMLTokener(String) - Constructor for class org.json.XMLTokener
+
+
Construct an XMLTokener from a string.
+
+
xtile - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
+ + + +

Y

+
+
y - Variable in class org.loklak.graphics.GraphPlotter.Point
+
 
+
YahiHazeServlet - Class in org.loklak.api.iot
+
 
+
YahiHazeServlet() - Constructor for class org.loklak.api.iot.YahiHazeServlet
+
 
+
YoutubeScraper - Class in org.loklak.harvester
+
 
+
YoutubeScraper() - Constructor for class org.loklak.harvester.YoutubeScraper
+
 
+
YoutubeScraper(Map<String, String>) - Constructor for class org.loklak.harvester.YoutubeScraper
+
 
+
YoutubeScraper(String) - Constructor for class org.loklak.harvester.YoutubeScraper
+
 
+
ytile - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
+ + + +

Z

+
+
zoom - Variable in class org.loklak.geo.OSMTile.TileCoordinates
+
 
+
+A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/overview-frame.html b/javadoc/overview-frame.html new file mode 100644 index 0000000..72351af --- /dev/null +++ b/javadoc/overview-frame.html @@ -0,0 +1,46 @@ + + + + + +Overview List + + + + + + + +

 

+ + diff --git a/javadoc/overview-summary.html b/javadoc/overview-summary.html new file mode 100644 index 0000000..5c1c978 --- /dev/null +++ b/javadoc/overview-summary.html @@ -0,0 +1,233 @@ + + + + + +Overview + + + + + + + + +
+ + + + + + + +
+ + + + +
+ + + + + + + +
+ + + + diff --git a/javadoc/overview-tree.html b/javadoc/overview-tree.html new file mode 100644 index 0000000..8f75b00 --- /dev/null +++ b/javadoc/overview-tree.html @@ -0,0 +1,656 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + + +
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/javadoc/package-list b/javadoc/package-list new file mode 100644 index 0000000..7ed0fb7 --- /dev/null +++ b/javadoc/package-list @@ -0,0 +1,26 @@ +org.json +org.loklak +org.loklak.api +org.loklak.api.admin +org.loklak.api.aggregation +org.loklak.api.amazon +org.loklak.api.cms +org.loklak.api.geo +org.loklak.api.iot +org.loklak.api.p2p +org.loklak.api.tools +org.loklak.api.vis +org.loklak.data +org.loklak.geo +org.loklak.graphics +org.loklak.harvester +org.loklak.harvester.strategy +org.loklak.http +org.loklak.objects +org.loklak.rss +org.loklak.server +org.loklak.stream +org.loklak.susi +org.loklak.tools +org.loklak.tools.bayes +org.loklak.tools.storage diff --git a/javadoc/script.js b/javadoc/script.js new file mode 100644 index 0000000..c3a1cae --- /dev/null +++ b/javadoc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/javadoc/serialized-form.html b/javadoc/serialized-form.html new file mode 100644 index 0000000..fdd56e8 --- /dev/null +++ b/javadoc/serialized-form.html @@ -0,0 +1,231 @@ + + + + + +Serialized Form + + + + + + + + + + + +
+

Serialized Form

+
+
+
    +
  • +

    Package org.json

    + +
  • +
  • +

    Package org.loklak.objects

    +
      +
    • + + +

      Class org.loklak.objects.Peers extends java.util.HashMap<java.lang.String,Peer> implements Serializable

      +
      +
      serialVersionUID:
      +
      2767548867468641625L
      +
      +
    • +
    • + + +

      Class org.loklak.objects.ResultList extends java.util.ArrayList<E> implements Serializable

      +
      +
      serialVersionUID:
      +
      -982453065951290203L
      +
      +
        +
      • +

        Serialized Fields

        +
          +
        • +

          hits

          +
          long hits
          +
        • +
        +
      • +
      +
    • +
    +
  • +
  • +

    Package org.loklak.server

    +
      +
    • + + +

      Class org.loklak.server.APIException extends java.lang.Exception implements Serializable

      +
      +
      serialVersionUID:
      +
      -6974553774866005875L
      +
      +
        +
      • +

        Serialized Fields

        +
          +
        • +

          statusCode

          +
          int statusCode
          +
        • +
        +
      • +
      +
    • +
    • + + +

      Class org.loklak.server.WeiboUserInfo extends java.lang.Object implements Serializable

      +
    • +
    +
  • +
  • +

    Package org.loklak.susi

    +
      +
    • + + +

      Class org.loklak.susi.SusiProcedures extends java.util.LinkedHashMap<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,SusiThought>> implements Serializable

      +
      +
      serialVersionUID:
      +
      4531596762427825563L
      +
      +
    • +
    +
  • +
  • +

    Package org.loklak.tools.storage

    + +
  • +
+
+ + + + + + diff --git a/javadoc/stylesheet.css b/javadoc/stylesheet.css new file mode 100644 index 0000000..b8dad08 --- /dev/null +++ b/javadoc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} From 9fc5f82a4694abfb43a8a58771c542b109a2313e Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:43:41 +0530 Subject: [PATCH 05/18] Create 1. --- javadoc/org/json/1. | 1 + 1 file changed, 1 insertion(+) create mode 100644 javadoc/org/json/1. diff --git a/javadoc/org/json/1. b/javadoc/org/json/1. new file mode 100644 index 0000000..42d601e --- /dev/null +++ b/javadoc/org/json/1. @@ -0,0 +1 @@ +cvcv vbb From efbc423ef94a1dcad345a4d5148e8e746c80e728 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:45:28 +0530 Subject: [PATCH 06/18] Adding javadoc for json --- javadoc/org/json/CDL.html | 524 ++++++ javadoc/org/json/JSONArray.html | 1770 +++++++++++++++++++ javadoc/org/json/JSONException.html | 314 ++++ javadoc/org/json/JSONML.html | 442 +++++ javadoc/org/json/JSONObject.html | 2243 +++++++++++++++++++++++++ javadoc/org/json/JSONString.html | 234 +++ javadoc/org/json/JSONTokener.html | 673 ++++++++ javadoc/org/json/XML.html | 590 +++++++ javadoc/org/json/XMLTokener.html | 469 ++++++ javadoc/org/json/package-frame.html | 34 + javadoc/org/json/package-summary.html | 221 +++ javadoc/org/json/package-tree.html | 161 ++ 12 files changed, 7675 insertions(+) create mode 100644 javadoc/org/json/CDL.html create mode 100644 javadoc/org/json/JSONArray.html create mode 100644 javadoc/org/json/JSONException.html create mode 100644 javadoc/org/json/JSONML.html create mode 100644 javadoc/org/json/JSONObject.html create mode 100644 javadoc/org/json/JSONString.html create mode 100644 javadoc/org/json/JSONTokener.html create mode 100644 javadoc/org/json/XML.html create mode 100644 javadoc/org/json/XMLTokener.html create mode 100644 javadoc/org/json/package-frame.html create mode 100644 javadoc/org/json/package-summary.html create mode 100644 javadoc/org/json/package-tree.html diff --git a/javadoc/org/json/CDL.html b/javadoc/org/json/CDL.html new file mode 100644 index 0000000..cd1c1ba --- /dev/null +++ b/javadoc/org/json/CDL.html @@ -0,0 +1,524 @@ + + + + + +CDL + + + + + + + + + + + + +
+
org.json
+

Class CDL

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.CDL
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CDL
    +extends java.lang.Object
    +
    This provides static methods to convert comma delimited text into a + JSONArray, and to convert a JSONArray into comma delimited text. Comma + delimited text is a very popular format for data interchange. It is + understood by most database, spreadsheet, and organizer programs. +

    + Each row of text represents a row in a table or a data record. Each row + ends with a NEWLINE character. Each row contains one or more values. + Values are separated by commas. A value can contain any character except + for comma, unless is is wrapped in single quotes or double quotes. +

    + The first row usually contains the names of the columns. +

    + A comma delimited list can be converted into a JSONArray of JSONObjects. + The names for the elements in the JSONObjects can be taken from the names + in the first row.

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CDL() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static JSONArrayrowToJSONArray(JSONTokener x) +
      Produce a JSONArray of strings from a row of comma delimited values.
      +
      static JSONObjectrowToJSONObject(JSONArray names, + JSONTokener x) +
      Produce a JSONObject from a row of comma delimited text, using a + parallel JSONArray of strings to provides the names of the elements.
      +
      static java.lang.StringrowToString(JSONArray ja) +
      Produce a comma delimited text row from a JSONArray.
      +
      static JSONArraytoJSONArray(JSONArray names, + JSONTokener x) +
      Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.
      +
      static JSONArraytoJSONArray(JSONArray names, + java.lang.String string) +
      Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.
      +
      static JSONArraytoJSONArray(JSONTokener x) +
      Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.
      +
      static JSONArraytoJSONArray(java.lang.String string) +
      Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.
      +
      static java.lang.StringtoString(JSONArray ja) +
      Produce a comma delimited text from a JSONArray of JSONObjects.
      +
      static java.lang.StringtoString(JSONArray names, + JSONArray ja) +
      Produce a comma delimited text from a JSONArray of JSONObjects using + a provided list of names.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CDL

        +
        public CDL()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        rowToJSONArray

        +
        public static JSONArray rowToJSONArray(JSONTokener x)
        +                                throws JSONException
        +
        Produce a JSONArray of strings from a row of comma delimited values.
        +
        +
        Parameters:
        +
        x - A JSONTokener of the source text.
        +
        Returns:
        +
        A JSONArray of strings.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        rowToJSONObject

        +
        public static JSONObject rowToJSONObject(JSONArray names,
        +                                         JSONTokener x)
        +                                  throws JSONException
        +
        Produce a JSONObject from a row of comma delimited text, using a + parallel JSONArray of strings to provides the names of the elements.
        +
        +
        Parameters:
        +
        names - A JSONArray of names. This is commonly obtained from the + first row of a comma delimited text file using the rowToJSONArray + method.
        +
        x - A JSONTokener of the source text.
        +
        Returns:
        +
        A JSONObject combining the names and values.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        rowToString

        +
        public static java.lang.String rowToString(JSONArray ja)
        +
        Produce a comma delimited text row from a JSONArray. Values containing + the comma character will be quoted. Troublesome characters may be + removed.
        +
        +
        Parameters:
        +
        ja - A JSONArray of strings.
        +
        Returns:
        +
        A string ending in NEWLINE.
        +
        +
      • +
      + + + +
        +
      • +

        toJSONArray

        +
        public static JSONArray toJSONArray(java.lang.String string)
        +                             throws JSONException
        +
        Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.
        +
        +
        Parameters:
        +
        string - The comma delimited text.
        +
        Returns:
        +
        A JSONArray of JSONObjects.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONArray

        +
        public static JSONArray toJSONArray(JSONTokener x)
        +                             throws JSONException
        +
        Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.
        +
        +
        Parameters:
        +
        x - The JSONTokener containing the comma delimited text.
        +
        Returns:
        +
        A JSONArray of JSONObjects.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONArray

        +
        public static JSONArray toJSONArray(JSONArray names,
        +                                    java.lang.String string)
        +                             throws JSONException
        +
        Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.
        +
        +
        Parameters:
        +
        names - A JSONArray of strings.
        +
        string - The comma delimited text.
        +
        Returns:
        +
        A JSONArray of JSONObjects.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONArray

        +
        public static JSONArray toJSONArray(JSONArray names,
        +                                    JSONTokener x)
        +                             throws JSONException
        +
        Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.
        +
        +
        Parameters:
        +
        names - A JSONArray of strings.
        +
        x - A JSONTokener of the source text.
        +
        Returns:
        +
        A JSONArray of JSONObjects.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static java.lang.String toString(JSONArray ja)
        +                                 throws JSONException
        +
        Produce a comma delimited text from a JSONArray of JSONObjects. The + first row will be a list of names obtained by inspecting the first + JSONObject.
        +
        +
        Parameters:
        +
        ja - A JSONArray of JSONObjects.
        +
        Returns:
        +
        A comma delimited text.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static java.lang.String toString(JSONArray names,
        +                                        JSONArray ja)
        +                                 throws JSONException
        +
        Produce a comma delimited text from a JSONArray of JSONObjects using + a provided list of names. The list of names is not included in the + output.
        +
        +
        Parameters:
        +
        names - A JSONArray of strings.
        +
        ja - A JSONArray of JSONObjects.
        +
        Returns:
        +
        A comma delimited text.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/JSONArray.html b/javadoc/org/json/JSONArray.html new file mode 100644 index 0000000..afccbc8 --- /dev/null +++ b/javadoc/org/json/JSONArray.html @@ -0,0 +1,1770 @@ + + + + + +JSONArray + + + + + + + + + + + + +
+
org.json
+

Class JSONArray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.JSONArray
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Iterable<java.lang.Object>
    +
    +
    +
    +
    public class JSONArray
    +extends java.lang.Object
    +implements java.lang.Iterable<java.lang.Object>
    +
    A JSONArray is an ordered sequence of values. Its external text form is a + string wrapped in square brackets with commas separating the values. The + internal form is an object having get and opt + methods for accessing the values by index, and put methods for + adding or replacing values. The values can be any of these types: + Boolean, JSONArray, JSONObject, + Number, String, or the + JSONObject.NULL object. +

    + The constructor can convert a JSON text into a Java object. The + toString method converts to JSON text. +

    + A get method returns a value if one can be found, and throws an + exception if one cannot be found. An opt method returns a + default value instead of throwing an exception, and so is useful for + obtaining optional values. +

    + The generic get() and opt() methods return an + object which you can cast or query for type. There are also typed + get and opt methods that do type checking and type + coercion for you. +

    + The texts produced by the toString methods strictly conform to + JSON syntax rules. The constructors are more forgiving in the texts they will + accept: +

      +
    • An extra , (comma) may appear just + before the closing bracket.
    • +
    • The null value will be inserted when there is , +  (comma) elision.
    • +
    • Strings may be quoted with ' (single + quote).
    • +
    • Strings do not need to be quoted at all if they do not begin with a quote + or single quote, and if they do not contain leading or trailing spaces, and + if they do not contain any of these characters: + { } [ ] / \ : , # and if they do not look like numbers and + if they are not the reserved words true, false, or + null.
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JSONArray() +
      Construct an empty JSONArray.
      +
      JSONArray(java.util.Collection<?> collection) +
      Construct a JSONArray from a Collection.
      +
      JSONArray(JSONTokener x) +
      Construct a JSONArray from a JSONTokener.
      +
      JSONArray(java.lang.Object array) +
      Construct a JSONArray from an array
      +
      JSONArray(java.lang.String source) +
      Construct a JSONArray from a source JSON text.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectget(int index) +
      Get the object value associated with an index.
      +
      java.math.BigDecimalgetBigDecimal(int index) +
      Get the BigDecimal value associated with an index.
      +
      java.math.BigIntegergetBigInteger(int index) +
      Get the BigInteger value associated with an index.
      +
      booleangetBoolean(int index) +
      Get the boolean value associated with an index.
      +
      doublegetDouble(int index) +
      Get the double value associated with an index.
      +
      <E extends java.lang.Enum<E>>
      E
      getEnum(java.lang.Class<E> clazz, + int index) +
      Get the enum value associated with an index.
      +
      intgetInt(int index) +
      Get the int value associated with an index.
      +
      JSONArraygetJSONArray(int index) +
      Get the JSONArray associated with an index.
      +
      JSONObjectgetJSONObject(int index) +
      Get the JSONObject associated with an index.
      +
      longgetLong(int index) +
      Get the long value associated with an index.
      +
      java.lang.StringgetString(int index) +
      Get the string associated with an index.
      +
      booleanisNull(int index) +
      Determine if the value is null.
      +
      java.util.Iterator<java.lang.Object>iterator() 
      java.lang.Stringjoin(java.lang.String separator) +
      Make a string from the contents of this JSONArray.
      +
      intlength() +
      Get the number of elements in the JSONArray, included nulls.
      +
      java.lang.Objectopt(int index) +
      Get the optional object value associated with an index.
      +
      java.math.BigDecimaloptBigDecimal(int index, + java.math.BigDecimal defaultValue) +
      Get the optional BigDecimal value associated with an index.
      +
      java.math.BigIntegeroptBigInteger(int index, + java.math.BigInteger defaultValue) +
      Get the optional BigInteger value associated with an index.
      +
      booleanoptBoolean(int index) +
      Get the optional boolean value associated with an index.
      +
      booleanoptBoolean(int index, + boolean defaultValue) +
      Get the optional boolean value associated with an index.
      +
      doubleoptDouble(int index) +
      Get the optional double value associated with an index.
      +
      doubleoptDouble(int index, + double defaultValue) +
      Get the optional double value associated with an index.
      +
      <E extends java.lang.Enum<E>>
      E
      optEnum(java.lang.Class<E> clazz, + int index) +
      Get the enum value associated with a key.
      +
      <E extends java.lang.Enum<E>>
      E
      optEnum(java.lang.Class<E> clazz, + int index, + E defaultValue) +
      Get the enum value associated with a key.
      +
      intoptInt(int index) +
      Get the optional int value associated with an index.
      +
      intoptInt(int index, + int defaultValue) +
      Get the optional int value associated with an index.
      +
      JSONArrayoptJSONArray(int index) +
      Get the optional JSONArray associated with an index.
      +
      JSONObjectoptJSONObject(int index) +
      Get the optional JSONObject associated with an index.
      +
      longoptLong(int index) +
      Get the optional long value associated with an index.
      +
      longoptLong(int index, + long defaultValue) +
      Get the optional long value associated with an index.
      +
      java.lang.StringoptString(int index) +
      Get the optional string value associated with an index.
      +
      java.lang.StringoptString(int index, + java.lang.String defaultValue) +
      Get the optional string associated with an index.
      +
      JSONArrayput(boolean value) +
      Append a boolean value.
      +
      JSONArrayput(java.util.Collection<?> value) +
      Put a value in the JSONArray, where the value will be a JSONArray which + is produced from a Collection.
      +
      JSONArrayput(double value) +
      Append a double value.
      +
      JSONArrayput(int value) +
      Append an int value.
      +
      JSONArrayput(int index, + boolean value) +
      Put or replace a boolean value in the JSONArray.
      +
      JSONArrayput(int index, + java.util.Collection<?> value) +
      Put a value in the JSONArray, where the value will be a JSONArray which + is produced from a Collection.
      +
      JSONArrayput(int index, + double value) +
      Put or replace a double value.
      +
      JSONArrayput(int index, + int value) +
      Put or replace an int value.
      +
      JSONArrayput(int index, + long value) +
      Put or replace a long value.
      +
      JSONArrayput(int index, + java.util.Map<?,?> value) +
      Put a value in the JSONArray, where the value will be a JSONObject that + is produced from a Map.
      +
      JSONArrayput(int index, + java.lang.Object value) +
      Put or replace an object value in the JSONArray.
      +
      JSONArrayput(long value) +
      Append an long value.
      +
      JSONArrayput(java.util.Map<?,?> value) +
      Put a value in the JSONArray, where the value will be a JSONObject which + is produced from a Map.
      +
      JSONArrayput(java.lang.Object value) +
      Append an object value.
      +
      java.lang.Objectremove(int index) +
      Remove an index and close the hole.
      +
      booleansimilar(java.lang.Object other) +
      Determine if two JSONArrays are similar.
      +
      JSONObjecttoJSONObject(JSONArray names) +
      Produce a JSONObject by combining a JSONArray of names with the values of + this JSONArray.
      +
      java.lang.StringtoString() +
      Make a JSON text of this JSONArray.
      +
      java.lang.StringtoString(int indentFactor) +
      Make a prettyprinted JSON text of this JSONArray.
      +
      java.io.Writerwrite(java.io.Writer writer) +
      Write the contents of the JSONArray as JSON text to a writer.
      +
      java.io.Writerwrite(java.io.Writer writer, + int indentFactor, + int indent) +
      Write the contents of the JSONArray as JSON text to a writer.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.lang.Iterable

        +forEach, spliterator
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JSONArray

        +
        public JSONArray()
        +
        Construct an empty JSONArray.
        +
      • +
      + + + +
        +
      • +

        JSONArray

        +
        public JSONArray(JSONTokener x)
        +          throws JSONException
        +
        Construct a JSONArray from a JSONTokener.
        +
        +
        Parameters:
        +
        x - A JSONTokener
        +
        Throws:
        +
        JSONException - If there is a syntax error.
        +
        +
      • +
      + + + +
        +
      • +

        JSONArray

        +
        public JSONArray(java.lang.String source)
        +          throws JSONException
        +
        Construct a JSONArray from a source JSON text.
        +
        +
        Parameters:
        +
        source - A string that begins with [ (left + bracket) and ends with ] +  (right bracket).
        +
        Throws:
        +
        JSONException - If there is a syntax error.
        +
        +
      • +
      + + + +
        +
      • +

        JSONArray

        +
        public JSONArray(java.util.Collection<?> collection)
        +
        Construct a JSONArray from a Collection.
        +
        +
        Parameters:
        +
        collection - A Collection.
        +
        +
      • +
      + + + +
        +
      • +

        JSONArray

        +
        public JSONArray(java.lang.Object array)
        +          throws JSONException
        +
        Construct a JSONArray from an array
        +
        +
        Throws:
        +
        JSONException - If not an array.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        iterator

        +
        public java.util.Iterator<java.lang.Object> iterator()
        +
        +
        Specified by:
        +
        iterator in interface java.lang.Iterable<java.lang.Object>
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.lang.Object get(int index)
        +                     throws JSONException
        +
        Get the object value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        An object value.
        +
        Throws:
        +
        JSONException - If there is no value for the index.
        +
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        public boolean getBoolean(int index)
        +                   throws JSONException
        +
        Get the boolean value associated with an index. The string values "true" + and "false" are converted to boolean.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The truth.
        +
        Throws:
        +
        JSONException - If there is no value for the index or if the value is not + convertible to boolean.
        +
        +
      • +
      + + + +
        +
      • +

        getDouble

        +
        public double getDouble(int index)
        +                 throws JSONException
        +
        Get the double value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        Throws:
        +
        JSONException - If the key is not found or if the value cannot be converted + to a number.
        +
        +
      • +
      + + + +
        +
      • +

        getEnum

        +
        public <E extends java.lang.Enum<E>> E getEnum(java.lang.Class<E> clazz,
        +                                               int index)
        +                                        throws JSONException
        +
        Get the enum value associated with an index.
        +
        +
        Parameters:
        +
        clazz - The type of enum to retrieve.
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The enum value at the index location
        +
        Throws:
        +
        JSONException - if the key is not found or if the value cannot be converted + to an enum.
        +
        +
      • +
      + + + +
        +
      • +

        getBigDecimal

        +
        public java.math.BigDecimal getBigDecimal(int index)
        +                                   throws JSONException
        +
        Get the BigDecimal value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        Throws:
        +
        JSONException - If the key is not found or if the value cannot be converted + to a BigDecimal.
        +
        +
      • +
      + + + +
        +
      • +

        getBigInteger

        +
        public java.math.BigInteger getBigInteger(int index)
        +                                   throws JSONException
        +
        Get the BigInteger value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        Throws:
        +
        JSONException - If the key is not found or if the value cannot be converted + to a BigInteger.
        +
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        public int getInt(int index)
        +           throws JSONException
        +
        Get the int value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        Throws:
        +
        JSONException - If the key is not found or if the value is not a number.
        +
        +
      • +
      + + + +
        +
      • +

        getJSONArray

        +
        public JSONArray getJSONArray(int index)
        +                       throws JSONException
        +
        Get the JSONArray associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        A JSONArray value.
        +
        Throws:
        +
        JSONException - If there is no value for the index. or if the value is not a + JSONArray
        +
        +
      • +
      + + + +
        +
      • +

        getJSONObject

        +
        public JSONObject getJSONObject(int index)
        +                         throws JSONException
        +
        Get the JSONObject associated with an index.
        +
        +
        Parameters:
        +
        index - subscript
        +
        Returns:
        +
        A JSONObject value.
        +
        Throws:
        +
        JSONException - If there is no value for the index or if the value is not a + JSONObject
        +
        +
      • +
      + + + +
        +
      • +

        getLong

        +
        public long getLong(int index)
        +             throws JSONException
        +
        Get the long value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        Throws:
        +
        JSONException - If the key is not found or if the value cannot be converted + to a number.
        +
        +
      • +
      + + + +
        +
      • +

        getString

        +
        public java.lang.String getString(int index)
        +                           throws JSONException
        +
        Get the string associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        A string value.
        +
        Throws:
        +
        JSONException - If there is no string value for the index.
        +
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        public boolean isNull(int index)
        +
        Determine if the value is null.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        true if the value at the index is null, or if there is no value.
        +
        +
      • +
      + + + +
        +
      • +

        join

        +
        public java.lang.String join(java.lang.String separator)
        +                      throws JSONException
        +
        Make a string from the contents of this JSONArray. The + separator string is inserted between each element. Warning: + This method assumes that the data structure is acyclical.
        +
        +
        Parameters:
        +
        separator - A string that will be inserted between the elements.
        +
        Returns:
        +
        a string.
        +
        Throws:
        +
        JSONException - If the array contains an invalid number.
        +
        +
      • +
      + + + +
        +
      • +

        length

        +
        public int length()
        +
        Get the number of elements in the JSONArray, included nulls.
        +
        +
        Returns:
        +
        The length (or size).
        +
        +
      • +
      + + + +
        +
      • +

        opt

        +
        public java.lang.Object opt(int index)
        +
        Get the optional object value associated with an index.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        An object value, or null if there is no object at that index.
        +
        +
      • +
      + + + +
        +
      • +

        optBoolean

        +
        public boolean optBoolean(int index)
        +
        Get the optional boolean value associated with an index. It returns false + if there is no value at that index, or if the value is not Boolean.TRUE + or the String "true".
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The truth.
        +
        +
      • +
      + + + +
        +
      • +

        optBoolean

        +
        public boolean optBoolean(int index,
        +                          boolean defaultValue)
        +
        Get the optional boolean value associated with an index. It returns the + defaultValue if there is no value at that index or if it is not a Boolean + or the String "true" or "false" (case insensitive).
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - A boolean default.
        +
        Returns:
        +
        The truth.
        +
        +
      • +
      + + + +
        +
      • +

        optDouble

        +
        public double optDouble(int index)
        +
        Get the optional double value associated with an index. NaN is returned + if there is no value for the index, or if the value is not a number and + cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optDouble

        +
        public double optDouble(int index,
        +                        double defaultValue)
        +
        Get the optional double value associated with an index. The defaultValue + is returned if there is no value for the index, or if the value is not a + number and cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - subscript
        +
        defaultValue - The default value.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optInt

        +
        public int optInt(int index)
        +
        Get the optional int value associated with an index. Zero is returned if + there is no value for the index, or if the value is not a number and + cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optInt

        +
        public int optInt(int index,
        +                  int defaultValue)
        +
        Get the optional int value associated with an index. The defaultValue is + returned if there is no value for the index, or if the value is not a + number and cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - The default value.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optEnum

        +
        public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz,
        +                                               int index)
        +
        Get the enum value associated with a key.
        +
        +
        Parameters:
        +
        clazz - The type of enum to retrieve.
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The enum value at the index location or null if not found
        +
        +
      • +
      + + + + + +
        +
      • +

        optEnum

        +
        public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz,
        +                                               int index,
        +                                               E defaultValue)
        +
        Get the enum value associated with a key.
        +
        +
        Parameters:
        +
        clazz - The type of enum to retrieve.
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - The default in case the value is not found
        +
        Returns:
        +
        The enum value at the index location or defaultValue if + the value is not found or cannot be assigned to clazz
        +
        +
      • +
      + + + +
        +
      • +

        optBigInteger

        +
        public java.math.BigInteger optBigInteger(int index,
        +                                          java.math.BigInteger defaultValue)
        +
        Get the optional BigInteger value associated with an index. The + defaultValue is returned if there is no value for the index, or if the + value is not a number and cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - The default value.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optBigDecimal

        +
        public java.math.BigDecimal optBigDecimal(int index,
        +                                          java.math.BigDecimal defaultValue)
        +
        Get the optional BigDecimal value associated with an index. The + defaultValue is returned if there is no value for the index, or if the + value is not a number and cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - The default value.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optJSONArray

        +
        public JSONArray optJSONArray(int index)
        +
        Get the optional JSONArray associated with an index.
        +
        +
        Parameters:
        +
        index - subscript
        +
        Returns:
        +
        A JSONArray value, or null if the index has no value, or if the + value is not a JSONArray.
        +
        +
      • +
      + + + +
        +
      • +

        optJSONObject

        +
        public JSONObject optJSONObject(int index)
        +
        Get the optional JSONObject associated with an index. Null is returned if + the key is not found, or null if the index has no value, or if the value + is not a JSONObject.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        A JSONObject value.
        +
        +
      • +
      + + + +
        +
      • +

        optLong

        +
        public long optLong(int index)
        +
        Get the optional long value associated with an index. Zero is returned if + there is no value for the index, or if the value is not a number and + cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optLong

        +
        public long optLong(int index,
        +                    long defaultValue)
        +
        Get the optional long value associated with an index. The defaultValue is + returned if there is no value for the index, or if the value is not a + number and cannot be converted to a number.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - The default value.
        +
        Returns:
        +
        The value.
        +
        +
      • +
      + + + +
        +
      • +

        optString

        +
        public java.lang.String optString(int index)
        +
        Get the optional string value associated with an index. It returns an + empty string if there is no value at that index. If the value is not a + string and is not null, then it is coverted to a string.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        Returns:
        +
        A String value.
        +
        +
      • +
      + + + +
        +
      • +

        optString

        +
        public java.lang.String optString(int index,
        +                                  java.lang.String defaultValue)
        +
        Get the optional string associated with an index. The defaultValue is + returned if the key is not found.
        +
        +
        Parameters:
        +
        index - The index must be between 0 and length() - 1.
        +
        defaultValue - The default value.
        +
        Returns:
        +
        A String value.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(boolean value)
        +
        Append a boolean value. This increases the array's length by one.
        +
        +
        Parameters:
        +
        value - A boolean value.
        +
        Returns:
        +
        this.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(java.util.Collection<?> value)
        +
        Put a value in the JSONArray, where the value will be a JSONArray which + is produced from a Collection.
        +
        +
        Parameters:
        +
        value - A Collection value.
        +
        Returns:
        +
        this.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(double value)
        +              throws JSONException
        +
        Append a double value. This increases the array's length by one.
        +
        +
        Parameters:
        +
        value - A double value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - if the value is not finite.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int value)
        +
        Append an int value. This increases the array's length by one.
        +
        +
        Parameters:
        +
        value - An int value.
        +
        Returns:
        +
        this.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(long value)
        +
        Append an long value. This increases the array's length by one.
        +
        +
        Parameters:
        +
        value - A long value.
        +
        Returns:
        +
        this.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(java.util.Map<?,?> value)
        +
        Put a value in the JSONArray, where the value will be a JSONObject which + is produced from a Map.
        +
        +
        Parameters:
        +
        value - A Map value.
        +
        Returns:
        +
        this.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(java.lang.Object value)
        +
        Append an object value. This increases the array's length by one.
        +
        +
        Parameters:
        +
        value - An object value. The value should be a Boolean, Double, + Integer, JSONArray, JSONObject, Long, or String, or the + JSONObject.NULL object.
        +
        Returns:
        +
        this.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     boolean value)
        +              throws JSONException
        +
        Put or replace a boolean value in the JSONArray. If the index is greater + than the length of the JSONArray, then null elements will be added as + necessary to pad it out.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - A boolean value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     java.util.Collection<?> value)
        +              throws JSONException
        +
        Put a value in the JSONArray, where the value will be a JSONArray which + is produced from a Collection.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - A Collection value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative or if the value is not finite.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     double value)
        +              throws JSONException
        +
        Put or replace a double value. If the index is greater than the length of + the JSONArray, then null elements will be added as necessary to pad it + out.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - A double value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative or if the value is not finite.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     int value)
        +              throws JSONException
        +
        Put or replace an int value. If the index is greater than the length of + the JSONArray, then null elements will be added as necessary to pad it + out.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - An int value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     long value)
        +              throws JSONException
        +
        Put or replace a long value. If the index is greater than the length of + the JSONArray, then null elements will be added as necessary to pad it + out.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - A long value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     java.util.Map<?,?> value)
        +              throws JSONException
        +
        Put a value in the JSONArray, where the value will be a JSONObject that + is produced from a Map.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - The Map value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative or if the the value is an invalid + number.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONArray put(int index,
        +                     java.lang.Object value)
        +              throws JSONException
        +
        Put or replace an object value in the JSONArray. If the index is greater + than the length of the JSONArray, then null elements will be added as + necessary to pad it out.
        +
        +
        Parameters:
        +
        index - The subscript.
        +
        value - The value to put into the array. The value should be a + Boolean, Double, Integer, JSONArray, JSONObject, Long, or + String, or the JSONObject.NULL object.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the index is negative or if the the value is an invalid + number.
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public java.lang.Object remove(int index)
        +
        Remove an index and close the hole.
        +
        +
        Parameters:
        +
        index - The index of the element to be removed.
        +
        Returns:
        +
        The value that was associated with the index, or null if there + was no value.
        +
        +
      • +
      + + + +
        +
      • +

        similar

        +
        public boolean similar(java.lang.Object other)
        +
        Determine if two JSONArrays are similar. + They must contain similar sequences.
        +
        +
        Parameters:
        +
        other - The other JSONArray
        +
        Returns:
        +
        true if they are equal
        +
        +
      • +
      + + + +
        +
      • +

        toJSONObject

        +
        public JSONObject toJSONObject(JSONArray names)
        +                        throws JSONException
        +
        Produce a JSONObject by combining a JSONArray of names with the values of + this JSONArray.
        +
        +
        Parameters:
        +
        names - A JSONArray containing a list of key strings. These will be + paired with the values.
        +
        Returns:
        +
        A JSONObject, or null if there are no names or if this JSONArray + has no values.
        +
        Throws:
        +
        JSONException - If any of the names are null.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Make a JSON text of this JSONArray. For compactness, no unnecessary + whitespace is added. If it is not possible to produce a syntactically + correct JSON text then null will be returned instead. This could occur if + the array contains an invalid number. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        +
        a printable, displayable, transmittable representation of the + array.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString(int indentFactor)
        +                          throws JSONException
        +
        Make a prettyprinted JSON text of this JSONArray. Warning: This method + assumes that the data structure is acyclical.
        +
        +
        Parameters:
        +
        indentFactor - The number of spaces to add to each level of indentation.
        +
        Returns:
        +
        a printable, displayable, transmittable representation of the + object, beginning with [ (left + bracket) and ending with ] +  (right bracket).
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public java.io.Writer write(java.io.Writer writer)
        +                     throws JSONException
        +
        Write the contents of the JSONArray as JSON text to a writer. For + compactness, no whitespace is added. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Returns:
        +
        The writer.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public java.io.Writer write(java.io.Writer writer,
        +                            int indentFactor,
        +                            int indent)
        +                     throws JSONException
        +
        Write the contents of the JSONArray as JSON text to a writer. For + compactness, no whitespace is added. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Parameters:
        +
        writer - Writes the serialized JSON
        +
        indentFactor - The number of spaces to add to each level of indentation.
        +
        indent - The indention of the top level.
        +
        Returns:
        +
        The writer.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/JSONException.html b/javadoc/org/json/JSONException.html new file mode 100644 index 0000000..ee98bd3 --- /dev/null +++ b/javadoc/org/json/JSONException.html @@ -0,0 +1,314 @@ + + + + + +JSONException + + + + + + + + + + + + +
+
org.json
+

Class JSONException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • java.lang.RuntimeException
        • +
        • +
            +
          • org.json.JSONException
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class JSONException
    +extends java.lang.RuntimeException
    +
    The JSONException is thrown by the JSON.org classes when things are amiss.
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JSONException(java.lang.String message) +
      Constructs a JSONException with an explanatory message.
      +
      JSONException(java.lang.String message, + java.lang.Throwable cause) +
      Constructs a JSONException with an explanatory message and cause.
      +
      JSONException(java.lang.Throwable cause) +
      Constructs a new JSONException with the specified cause.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JSONException

        +
        public JSONException(java.lang.String message)
        +
        Constructs a JSONException with an explanatory message.
        +
        +
        Parameters:
        +
        message - Detail about the reason for the exception.
        +
        +
      • +
      + + + +
        +
      • +

        JSONException

        +
        public JSONException(java.lang.String message,
        +                     java.lang.Throwable cause)
        +
        Constructs a JSONException with an explanatory message and cause.
        +
        +
        Parameters:
        +
        message - Detail about the reason for the exception.
        +
        cause - The cause.
        +
        +
      • +
      + + + +
        +
      • +

        JSONException

        +
        public JSONException(java.lang.Throwable cause)
        +
        Constructs a new JSONException with the specified cause.
        +
        +
        Parameters:
        +
        cause - The cause.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/JSONML.html b/javadoc/org/json/JSONML.html new file mode 100644 index 0000000..e86f4ad --- /dev/null +++ b/javadoc/org/json/JSONML.html @@ -0,0 +1,442 @@ + + + + + +JSONML + + + + + + + + + + + + +
+
org.json
+

Class JSONML

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.JSONML
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JSONML
    +extends java.lang.Object
    +
    This provides static methods to convert an XML text into a JSONArray or + JSONObject, and to covert a JSONArray or JSONObject into an XML text using + the JsonML transform.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      JSONML() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static JSONArraytoJSONArray(java.lang.String string) +
      Convert a well-formed (but not necessarily valid) XML string into a + JSONArray using the JsonML transform.
      +
      static JSONArraytoJSONArray(XMLTokener x) +
      Convert a well-formed (but not necessarily valid) XML string into a + JSONArray using the JsonML transform.
      +
      static JSONObjecttoJSONObject(java.lang.String string) +
      Convert a well-formed (but not necessarily valid) XML string into a + JSONObject using the JsonML transform.
      +
      static JSONObjecttoJSONObject(XMLTokener x) +
      Convert a well-formed (but not necessarily valid) XML string into a + JSONObject using the JsonML transform.
      +
      static java.lang.StringtoString(JSONArray ja) +
      Reverse the JSONML transformation, making an XML text from a JSONArray.
      +
      static java.lang.StringtoString(JSONObject jo) +
      Reverse the JSONML transformation, making an XML text from a JSONObject.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JSONML

        +
        public JSONML()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toJSONArray

        +
        public static JSONArray toJSONArray(java.lang.String string)
        +                             throws JSONException
        +
        Convert a well-formed (but not necessarily valid) XML string into a + JSONArray using the JsonML transform. Each XML tag is represented as + a JSONArray in which the first element is the tag name. If the tag has + attributes, then the second element will be JSONObject containing the + name/value pairs. If the tag contains children, then strings and + JSONArrays will represent the child tags. + Comments, prologs, DTDs, and <[ [ ]]> are ignored.
        +
        +
        Parameters:
        +
        string - The source string.
        +
        Returns:
        +
        A JSONArray containing the structured data from the XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONArray

        +
        public static JSONArray toJSONArray(XMLTokener x)
        +                             throws JSONException
        +
        Convert a well-formed (but not necessarily valid) XML string into a + JSONArray using the JsonML transform. Each XML tag is represented as + a JSONArray in which the first element is the tag name. If the tag has + attributes, then the second element will be JSONObject containing the + name/value pairs. If the tag contains children, then strings and + JSONArrays will represent the child content and tags. + Comments, prologs, DTDs, and <[ [ ]]> are ignored.
        +
        +
        Parameters:
        +
        x - An XMLTokener.
        +
        Returns:
        +
        A JSONArray containing the structured data from the XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONObject

        +
        public static JSONObject toJSONObject(XMLTokener x)
        +                               throws JSONException
        +
        Convert a well-formed (but not necessarily valid) XML string into a + JSONObject using the JsonML transform. Each XML tag is represented as + a JSONObject with a "tagName" property. If the tag has attributes, then + the attributes will be in the JSONObject as properties. If the tag + contains children, the object will have a "childNodes" property which + will be an array of strings and JsonML JSONObjects. + + Comments, prologs, DTDs, and <[ [ ]]> are ignored.
        +
        +
        Parameters:
        +
        x - An XMLTokener of the XML source text.
        +
        Returns:
        +
        A JSONObject containing the structured data from the XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONObject

        +
        public static JSONObject toJSONObject(java.lang.String string)
        +                               throws JSONException
        +
        Convert a well-formed (but not necessarily valid) XML string into a + JSONObject using the JsonML transform. Each XML tag is represented as + a JSONObject with a "tagName" property. If the tag has attributes, then + the attributes will be in the JSONObject as properties. If the tag + contains children, the object will have a "childNodes" property which + will be an array of strings and JsonML JSONObjects. + + Comments, prologs, DTDs, and <[ [ ]]> are ignored.
        +
        +
        Parameters:
        +
        string - The XML source text.
        +
        Returns:
        +
        A JSONObject containing the structured data from the XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static java.lang.String toString(JSONArray ja)
        +                                 throws JSONException
        +
        Reverse the JSONML transformation, making an XML text from a JSONArray.
        +
        +
        Parameters:
        +
        ja - A JSONArray.
        +
        Returns:
        +
        An XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static java.lang.String toString(JSONObject jo)
        +                                 throws JSONException
        +
        Reverse the JSONML transformation, making an XML text from a JSONObject. + The JSONObject must contain a "tagName" property. If it has children, + then it must have a "childNodes" property containing an array of objects. + The other properties are attributes with string values.
        +
        +
        Parameters:
        +
        jo - A JSONObject.
        +
        Returns:
        +
        An XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/JSONObject.html b/javadoc/org/json/JSONObject.html new file mode 100644 index 0000000..7662920 --- /dev/null +++ b/javadoc/org/json/JSONObject.html @@ -0,0 +1,2243 @@ + + + + + +JSONObject + + + + + + + + + + + + +
+
org.json
+

Class JSONObject

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.JSONObject
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    AccessTracker.Track, Accounting, JsonFile, JSONObjectWithDefault, Peer, Post, SusiThought
    +
    +
    +
    +
    public class JSONObject
    +extends java.lang.Object
    +
    A JSONObject is an unordered collection of name/value pairs. Its external + form is a string wrapped in curly braces with colons between the names and + values, and commas between the values and names. The internal form is an + object having get and opt methods for accessing + the values by name, and put methods for adding or replacing + values by name. The values can be any of these types: Boolean, + JSONArray, JSONObject, Number, + String, or the JSONObject.NULL object. A + JSONObject constructor can be used to convert an external form JSON text + into an internal form whose values can be retrieved with the + get and opt methods, or to convert values into a + JSON text using the put and toString methods. A + get method returns a value if one can be found, and throws an + exception if one cannot be found. An opt method returns a + default value instead of throwing an exception, and so is useful for + obtaining optional values. +

    + The generic get() and opt() methods return an + object, which you can cast or query for type. There are also typed + get and opt methods that do type checking and type + coercion for you. The opt methods differ from the get methods in that they + do not throw. Instead, they return a specified value, such as null. +

    + The put methods add or replace values in an object. For + example, + +

    + myString = new JSONObject()
    +         .put("JSON", "Hello, World!").toString();
    + 
    + + produces the string {"JSON": "Hello, World"}. +

    + The texts produced by the toString methods strictly conform to + the JSON syntax rules. The constructors are more forgiving in the texts they + will accept: +

      +
    • An extra , (comma) may appear just + before the closing brace.
    • +
    • Strings may be quoted with ' (single + quote).
    • +
    • Strings do not need to be quoted at all if they do not begin with a + quote or single quote, and if they do not contain leading or trailing + spaces, and if they do not contain any of these characters: + { } [ ] / \ : , # and if they do not look like numbers and + if they are not the reserved words true, false, + or null.
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.ObjectNULL +
      It is sometimes more convenient and less ambiguous to have a + NULL object than to use Java's null value.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JSONObject() +
      Construct an empty JSONObject.
      +
      JSONObject(boolean ordered) +
      Construct an empty JSONObject.
      +
      JSONObject(JSONObject jo, + java.lang.String[] names) +
      Construct a JSONObject from a subset of another JSONObject.
      +
      JSONObject(JSONTokener x) +
      Construct a JSONObject from a JSONTokener.
      +
      JSONObject(java.util.Map<?,?> map) +
      Construct a JSONObject from a Map.
      +
      JSONObject(java.lang.Object bean) +
      Construct a JSONObject from an Object using bean getters.
      +
      JSONObject(java.lang.Object object, + java.lang.String[] names) +
      Construct a JSONObject from an Object, using reflection to find the + public members.
      +
      JSONObject(java.lang.String source) +
      Construct a JSONObject from a source JSON text string.
      +
      JSONObject(java.lang.String baseName, + java.util.Locale locale) +
      Construct a JSONObject from a ResourceBundle.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      JSONObjectaccumulate(java.lang.String key, + java.lang.Object value) +
      Accumulate values under a key.
      +
      JSONObjectappend(java.lang.String key, + java.lang.Object value) +
      Append values to the array under a key.
      +
      static java.lang.StringdoubleToString(double d) +
      Produce a string from a double.
      +
      java.lang.Objectget(java.lang.String key) +
      Get the value object associated with a key.
      +
      java.math.BigDecimalgetBigDecimal(java.lang.String key) +
      Get the BigDecimal value associated with a key.
      +
      java.math.BigIntegergetBigInteger(java.lang.String key) +
      Get the BigInteger value associated with a key.
      +
      booleangetBoolean(java.lang.String key) +
      Get the boolean value associated with a key.
      +
      doublegetDouble(java.lang.String key) +
      Get the double value associated with a key.
      +
      <E extends java.lang.Enum<E>>
      E
      getEnum(java.lang.Class<E> clazz, + java.lang.String key) +
      Get the enum value associated with a key.
      +
      intgetInt(java.lang.String key) +
      Get the int value associated with a key.
      +
      JSONArraygetJSONArray(java.lang.String key) +
      Get the JSONArray value associated with a key.
      +
      JSONObjectgetJSONObject(java.lang.String key) +
      Get the JSONObject value associated with a key.
      +
      longgetLong(java.lang.String key) +
      Get the long value associated with a key.
      +
      static java.lang.String[]getNames(JSONObject jo) +
      Get an array of field names from a JSONObject.
      +
      static java.lang.String[]getNames(java.lang.Object object) +
      Get an array of field names from an Object.
      +
      java.lang.StringgetString(java.lang.String key) +
      Get the string associated with a key.
      +
      booleanhas(java.lang.String key) +
      Determine if the JSONObject contains a specific key.
      +
      JSONObjectincrement(java.lang.String key) +
      Increment a property of a JSONObject.
      +
      booleanisNull(java.lang.String key) +
      Determine if the value associated with the key is null or if there is no + value.
      +
      java.util.Iterator<java.lang.String>keys() +
      Get an enumeration of the keys of the JSONObject.
      +
      java.util.Set<java.lang.String>keySet() +
      Get a set of keys of the JSONObject.
      +
      intlength() +
      Get the number of keys stored in the JSONObject.
      +
      JSONArraynames() +
      Produce a JSONArray containing the names of the elements of this + JSONObject.
      +
      static java.lang.StringnumberToString(java.lang.Number number) +
      Produce a string from a Number.
      +
      java.lang.Objectopt(java.lang.String key) +
      Get an optional value associated with a key.
      +
      java.math.BigDecimaloptBigDecimal(java.lang.String key, + java.math.BigDecimal defaultValue) +
      Get an optional BigDecimal associated with a key, or the defaultValue if + there is no such key or if its value is not a number.
      +
      java.math.BigIntegeroptBigInteger(java.lang.String key, + java.math.BigInteger defaultValue) +
      Get an optional BigInteger associated with a key, or the defaultValue if + there is no such key or if its value is not a number.
      +
      booleanoptBoolean(java.lang.String key) +
      Get an optional boolean associated with a key.
      +
      booleanoptBoolean(java.lang.String key, + boolean defaultValue) +
      Get an optional boolean associated with a key.
      +
      doubleoptDouble(java.lang.String key) +
      Get an optional double associated with a key, or NaN if there is no such + key or if its value is not a number.
      +
      doubleoptDouble(java.lang.String key, + double defaultValue) +
      Get an optional double associated with a key, or the defaultValue if + there is no such key or if its value is not a number.
      +
      <E extends java.lang.Enum<E>>
      E
      optEnum(java.lang.Class<E> clazz, + java.lang.String key) +
      Get the enum value associated with a key.
      +
      <E extends java.lang.Enum<E>>
      E
      optEnum(java.lang.Class<E> clazz, + java.lang.String key, + E defaultValue) +
      Get the enum value associated with a key.
      +
      intoptInt(java.lang.String key) +
      Get an optional int value associated with a key, or zero if there is no + such key or if the value is not a number.
      +
      intoptInt(java.lang.String key, + int defaultValue) +
      Get an optional int value associated with a key, or the default if there + is no such key or if the value is not a number.
      +
      JSONArrayoptJSONArray(java.lang.String key) +
      Get an optional JSONArray associated with a key.
      +
      JSONObjectoptJSONObject(java.lang.String key) +
      Get an optional JSONObject associated with a key.
      +
      longoptLong(java.lang.String key) +
      Get an optional long value associated with a key, or zero if there is no + such key or if the value is not a number.
      +
      longoptLong(java.lang.String key, + long defaultValue) +
      Get an optional long value associated with a key, or the default if there + is no such key or if the value is not a number.
      +
      java.lang.StringoptString(java.lang.String key) +
      Get an optional string associated with a key.
      +
      java.lang.StringoptString(java.lang.String key, + java.lang.String defaultValue) +
      Get an optional string associated with a key.
      +
      JSONObjectput(java.lang.String key, + boolean value) +
      Put a key/boolean pair in the JSONObject.
      +
      JSONObjectput(java.lang.String key, + java.util.Collection<?> value) +
      Put a key/value pair in the JSONObject, where the value will be a + JSONArray which is produced from a Collection.
      +
      JSONObjectput(java.lang.String key, + double value) +
      Put a key/double pair in the JSONObject.
      +
      JSONObjectput(java.lang.String key, + int value) +
      Put a key/int pair in the JSONObject.
      +
      JSONObjectput(java.lang.String key, + long value) +
      Put a key/long pair in the JSONObject.
      +
      JSONObjectput(java.lang.String key, + java.util.Map<?,?> value) +
      Put a key/value pair in the JSONObject, where the value will be a + JSONObject which is produced from a Map.
      +
      JSONObjectput(java.lang.String key, + java.lang.Object value) +
      Put a key/value pair in the JSONObject.
      +
      voidputAll(JSONObject other) 
      JSONObjectputOnce(java.lang.String key, + java.lang.Object value) +
      Put a key/value pair in the JSONObject, but only if the key and the value + are both non-null, and only if there is not already a member with that + name.
      +
      JSONObjectputOpt(java.lang.String key, + java.lang.Object value) +
      Put a key/value pair in the JSONObject, but only if the key and the value + are both non-null.
      +
      static java.lang.Stringquote(java.lang.String string) +
      Produce a string in double quotes with backslash sequences in all the + right places.
      +
      static java.io.Writerquote(java.lang.String string, + java.io.Writer w) 
      java.lang.Objectremove(java.lang.String key) +
      Remove a name and its value, if present.
      +
      booleansimilar(java.lang.Object other) +
      Determine if two JSONObjects are similar.
      +
      static java.lang.ObjectstringToValue(java.lang.String string) +
      Try to convert a string into a number, boolean, or null.
      +
      static voidtestValidity(java.lang.Object o) +
      Throw an exception if the object is a NaN or infinite number.
      +
      JSONArraytoJSONArray(JSONArray names) +
      Produce a JSONArray containing the values of the members of this + JSONObject.
      +
      java.util.Map<java.lang.String,java.lang.Object>toMap() 
      java.lang.StringtoString() +
      Make a JSON text of this JSONObject.
      +
      java.lang.StringtoString(int indentFactor) +
      Make a prettyprinted JSON text of this JSONObject.
      +
      static java.lang.StringvalueToString(java.lang.Object value) +
      Make a JSON text of an Object value.
      +
      static java.lang.Objectwrap(java.lang.Object object) +
      Wrap an object, if necessary.
      +
      java.io.Writerwrite(java.io.Writer writer) +
      Write the contents of the JSONObject as JSON text to a writer.
      +
      java.io.Writerwrite(java.io.Writer writer, + int indentFactor, + int indent) +
      Write the contents of the JSONObject as JSON text to a writer.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NULL

        +
        public static final java.lang.Object NULL
        +
        It is sometimes more convenient and less ambiguous to have a + NULL object than to use Java's null value. + JSONObject.NULL.equals(null) returns true. + JSONObject.NULL.toString() returns "null".
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject()
        +
        Construct an empty JSONObject.
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(boolean ordered)
        +
        Construct an empty JSONObject.
        +
        +
        Parameters:
        +
        ordered - if ordered == true, then the JSONObject keeps the original order of properties
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(JSONObject jo,
        +                  java.lang.String[] names)
        +
        Construct a JSONObject from a subset of another JSONObject. An array of + strings is used to identify the keys that should be copied. Missing keys + are ignored.
        +
        +
        Parameters:
        +
        jo - A JSONObject.
        +
        names - An array of strings.
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(JSONTokener x)
        +           throws JSONException
        +
        Construct a JSONObject from a JSONTokener.
        +
        +
        Parameters:
        +
        x - A JSONTokener object containing the source string.
        +
        Throws:
        +
        JSONException - If there is a syntax error in the source string or a + duplicated key.
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(java.util.Map<?,?> map)
        +
        Construct a JSONObject from a Map.
        +
        +
        Parameters:
        +
        map - A map object that can be used to initialize the contents of + the JSONObject.
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(java.lang.Object bean)
        +
        Construct a JSONObject from an Object using bean getters. It reflects on + all of the public methods of the object. For each of the methods with no + parameters and a name starting with "get" or + "is" followed by an uppercase letter, the method is invoked, + and a key and the value returned from the getter method are put into the + new JSONObject. + + The key is formed by removing the "get" or "is" + prefix. If the second remaining character is not upper case, then the + first character is converted to lower case. + + For example, if an object has a method named "getName", and + if the result of calling object.getName() is + "Larry Fine", then the JSONObject will contain + "name": "Larry Fine".
        +
        +
        Parameters:
        +
        bean - An object that has getter methods that should be used to make + a JSONObject.
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(java.lang.Object object,
        +                  java.lang.String[] names)
        +
        Construct a JSONObject from an Object, using reflection to find the + public members. The resulting JSONObject's keys will be the strings from + the names array, and the values will be the field values associated with + those keys in the object. If a key is not found or not visible, then it + will not be copied into the new JSONObject.
        +
        +
        Parameters:
        +
        object - An object that has fields that should be used to make a + JSONObject.
        +
        names - An array of strings, the names of the fields to be obtained + from the object.
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(java.lang.String source)
        +           throws JSONException
        +
        Construct a JSONObject from a source JSON text string. This is the most + commonly used JSONObject constructor.
        +
        +
        Parameters:
        +
        source - A string beginning with { (left + brace) and ending with } +  (right brace).
        +
        Throws:
        +
        JSONException - If there is a syntax error in the source string or a + duplicated key.
        +
        +
      • +
      + + + +
        +
      • +

        JSONObject

        +
        public JSONObject(java.lang.String baseName,
        +                  java.util.Locale locale)
        +           throws JSONException
        +
        Construct a JSONObject from a ResourceBundle.
        +
        +
        Parameters:
        +
        baseName - The ResourceBundle base name.
        +
        locale - The Locale to load the ResourceBundle for.
        +
        Throws:
        +
        JSONException - If any JSONExceptions are detected.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        putAll

        +
        public void putAll(JSONObject other)
        +
      • +
      + + + +
        +
      • +

        accumulate

        +
        public JSONObject accumulate(java.lang.String key,
        +                             java.lang.Object value)
        +                      throws JSONException
        +
        Accumulate values under a key. It is similar to the put method except + that if there is already an object stored under the key then a JSONArray + is stored under the key to hold all of the accumulated values. If there + is already a JSONArray, then the new value is appended to it. In + contrast, the put method replaces the previous value. + + If only one value is accumulated that is not a JSONArray, then the result + will be the same as using put. But if multiple values are accumulated, + then the result will be like append.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - An object to be accumulated under the key.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the value is an invalid number or if the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        append

        +
        public JSONObject append(java.lang.String key,
        +                         java.lang.Object value)
        +                  throws JSONException
        +
        Append values to the array under a key. If the key does not exist in the + JSONObject, then the key is put in the JSONObject with its value being a + JSONArray containing the value parameter. If the key was already + associated with a JSONArray, then the value parameter is appended to it.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - An object to be accumulated under the key.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null or if the current value associated with + the key is not a JSONArray.
        +
        +
      • +
      + + + +
        +
      • +

        doubleToString

        +
        public static java.lang.String doubleToString(double d)
        +
        Produce a string from a double. The string "null" will be returned if the + number is not finite.
        +
        +
        Parameters:
        +
        d - A double.
        +
        Returns:
        +
        A String.
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.lang.Object get(java.lang.String key)
        +                     throws JSONException
        +
        Get the value object associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The object associated with the key.
        +
        Throws:
        +
        JSONException - if the key is not found.
        +
        +
      • +
      + + + +
        +
      • +

        getEnum

        +
        public <E extends java.lang.Enum<E>> E getEnum(java.lang.Class<E> clazz,
        +                                               java.lang.String key)
        +                                        throws JSONException
        +
        Get the enum value associated with a key.
        +
        +
        Parameters:
        +
        clazz - The type of enum to retrieve.
        +
        key - A key string.
        +
        Returns:
        +
        The enum value associated with the key
        +
        Throws:
        +
        JSONException - if the key is not found or if the value cannot be converted + to an enum.
        +
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        public boolean getBoolean(java.lang.String key)
        +                   throws JSONException
        +
        Get the boolean value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The truth.
        +
        Throws:
        +
        JSONException - if the value is not a Boolean or the String "true" or + "false".
        +
        +
      • +
      + + + +
        +
      • +

        getBigInteger

        +
        public java.math.BigInteger getBigInteger(java.lang.String key)
        +                                   throws JSONException
        +
        Get the BigInteger value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The numeric value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value cannot + be converted to BigInteger.
        +
        +
      • +
      + + + +
        +
      • +

        getBigDecimal

        +
        public java.math.BigDecimal getBigDecimal(java.lang.String key)
        +                                   throws JSONException
        +
        Get the BigDecimal value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The numeric value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value + cannot be converted to BigDecimal.
        +
        +
      • +
      + + + +
        +
      • +

        getDouble

        +
        public double getDouble(java.lang.String key)
        +                 throws JSONException
        +
        Get the double value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The numeric value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value is not a Number + object and cannot be converted to a number.
        +
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        public int getInt(java.lang.String key)
        +           throws JSONException
        +
        Get the int value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The integer value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value cannot be converted + to an integer.
        +
        +
      • +
      + + + +
        +
      • +

        getJSONArray

        +
        public JSONArray getJSONArray(java.lang.String key)
        +                       throws JSONException
        +
        Get the JSONArray value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        A JSONArray which is the value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value is not a JSONArray.
        +
        +
      • +
      + + + +
        +
      • +

        getJSONObject

        +
        public JSONObject getJSONObject(java.lang.String key)
        +                         throws JSONException
        +
        Get the JSONObject value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        A JSONObject which is the value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value is not a JSONObject.
        +
        +
      • +
      + + + +
        +
      • +

        getLong

        +
        public long getLong(java.lang.String key)
        +             throws JSONException
        +
        Get the long value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The long value.
        +
        Throws:
        +
        JSONException - if the key is not found or if the value cannot be converted + to a long.
        +
        +
      • +
      + + + +
        +
      • +

        getNames

        +
        public static java.lang.String[] getNames(JSONObject jo)
        +
        Get an array of field names from a JSONObject.
        +
        +
        Returns:
        +
        An array of field names, or null if there are no names.
        +
        +
      • +
      + + + +
        +
      • +

        getNames

        +
        public static java.lang.String[] getNames(java.lang.Object object)
        +
        Get an array of field names from an Object.
        +
        +
        Returns:
        +
        An array of field names, or null if there are no names.
        +
        +
      • +
      + + + +
        +
      • +

        getString

        +
        public java.lang.String getString(java.lang.String key)
        +                           throws JSONException
        +
        Get the string associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        A string which is the value.
        +
        Throws:
        +
        JSONException - if there is no string value for the key.
        +
        +
      • +
      + + + +
        +
      • +

        has

        +
        public boolean has(java.lang.String key)
        +
        Determine if the JSONObject contains a specific key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        true if the key exists in the JSONObject.
        +
        +
      • +
      + + + +
        +
      • +

        increment

        +
        public JSONObject increment(java.lang.String key)
        +                     throws JSONException
        +
        Increment a property of a JSONObject. If there is no such property, + create one with a value of 1. If there is such a property, and if it is + an Integer, Long, Double, or Float, then add one to it.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If there is already a property with this name that is not an + Integer, Long, Double, or Float.
        +
        +
      • +
      + + + +
        +
      • +

        isNull

        +
        public boolean isNull(java.lang.String key)
        +
        Determine if the value associated with the key is null or if there is no + value.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        true if there is no value associated with the key or if the value + is the JSONObject.NULL object.
        +
        +
      • +
      + + + +
        +
      • +

        keys

        +
        public java.util.Iterator<java.lang.String> keys()
        +
        Get an enumeration of the keys of the JSONObject.
        +
        +
        Returns:
        +
        An iterator of the keys.
        +
        +
      • +
      + + + +
        +
      • +

        keySet

        +
        public java.util.Set<java.lang.String> keySet()
        +
        Get a set of keys of the JSONObject.
        +
        +
        Returns:
        +
        A keySet.
        +
        +
      • +
      + + + +
        +
      • +

        length

        +
        public int length()
        +
        Get the number of keys stored in the JSONObject.
        +
        +
        Returns:
        +
        The number of keys in the JSONObject.
        +
        +
      • +
      + + + +
        +
      • +

        names

        +
        public JSONArray names()
        +
        Produce a JSONArray containing the names of the elements of this + JSONObject.
        +
        +
        Returns:
        +
        A JSONArray containing the key strings, or null if the JSONObject + is empty.
        +
        +
      • +
      + + + +
        +
      • +

        numberToString

        +
        public static java.lang.String numberToString(java.lang.Number number)
        +                                       throws JSONException
        +
        Produce a string from a Number.
        +
        +
        Parameters:
        +
        number - A Number
        +
        Returns:
        +
        A String.
        +
        Throws:
        +
        JSONException - If n is a non-finite number.
        +
        +
      • +
      + + + +
        +
      • +

        opt

        +
        public java.lang.Object opt(java.lang.String key)
        +
        Get an optional value associated with a key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        An object which is the value, or null if there is no value.
        +
        +
      • +
      + + + +
        +
      • +

        optEnum

        +
        public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz,
        +                                               java.lang.String key)
        +
        Get the enum value associated with a key.
        +
        +
        Parameters:
        +
        clazz - The type of enum to retrieve.
        +
        key - A key string.
        +
        Returns:
        +
        The enum value associated with the key or null if not found
        +
        +
      • +
      + + + + + +
        +
      • +

        optEnum

        +
        public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz,
        +                                               java.lang.String key,
        +                                               E defaultValue)
        +
        Get the enum value associated with a key.
        +
        +
        Parameters:
        +
        clazz - The type of enum to retrieve.
        +
        key - A key string.
        +
        defaultValue - The default in case the value is not found
        +
        Returns:
        +
        The enum value associated with the key or defaultValue + if the value is not found or cannot be assigned to clazz
        +
        +
      • +
      + + + +
        +
      • +

        optBoolean

        +
        public boolean optBoolean(java.lang.String key)
        +
        Get an optional boolean associated with a key. It returns false if there + is no such key, or if the value is not Boolean.TRUE or the String "true".
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        The truth.
        +
        +
      • +
      + + + +
        +
      • +

        optBoolean

        +
        public boolean optBoolean(java.lang.String key,
        +                          boolean defaultValue)
        +
        Get an optional boolean associated with a key. It returns the + defaultValue if there is no such key, or if it is not a Boolean or the + String "true" or "false" (case insensitive).
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        The truth.
        +
        +
      • +
      + + + +
        +
      • +

        optDouble

        +
        public double optDouble(java.lang.String key)
        +
        Get an optional double associated with a key, or NaN if there is no such + key or if its value is not a number. If the value is a string, an attempt + will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A string which is the key.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optBigInteger

        +
        public java.math.BigInteger optBigInteger(java.lang.String key,
        +                                          java.math.BigInteger defaultValue)
        +
        Get an optional BigInteger associated with a key, or the defaultValue if + there is no such key or if its value is not a number. If the value is a + string, an attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optBigDecimal

        +
        public java.math.BigDecimal optBigDecimal(java.lang.String key,
        +                                          java.math.BigDecimal defaultValue)
        +
        Get an optional BigDecimal associated with a key, or the defaultValue if + there is no such key or if its value is not a number. If the value is a + string, an attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optDouble

        +
        public double optDouble(java.lang.String key,
        +                        double defaultValue)
        +
        Get an optional double associated with a key, or the defaultValue if + there is no such key or if its value is not a number. If the value is a + string, an attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optInt

        +
        public int optInt(java.lang.String key)
        +
        Get an optional int value associated with a key, or zero if there is no + such key or if the value is not a number. If the value is a string, an + attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optInt

        +
        public int optInt(java.lang.String key,
        +                  int defaultValue)
        +
        Get an optional int value associated with a key, or the default if there + is no such key or if the value is not a number. If the value is a string, + an attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optJSONArray

        +
        public JSONArray optJSONArray(java.lang.String key)
        +
        Get an optional JSONArray associated with a key. It returns null if there + is no such key, or if its value is not a JSONArray.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        A JSONArray which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optJSONObject

        +
        public JSONObject optJSONObject(java.lang.String key)
        +
        Get an optional JSONObject associated with a key. It returns null if + there is no such key, or if its value is not a JSONObject.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        A JSONObject which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optLong

        +
        public long optLong(java.lang.String key)
        +
        Get an optional long value associated with a key, or zero if there is no + such key or if the value is not a number. If the value is a string, an + attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optLong

        +
        public long optLong(java.lang.String key,
        +                    long defaultValue)
        +
        Get an optional long value associated with a key, or the default if there + is no such key or if the value is not a number. If the value is a string, + an attempt will be made to evaluate it as a number.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        An object which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optString

        +
        public java.lang.String optString(java.lang.String key)
        +
        Get an optional string associated with a key. It returns an empty string + if there is no such key. If the value is not a string and is not null, + then it is converted to a string.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        Returns:
        +
        A string which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        optString

        +
        public java.lang.String optString(java.lang.String key,
        +                                  java.lang.String defaultValue)
        +
        Get an optional string associated with a key. It returns the defaultValue + if there is no such key.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        defaultValue - The default.
        +
        Returns:
        +
        A string which is the value.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      boolean value)
        +               throws JSONException
        +
        Put a key/boolean pair in the JSONObject.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - A boolean which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      java.util.Collection<?> value)
        +               throws JSONException
        +
        Put a key/value pair in the JSONObject, where the value will be a + JSONArray which is produced from a Collection.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - A Collection value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      double value)
        +               throws JSONException
        +
        Put a key/double pair in the JSONObject.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - A double which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null or if the number is invalid.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      int value)
        +               throws JSONException
        +
        Put a key/int pair in the JSONObject.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - An int which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      long value)
        +               throws JSONException
        +
        Put a key/long pair in the JSONObject.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - A long which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      java.util.Map<?,?> value)
        +               throws JSONException
        +
        Put a key/value pair in the JSONObject, where the value will be a + JSONObject which is produced from a Map.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - A Map value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      java.lang.Object value)
        +               throws JSONException
        +
        Put a key/value pair in the JSONObject. If the value is null, then the + key will be removed from the JSONObject if it is present.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - An object which is the value. It should be of one of these + types: Boolean, Double, Integer, JSONArray, JSONObject, Long, + String, or the JSONObject.NULL object.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the value is non-finite number or if the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        putOnce

        +
        public JSONObject putOnce(java.lang.String key,
        +                          java.lang.Object value)
        +                   throws JSONException
        +
        Put a key/value pair in the JSONObject, but only if the key and the value + are both non-null, and only if there is not already a member with that + name.
        +
        +
        Parameters:
        +
        key - string
        +
        value - object
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - if the key is a duplicate
        +
        +
      • +
      + + + +
        +
      • +

        putOpt

        +
        public JSONObject putOpt(java.lang.String key,
        +                         java.lang.Object value)
        +                  throws JSONException
        +
        Put a key/value pair in the JSONObject, but only if the key and the value + are both non-null.
        +
        +
        Parameters:
        +
        key - A key string.
        +
        value - An object which is the value. It should be of one of these + types: Boolean, Double, Integer, JSONArray, JSONObject, Long, + String, or the JSONObject.NULL object.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the value is a non-finite number.
        +
        +
      • +
      + + + +
        +
      • +

        quote

        +
        public static java.lang.String quote(java.lang.String string)
        +
        Produce a string in double quotes with backslash sequences in all the + right places. A backslash will be inserted within +
        +
        Parameters:
        +
        string - A String
        +
        Returns:
        +
        A String correctly formatted for insertion in a JSON text.
        +
        +
      • +
      + + + +
        +
      • +

        quote

        +
        public static java.io.Writer quote(java.lang.String string,
        +                                   java.io.Writer w)
        +                            throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public java.lang.Object remove(java.lang.String key)
        +
        Remove a name and its value, if present.
        +
        +
        Parameters:
        +
        key - The name to be removed.
        +
        Returns:
        +
        The value that was associated with the name, or null if there was + no value.
        +
        +
      • +
      + + + +
        +
      • +

        similar

        +
        public boolean similar(java.lang.Object other)
        +
        Determine if two JSONObjects are similar. + They must contain the same set of names which must be associated with + similar values.
        +
        +
        Parameters:
        +
        other - The other JSONObject
        +
        Returns:
        +
        true if they are equal
        +
        +
      • +
      + + + +
        +
      • +

        stringToValue

        +
        public static java.lang.Object stringToValue(java.lang.String string)
        +
        Try to convert a string into a number, boolean, or null. If the string + can't be converted, return the string.
        +
        +
        Parameters:
        +
        string - A String.
        +
        Returns:
        +
        A simple JSON value.
        +
        +
      • +
      + + + +
        +
      • +

        testValidity

        +
        public static void testValidity(java.lang.Object o)
        +                         throws JSONException
        +
        Throw an exception if the object is a NaN or infinite number.
        +
        +
        Parameters:
        +
        o - The object to test.
        +
        Throws:
        +
        JSONException - If o is a non-finite number.
        +
        +
      • +
      + + + +
        +
      • +

        toJSONArray

        +
        public JSONArray toJSONArray(JSONArray names)
        +                      throws JSONException
        +
        Produce a JSONArray containing the values of the members of this + JSONObject.
        +
        +
        Parameters:
        +
        names - A JSONArray containing a list of key strings. This determines + the sequence of the values in the result.
        +
        Returns:
        +
        A JSONArray of values.
        +
        Throws:
        +
        JSONException - If any of the values are non-finite numbers.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Make a JSON text of this JSONObject. For compactness, no whitespace is + added. If this would not result in a syntactically correct JSON text, + then null will be returned instead. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        +
        a printable, displayable, portable, transmittable representation + of the object, beginning with { (left + brace) and ending with } (right + brace).
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString(int indentFactor)
        +                          throws JSONException
        +
        Make a prettyprinted JSON text of this JSONObject. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Parameters:
        +
        indentFactor - The number of spaces to add to each level of indentation.
        +
        Returns:
        +
        a printable, displayable, portable, transmittable representation + of the object, beginning with { (left + brace) and ending with } (right + brace).
        +
        Throws:
        +
        JSONException - If the object contains an invalid number.
        +
        +
      • +
      + + + +
        +
      • +

        valueToString

        +
        public static java.lang.String valueToString(java.lang.Object value)
        +                                      throws JSONException
        +
        Make a JSON text of an Object value. If the object has an + value.toJSONString() method, then that method will be used to produce the + JSON text. The method is required to produce a strictly conforming text. + If the object does not contain a toJSONString method (which is the most + common case), then a text will be produced by other means. If the value + is an array or Collection, then a JSONArray will be made from it and its + toJSONString method will be called. If the value is a MAP, then a + JSONObject will be made from it and its toJSONString method will be + called. Otherwise, the value's toString method will be called, and the + result will be quoted. + +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Parameters:
        +
        value - The value to be serialized.
        +
        Returns:
        +
        a printable, displayable, transmittable representation of the + object, beginning with { (left + brace) and ending with } (right + brace).
        +
        Throws:
        +
        JSONException - If the value is or contains an invalid number.
        +
        +
      • +
      + + + +
        +
      • +

        wrap

        +
        public static java.lang.Object wrap(java.lang.Object object)
        +
        Wrap an object, if necessary. If the object is null, return the NULL + object. If it is an array or collection, wrap it in a JSONArray. If it is + a map, wrap it in a JSONObject. If it is a standard property (Double, + String, et al) then it is already wrapped. Otherwise, if it comes from + one of the java packages, turn it into a string. And if it doesn't, try + to wrap it in a JSONObject. If the wrapping fails, then null is returned.
        +
        +
        Parameters:
        +
        object - The object to wrap
        +
        Returns:
        +
        The wrapped value
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public java.io.Writer write(java.io.Writer writer)
        +                     throws JSONException
        +
        Write the contents of the JSONObject as JSON text to a writer. For + compactness, no whitespace is added. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Returns:
        +
        The writer.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public java.io.Writer write(java.io.Writer writer,
        +                            int indentFactor,
        +                            int indent)
        +                     throws JSONException
        +
        Write the contents of the JSONObject as JSON text to a writer. For + compactness, no whitespace is added. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Parameters:
        +
        writer - Writes the serialized JSON
        +
        indentFactor - The number of spaces to add to each level of indentation.
        +
        indent - The indention of the top level.
        +
        Returns:
        +
        The writer.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toMap

        +
        public java.util.Map<java.lang.String,java.lang.Object> toMap()
        +                                                       throws JSONException
        +
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/JSONString.html b/javadoc/org/json/JSONString.html new file mode 100644 index 0000000..0dcbc03 --- /dev/null +++ b/javadoc/org/json/JSONString.html @@ -0,0 +1,234 @@ + + + + + +JSONString + + + + + + + + + + + + +
+
org.json
+

Interface JSONString

+
+
+
+
    +
  • +
    +
    +
    public interface JSONString
    +
    The JSONString interface allows a toJSONString() + method so that a class can change the behavior of + JSONObject.toString(), JSONArray.toString(), + and JSONWriter.value(Object). The + toJSONString method will be used instead of the default behavior + of using the Object's toString() method and quoting the result.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      java.lang.StringtoJSONString() +
      The toJSONString method allows a class to produce its own JSON + serialization.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toJSONString

        +
        java.lang.String toJSONString()
        +
        The toJSONString method allows a class to produce its own JSON + serialization.
        +
        +
        Returns:
        +
        A strictly syntactically correct JSON text.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/JSONTokener.html b/javadoc/org/json/JSONTokener.html new file mode 100644 index 0000000..155e8a1 --- /dev/null +++ b/javadoc/org/json/JSONTokener.html @@ -0,0 +1,673 @@ + + + + + +JSONTokener + + + + + + + + + + + + +
+
org.json
+

Class JSONTokener

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.JSONTokener
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    XMLTokener
    +
    +
    +
    +
    public class JSONTokener
    +extends java.lang.Object
    +
    A JSONTokener takes a source string and extracts characters and tokens from + it. It is used by the JSONObject and JSONArray constructors to parse + JSON source strings.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      JSONTokener(java.io.InputStream inputStream) +
      Construct a JSONTokener from an InputStream.
      +
      JSONTokener(java.io.Reader reader) +
      Construct a JSONTokener from a Reader.
      +
      JSONTokener(java.lang.String s) +
      Construct a JSONTokener from a string.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidback() +
      Back up one character.
      +
      static intdehexchar(char c) +
      Get the hex value of a character (base16).
      +
      booleanend() 
      booleanmore() +
      Determine if the source string still contains characters that next() + can consume.
      +
      charnext() +
      Get the next character in the source string.
      +
      charnext(char c) +
      Consume the next character, and check that it matches a specified + character.
      +
      java.lang.Stringnext(int n) +
      Get the next n characters.
      +
      charnextClean() +
      Get the next char in the string, skipping whitespace.
      +
      java.lang.StringnextString(char quote) +
      Return the characters up to the next close quote character.
      +
      java.lang.StringnextTo(char delimiter) +
      Get the text up but not including the specified character or the + end of line, whichever comes first.
      +
      java.lang.StringnextTo(java.lang.String delimiters) +
      Get the text up but not including one of the specified delimiter + characters or the end of line, whichever comes first.
      +
      java.lang.ObjectnextValue() +
      Get the next value.
      +
      charskipTo(char to) +
      Skip characters until the next character is the requested character.
      +
      JSONExceptionsyntaxError(java.lang.String message) +
      Make a JSONException to signal a syntax error.
      +
      java.lang.StringtoString() +
      Make a printable string of this JSONTokener.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JSONTokener

        +
        public JSONTokener(java.io.Reader reader)
        +
        Construct a JSONTokener from a Reader.
        +
        +
        Parameters:
        +
        reader - A reader.
        +
        +
      • +
      + + + +
        +
      • +

        JSONTokener

        +
        public JSONTokener(java.io.InputStream inputStream)
        +            throws JSONException
        +
        Construct a JSONTokener from an InputStream.
        +
        +
        Parameters:
        +
        inputStream - The source.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        JSONTokener

        +
        public JSONTokener(java.lang.String s)
        +
        Construct a JSONTokener from a string.
        +
        +
        Parameters:
        +
        s - A source string.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        back

        +
        public void back()
        +          throws JSONException
        +
        Back up one character. This provides a sort of lookahead capability, + so that you can test for a digit or letter before attempting to parse + the next number or identifier.
        +
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        dehexchar

        +
        public static int dehexchar(char c)
        +
        Get the hex value of a character (base16).
        +
        +
        Parameters:
        +
        c - A character between '0' and '9' or between 'A' and 'F' or + between 'a' and 'f'.
        +
        Returns:
        +
        An int between 0 and 15, or -1 if c was not a hex digit.
        +
        +
      • +
      + + + +
        +
      • +

        end

        +
        public boolean end()
        +
      • +
      + + + +
        +
      • +

        more

        +
        public boolean more()
        +             throws JSONException
        +
        Determine if the source string still contains characters that next() + can consume.
        +
        +
        Returns:
        +
        true if not yet at the end of the source.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public char next()
        +          throws JSONException
        +
        Get the next character in the source string.
        +
        +
        Returns:
        +
        The next character, or 0 if past the end of the source string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public char next(char c)
        +          throws JSONException
        +
        Consume the next character, and check that it matches a specified + character.
        +
        +
        Parameters:
        +
        c - The character to match.
        +
        Returns:
        +
        The character.
        +
        Throws:
        +
        JSONException - if the character does not match.
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public java.lang.String next(int n)
        +                      throws JSONException
        +
        Get the next n characters.
        +
        +
        Parameters:
        +
        n - The number of characters to take.
        +
        Returns:
        +
        A string of n characters.
        +
        Throws:
        +
        JSONException - Substring bounds error if there are not + n characters remaining in the source string.
        +
        +
      • +
      + + + +
        +
      • +

        nextClean

        +
        public char nextClean()
        +               throws JSONException
        +
        Get the next char in the string, skipping whitespace.
        +
        +
        Returns:
        +
        A character, or 0 if there are no more characters.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        nextString

        +
        public java.lang.String nextString(char quote)
        +                            throws JSONException
        +
        Return the characters up to the next close quote character. + Backslash processing is done. The formal JSON format does not + allow strings in single quotes, but an implementation is allowed to + accept them.
        +
        +
        Parameters:
        +
        quote - The quoting character, either + " (double quote) or + ' (single quote).
        +
        Returns:
        +
        A String.
        +
        Throws:
        +
        JSONException - Unterminated string.
        +
        +
      • +
      + + + +
        +
      • +

        nextTo

        +
        public java.lang.String nextTo(char delimiter)
        +                        throws JSONException
        +
        Get the text up but not including the specified character or the + end of line, whichever comes first.
        +
        +
        Parameters:
        +
        delimiter - A delimiter character.
        +
        Returns:
        +
        A string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        nextTo

        +
        public java.lang.String nextTo(java.lang.String delimiters)
        +                        throws JSONException
        +
        Get the text up but not including one of the specified delimiter + characters or the end of line, whichever comes first.
        +
        +
        Parameters:
        +
        delimiters - A set of delimiter characters.
        +
        Returns:
        +
        A string, trimmed.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        nextValue

        +
        public java.lang.Object nextValue()
        +                           throws JSONException
        +
        Get the next value. The value can be a Boolean, Double, Integer, + JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
        +
        +
        Returns:
        +
        An object.
        +
        Throws:
        +
        JSONException - If syntax error.
        +
        +
      • +
      + + + +
        +
      • +

        skipTo

        +
        public char skipTo(char to)
        +            throws JSONException
        +
        Skip characters until the next character is the requested character. + If the requested character is not found, no characters are skipped.
        +
        +
        Parameters:
        +
        to - A character to skip to.
        +
        Returns:
        +
        The requested character, or zero if the requested character + is not found.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        syntaxError

        +
        public JSONException syntaxError(java.lang.String message)
        +
        Make a JSONException to signal a syntax error.
        +
        +
        Parameters:
        +
        message - The error message.
        +
        Returns:
        +
        A JSONException object, suitable for throwing
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Make a printable string of this JSONTokener.
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        +
        " at {index} [character {character} line {line}]"
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/XML.html b/javadoc/org/json/XML.html new file mode 100644 index 0000000..4b8974c --- /dev/null +++ b/javadoc/org/json/XML.html @@ -0,0 +1,590 @@ + + + + + +XML + + + + + + + + + + + + +
+
org.json
+

Class XML

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.json.XML
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class XML
    +extends java.lang.Object
    +
    This provides static methods to convert an XML text into a JSONObject, + and to covert a JSONObject into an XML text.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.CharacterAMP +
      The Character '&'.
      +
      static java.lang.CharacterAPOS +
      The Character '''.
      +
      static java.lang.CharacterBANG +
      The Character '!'.
      +
      static java.lang.CharacterEQ +
      The Character '='.
      +
      static java.lang.CharacterGT +
      The Character '>'.
      +
      static java.lang.CharacterLT +
      The Character '<'.
      +
      static java.lang.CharacterQUEST +
      The Character '?'.
      +
      static java.lang.CharacterQUOT +
      The Character '"'.
      +
      static java.lang.CharacterSLASH +
      The Character '/'.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      XML() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.lang.Stringescape(java.lang.String string) +
      Replace special characters with XML escapes:
      +
      static voidnoSpace(java.lang.String string) +
      Throw an exception if the string contains whitespace.
      +
      static java.lang.ObjectstringToValue(java.lang.String string) +
      Try to convert a string into a number, boolean, or null.
      +
      static JSONObjecttoJSONObject(java.lang.String string) +
      Convert a well-formed (but not necessarily valid) XML string into a + JSONObject.
      +
      static java.lang.StringtoString(java.lang.Object object) +
      Convert a JSONObject into a well-formed, element-normal XML string.
      +
      static java.lang.StringtoString(java.lang.Object object, + java.lang.String tagName) +
      Convert a JSONObject into a well-formed, element-normal XML string.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        AMP

        +
        public static final java.lang.Character AMP
        +
        The Character '&'.
        +
      • +
      + + + +
        +
      • +

        APOS

        +
        public static final java.lang.Character APOS
        +
        The Character '''.
        +
      • +
      + + + +
        +
      • +

        BANG

        +
        public static final java.lang.Character BANG
        +
        The Character '!'.
        +
      • +
      + + + +
        +
      • +

        EQ

        +
        public static final java.lang.Character EQ
        +
        The Character '='.
        +
      • +
      + + + +
        +
      • +

        GT

        +
        public static final java.lang.Character GT
        +
        The Character '>'.
        +
      • +
      + + + +
        +
      • +

        LT

        +
        public static final java.lang.Character LT
        +
        The Character '<'.
        +
      • +
      + + + +
        +
      • +

        QUEST

        +
        public static final java.lang.Character QUEST
        +
        The Character '?'.
        +
      • +
      + + + +
        +
      • +

        QUOT

        +
        public static final java.lang.Character QUOT
        +
        The Character '"'.
        +
      • +
      + + + +
        +
      • +

        SLASH

        +
        public static final java.lang.Character SLASH
        +
        The Character '/'.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        XML

        +
        public XML()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        escape

        +
        public static java.lang.String escape(java.lang.String string)
        +
        Replace special characters with XML escapes: +
        + & (ampersand) is replaced by &amp;
        + < (less than) is replaced by &lt;
        + > (greater than) is replaced by &gt;
        + " (double quote) is replaced by &quot;
        + 
        +
        +
        Parameters:
        +
        string - The string to be escaped.
        +
        Returns:
        +
        The escaped string.
        +
        +
      • +
      + + + +
        +
      • +

        noSpace

        +
        public static void noSpace(java.lang.String string)
        +                    throws JSONException
        +
        Throw an exception if the string contains whitespace. + Whitespace is not allowed in tagNames and attributes.
        +
        +
        Parameters:
        +
        string -
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        stringToValue

        +
        public static java.lang.Object stringToValue(java.lang.String string)
        +
        Try to convert a string into a number, boolean, or null. If the string + can't be converted, return the string. This is much less ambitious than + JSONObject.stringToValue, especially because it does not attempt to + convert plus forms, octal forms, hex forms, or E forms lacking decimal + points.
        +
        +
        Parameters:
        +
        string - A String.
        +
        Returns:
        +
        A simple JSON value.
        +
        +
      • +
      + + + +
        +
      • +

        toJSONObject

        +
        public static JSONObject toJSONObject(java.lang.String string)
        +                               throws JSONException
        +
        Convert a well-formed (but not necessarily valid) XML string into a + JSONObject. Some information may be lost in this transformation + because JSON is a data format and XML is a document format. XML uses + elements, attributes, and content text, while JSON uses unordered + collections of name/value pairs and arrays of values. JSON does not + does not like to distinguish between elements and attributes. + Sequences of similar elements are represented as JSONArrays. Content + text may be placed in a "content" member. Comments, prologs, DTDs, and + <[ [ ]]> are ignored.
        +
        +
        Parameters:
        +
        string - The source string.
        +
        Returns:
        +
        A JSONObject containing the structured data from the XML string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static java.lang.String toString(java.lang.Object object)
        +                                 throws JSONException
        +
        Convert a JSONObject into a well-formed, element-normal XML string.
        +
        +
        Parameters:
        +
        object - A JSONObject.
        +
        Returns:
        +
        A string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public static java.lang.String toString(java.lang.Object object,
        +                                        java.lang.String tagName)
        +                                 throws JSONException
        +
        Convert a JSONObject into a well-formed, element-normal XML string.
        +
        +
        Parameters:
        +
        object - A JSONObject.
        +
        tagName - The optional name of the enclosing tag.
        +
        Returns:
        +
        A string.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/XMLTokener.html b/javadoc/org/json/XMLTokener.html new file mode 100644 index 0000000..a0b8c63 --- /dev/null +++ b/javadoc/org/json/XMLTokener.html @@ -0,0 +1,469 @@ + + + + + +XMLTokener + + + + + + + + + + + + +
+
org.json
+

Class XMLTokener

+
+
+ +
+
    +
  • +
    +
    +
    public class XMLTokener
    +extends JSONTokener
    +
    The XMLTokener extends the JSONTokener to provide additional methods + for the parsing of XML texts.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.HashMapentity +
      The table of entity values.
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      XMLTokener(java.lang.String s) +
      Construct an XMLTokener from a string.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        entity

        +
        public static final java.util.HashMap entity
        +
        The table of entity values. It initially contains Character values for + amp, apos, gt, lt, quot.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        XMLTokener

        +
        public XMLTokener(java.lang.String s)
        +
        Construct an XMLTokener from a string.
        +
        +
        Parameters:
        +
        s - A source string.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        nextCDATA

        +
        public java.lang.String nextCDATA()
        +                           throws JSONException
        +
        Get the text in the CDATA block.
        +
        +
        Returns:
        +
        The string up to the ]]>.
        +
        Throws:
        +
        JSONException - If the ]]> is not found.
        +
        +
      • +
      + + + +
        +
      • +

        nextContent

        +
        public java.lang.Object nextContent()
        +                             throws JSONException
        +
        Get the next XML outer token, trimming whitespace. There are two kinds + of tokens: the '<' character which begins a markup tag, and the content + text between markup tags.
        +
        +
        Returns:
        +
        A string, or a '<' Character, or null if there is no more + source text.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        nextEntity

        +
        public java.lang.Object nextEntity(char ampersand)
        +                            throws JSONException
        +
        Return the next entity. These entities are translated to Characters: + & ' > < ".
        +
        +
        Parameters:
        +
        ampersand - An ampersand character.
        +
        Returns:
        +
        A Character or an entity String if the entity is not recognized.
        +
        Throws:
        +
        JSONException - If missing ';' in XML entity.
        +
        +
      • +
      + + + +
        +
      • +

        nextMeta

        +
        public java.lang.Object nextMeta()
        +                          throws JSONException
        +
        Returns the next XML meta token. This is used for skipping over + and structures.
        +
        +
        Returns:
        +
        Syntax characters (< > / = ! ?) are returned as + Character, and strings and names are returned as Boolean. We don't care + what the values actually are.
        +
        Throws:
        +
        JSONException - If a string is not properly closed or if the XML + is badly structured.
        +
        +
      • +
      + + + +
        +
      • +

        nextToken

        +
        public java.lang.Object nextToken()
        +                           throws JSONException
        +
        Get the next XML Token. These tokens are found inside of angle + brackets. It may be one of these characters: / > = ! ? or it + may be a string wrapped in single quotes or double quotes, or it may be a + name.
        +
        +
        Returns:
        +
        a String or a Character.
        +
        Throws:
        +
        JSONException - If the XML is not well formed.
        +
        +
      • +
      + + + +
        +
      • +

        skipPast

        +
        public boolean skipPast(java.lang.String to)
        +                 throws JSONException
        +
        Skip characters until past the requested string. + If it is not found, we are left at the end of the source with a result of false.
        +
        +
        Parameters:
        +
        to - A string to skip past.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/json/package-frame.html b/javadoc/org/json/package-frame.html new file mode 100644 index 0000000..89f1351 --- /dev/null +++ b/javadoc/org/json/package-frame.html @@ -0,0 +1,34 @@ + + + + + +org.json + + + + + +

org.json

+
+

Interfaces

+ +

Classes

+ +

Exceptions

+ +
+ + diff --git a/javadoc/org/json/package-summary.html b/javadoc/org/json/package-summary.html new file mode 100644 index 0000000..ef5c66c --- /dev/null +++ b/javadoc/org/json/package-summary.html @@ -0,0 +1,221 @@ + + + + + +org.json + + + + + + + + + + + +
+

Package org.json

+
+
+
    +
  • + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    JSONString +
    The JSONString interface allows a toJSONString() + method so that a class can change the behavior of + JSONObject.toString(), JSONArray.toString(), + and JSONWriter.value(Object).
    +
    +
  • +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    CDL +
    This provides static methods to convert comma delimited text into a + JSONArray, and to convert a JSONArray into comma delimited text.
    +
    JSONArray +
    A JSONArray is an ordered sequence of values.
    +
    JSONML +
    This provides static methods to convert an XML text into a JSONArray or + JSONObject, and to covert a JSONArray or JSONObject into an XML text using + the JsonML transform.
    +
    JSONObject +
    A JSONObject is an unordered collection of name/value pairs.
    +
    JSONTokener +
    A JSONTokener takes a source string and extracts characters and tokens from + it.
    +
    XML +
    This provides static methods to convert an XML text into a JSONObject, + and to covert a JSONObject into an XML text.
    +
    XMLTokener +
    The XMLTokener extends the JSONTokener to provide additional methods + for the parsing of XML texts.
    +
    +
  • +
  • + + + + + + + + + + + + +
    Exception Summary 
    ExceptionDescription
    JSONException +
    The JSONException is thrown by the JSON.org classes when things are amiss.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/json/package-tree.html b/javadoc/org/json/package-tree.html new file mode 100644 index 0000000..3360201 --- /dev/null +++ b/javadoc/org/json/package-tree.html @@ -0,0 +1,161 @@ + + + + + +org.json Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.json

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+

Interface Hierarchy

+ +
+ + + + + + From d929048a48c07786d481e4f8790770fe42c726c7 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:45:56 +0530 Subject: [PATCH 07/18] Delete 1. --- javadoc/org/json/1. | 1 - 1 file changed, 1 deletion(-) delete mode 100644 javadoc/org/json/1. diff --git a/javadoc/org/json/1. b/javadoc/org/json/1. deleted file mode 100644 index 42d601e..0000000 --- a/javadoc/org/json/1. +++ /dev/null @@ -1 +0,0 @@ -cvcv vbb From 555d7a86e91ec9b5db1d0c39ef88d8fe3fb6dd1e Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:47:14 +0530 Subject: [PATCH 08/18] Create 1.sdcd --- javadoc/org/loklak/1.sdcd | 1 + 1 file changed, 1 insertion(+) create mode 100644 javadoc/org/loklak/1.sdcd diff --git a/javadoc/org/loklak/1.sdcd b/javadoc/org/loklak/1.sdcd new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/javadoc/org/loklak/1.sdcd @@ -0,0 +1 @@ + From ead59ee321566d223a919a4526f8578d86da0910 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:53:44 +0530 Subject: [PATCH 09/18] Add files via upload --- javadoc/org/loklak/Caretaker.html | 409 +++++++++++++++++++++ javadoc/org/loklak/Crawler.html | 303 +++++++++++++++ javadoc/org/loklak/DumpImporter.html | 350 ++++++++++++++++++ javadoc/org/loklak/LoklakEmailHandler.html | 363 ++++++++++++++++++ javadoc/org/loklak/LoklakInstallation.html | 336 +++++++++++++++++ javadoc/org/loklak/LoklakServer.html | 393 ++++++++++++++++++++ javadoc/org/loklak/package-frame.html | 25 ++ javadoc/org/loklak/package-summary.html | 163 ++++++++ javadoc/org/loklak/package-tree.html | 144 ++++++++ 9 files changed, 2486 insertions(+) create mode 100644 javadoc/org/loklak/Caretaker.html create mode 100644 javadoc/org/loklak/Crawler.html create mode 100644 javadoc/org/loklak/DumpImporter.html create mode 100644 javadoc/org/loklak/LoklakEmailHandler.html create mode 100644 javadoc/org/loklak/LoklakInstallation.html create mode 100644 javadoc/org/loklak/LoklakServer.html create mode 100644 javadoc/org/loklak/package-frame.html create mode 100644 javadoc/org/loklak/package-summary.html create mode 100644 javadoc/org/loklak/package-tree.html diff --git a/javadoc/org/loklak/Caretaker.html b/javadoc/org/loklak/Caretaker.html new file mode 100644 index 0000000..be8c0c6 --- /dev/null +++ b/javadoc/org/loklak/Caretaker.html @@ -0,0 +1,409 @@ + + + + + +Caretaker + + + + + + + + + + + + +
+
org.loklak
+

Class Caretaker

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Thread
    • +
    • +
        +
      • org.loklak.Caretaker
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class Caretaker
    +extends java.lang.Thread
    +
    The caretaker class is a concurrent thread which does peer-to-peer operations + and data transmission asynchronously.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        +java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static longstartupTime 
      static longupgradeTime 
      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        +MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Caretaker() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static booleanacceptQuery4Retrieval(java.lang.String q) 
      voidrun() 
      voidshutdown() +
      ask the thread to shut down
      +
      static voidupgrade() +
      loklak upgrades itself if this is called
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        +activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        startupTime

        +
        public static final long startupTime
        +
      • +
      + + + +
        +
      • +

        upgradeTime

        +
        public static long upgradeTime
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Caretaker

        +
        public Caretaker()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        shutdown

        +
        public void shutdown()
        +
        ask the thread to shut down
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Overrides:
        +
        run in class java.lang.Thread
        +
        +
      • +
      + + + +
        +
      • +

        acceptQuery4Retrieval

        +
        public static boolean acceptQuery4Retrieval(java.lang.String q)
        +
      • +
      + + + +
        +
      • +

        upgrade

        +
        public static void upgrade()
        +
        loklak upgrades itself if this is called
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/Crawler.html b/javadoc/org/loklak/Crawler.html new file mode 100644 index 0000000..21bf814 --- /dev/null +++ b/javadoc/org/loklak/Crawler.html @@ -0,0 +1,303 @@ + + + + + +Crawler + + + + + + + + + + + + +
+
org.loklak
+

Class Crawler

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.Crawler
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Crawler
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Crawler() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static intprocess() 
      static booleanstack(java.lang.String query, + int depth, + boolean followHashtags, + boolean followUsers, + boolean atfront) 
      static JSONObjecttoJSON() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Crawler

        +
        public Crawler()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        stack

        +
        public static boolean stack(java.lang.String query,
        +                            int depth,
        +                            boolean followHashtags,
        +                            boolean followUsers,
        +                            boolean atfront)
        +
      • +
      + + + +
        +
      • +

        process

        +
        public static int process()
        +
      • +
      + + + +
        +
      • +

        toJSON

        +
        public static JSONObject toJSON()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/DumpImporter.html b/javadoc/org/loklak/DumpImporter.html new file mode 100644 index 0000000..c031828 --- /dev/null +++ b/javadoc/org/loklak/DumpImporter.html @@ -0,0 +1,350 @@ + + + + + +DumpImporter + + + + + + + + + + + + +
+
org.loklak
+

Class DumpImporter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Thread
    • +
    • +
        +
      • org.loklak.DumpImporter
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class DumpImporter
    +extends java.lang.Thread
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        +java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        +MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DumpImporter(int count) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanisBusy() 
      voidrun() 
      voidshutdown() +
      ask the thread to shut down
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        +activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DumpImporter

        +
        public DumpImporter(int count)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        shutdown

        +
        public void shutdown()
        +
        ask the thread to shut down
        +
      • +
      + + + +
        +
      • +

        isBusy

        +
        public boolean isBusy()
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Overrides:
        +
        run in class java.lang.Thread
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/LoklakEmailHandler.html b/javadoc/org/loklak/LoklakEmailHandler.html new file mode 100644 index 0000000..f3df260 --- /dev/null +++ b/javadoc/org/loklak/LoklakEmailHandler.html @@ -0,0 +1,363 @@ + + + + + +LoklakEmailHandler + + + + + + + + + + + + +
+
org.loklak
+

Class LoklakEmailHandler

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.LoklakEmailHandler
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LoklakEmailHandler
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringEMAIL_PATTERN 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LoklakEmailHandler() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidcheckConnection(java.lang.String hostname, + java.lang.String username, + java.lang.String password, + java.lang.String encryption, + int port, + boolean disableCertificateChecking) +
      Check SMTP login credentials
      +
      static voidsendEmail(java.lang.String addressTo, + java.lang.String subject, + java.lang.String text) +
      Send an email
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LoklakEmailHandler

        +
        public LoklakEmailHandler()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sendEmail

        +
        public static void sendEmail(java.lang.String addressTo,
        +                             java.lang.String subject,
        +                             java.lang.String text)
        +                      throws java.lang.Exception
        +
        Send an email
        +
        +
        Parameters:
        +
        addressTo - Email address to send to
        +
        subject - The email subject
        +
        text - The content
        +
        Throws:
        +
        java.lang.Exception - on errors
        +
        +
      • +
      + + + +
        +
      • +

        checkConnection

        +
        public static void checkConnection(java.lang.String hostname,
        +                                   java.lang.String username,
        +                                   java.lang.String password,
        +                                   java.lang.String encryption,
        +                                   int port,
        +                                   boolean disableCertificateChecking)
        +                            throws MessagingException
        +
        Check SMTP login credentials
        +
        +
        Parameters:
        +
        hostname - the host address
        +
        username - the username/login
        +
        password - the password
        +
        encryption - encryption type (must be none, starttls or tls)
        +
        port - the port number
        +
        disableCertificateChecking - disable certificate checking (behind a ssl-proxy or when the server has a self signed certificate)
        +
        Throws:
        +
        MessagingException - on error
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/LoklakInstallation.html b/javadoc/org/loklak/LoklakInstallation.html new file mode 100644 index 0000000..8b7c8e3 --- /dev/null +++ b/javadoc/org/loklak/LoklakInstallation.html @@ -0,0 +1,336 @@ + + + + + +LoklakInstallation + + + + + + + + + + + + +
+
org.loklak
+

Class LoklakInstallation

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.LoklakInstallation
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LoklakInstallation
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.Set<java.lang.String>blacklistedHosts 
      static Serverserver 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LoklakInstallation() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] args) 
      static voidshutdown(int exitcode) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        blacklistedHosts

        +
        public static final java.util.Set<java.lang.String> blacklistedHosts
        +
      • +
      + + + +
        +
      • +

        server

        +
        public static Server server
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LoklakInstallation

        +
        public LoklakInstallation()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +                 throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        shutdown

        +
        public static void shutdown(int exitcode)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/LoklakServer.html b/javadoc/org/loklak/LoklakServer.html new file mode 100644 index 0000000..fec4e8f --- /dev/null +++ b/javadoc/org/loklak/LoklakServer.html @@ -0,0 +1,393 @@ + + + + + +LoklakServer + + + + + + + + + + + + +
+
org.loklak
+

Class LoklakServer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.LoklakServer
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LoklakServer
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LoklakServer() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static intgetServerThreads() 
      static java.lang.StringgetServerURI() 
      static voidmain(java.lang.String[] args) 
      static java.util.Map<java.lang.String,java.lang.String>readConfig(java.nio.file.Path data) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        blacklistedHosts

        +
        public static final java.util.Set<java.lang.String> blacklistedHosts
        +
      • +
      + + + + + + + +
        +
      • +

        services

        +
        public static java.lang.Class<? extends Servlet>[] services
        +
      • +
      + + + +
        +
      • +

        harvester

        +
        public static Harvester harvester
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LoklakServer

        +
        public LoklakServer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readConfig

        +
        public static java.util.Map<java.lang.String,java.lang.String> readConfig(java.nio.file.Path data)
        +                                                                   throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getServerThreads

        +
        public static int getServerThreads()
        +
      • +
      + + + +
        +
      • +

        getServerURI

        +
        public static java.lang.String getServerURI()
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +                 throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/package-frame.html b/javadoc/org/loklak/package-frame.html new file mode 100644 index 0000000..d3598c3 --- /dev/null +++ b/javadoc/org/loklak/package-frame.html @@ -0,0 +1,25 @@ + + + + + +org.loklak + + + + + +

org.loklak

+ + + diff --git a/javadoc/org/loklak/package-summary.html b/javadoc/org/loklak/package-summary.html new file mode 100644 index 0000000..c56bc7f --- /dev/null +++ b/javadoc/org/loklak/package-summary.html @@ -0,0 +1,163 @@ + + + + + +org.loklak + + + + + + + + + + + +
+

Package org.loklak

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/package-tree.html b/javadoc/org/loklak/package-tree.html new file mode 100644 index 0000000..c8fd3fe --- /dev/null +++ b/javadoc/org/loklak/package-tree.html @@ -0,0 +1,144 @@ + + + + + +org.loklak Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + From 0f45e1c3574ae8d1dab60931e822ad26e1231a61 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:55:23 +0530 Subject: [PATCH 10/18] Create 1 --- javadoc/org/loklak/api/admin/1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 javadoc/org/loklak/api/admin/1 diff --git a/javadoc/org/loklak/api/admin/1 b/javadoc/org/loklak/api/admin/1 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/javadoc/org/loklak/api/admin/1 @@ -0,0 +1 @@ + From aec56acbffc3082c3c9f4c3c5fffcdcfdd1293e6 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:56:28 +0530 Subject: [PATCH 11/18] adding javadov for api/admin --- .../org/loklak/api/admin/AccessServlet.html | 305 +++++++++++++ .../org/loklak/api/admin/CampaignServlet.html | 305 +++++++++++++ .../org/loklak/api/admin/CrawlerServlet.html | 305 +++++++++++++ .../org/loklak/api/admin/SettingsServlet.html | 306 +++++++++++++ .../org/loklak/api/admin/StatusService.html | 412 ++++++++++++++++++ .../loklak/api/admin/ThreaddumpServlet.html | 305 +++++++++++++ .../org/loklak/api/admin/package-frame.html | 25 ++ .../org/loklak/api/admin/package-summary.html | 162 +++++++ .../org/loklak/api/admin/package-tree.html | 168 +++++++ 9 files changed, 2293 insertions(+) create mode 100644 javadoc/org/loklak/api/admin/AccessServlet.html create mode 100644 javadoc/org/loklak/api/admin/CampaignServlet.html create mode 100644 javadoc/org/loklak/api/admin/CrawlerServlet.html create mode 100644 javadoc/org/loklak/api/admin/SettingsServlet.html create mode 100644 javadoc/org/loklak/api/admin/StatusService.html create mode 100644 javadoc/org/loklak/api/admin/ThreaddumpServlet.html create mode 100644 javadoc/org/loklak/api/admin/package-frame.html create mode 100644 javadoc/org/loklak/api/admin/package-summary.html create mode 100644 javadoc/org/loklak/api/admin/package-tree.html diff --git a/javadoc/org/loklak/api/admin/AccessServlet.html b/javadoc/org/loklak/api/admin/AccessServlet.html new file mode 100644 index 0000000..45be027 --- /dev/null +++ b/javadoc/org/loklak/api/admin/AccessServlet.html @@ -0,0 +1,305 @@ + + + + + +AccessServlet + + + + + + + + + + + + +
+
org.loklak.api.admin
+

Class AccessServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.admin.AccessServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class AccessServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AccessServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AccessServlet

        +
        public AccessServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/admin/CampaignServlet.html b/javadoc/org/loklak/api/admin/CampaignServlet.html new file mode 100644 index 0000000..250d31b --- /dev/null +++ b/javadoc/org/loklak/api/admin/CampaignServlet.html @@ -0,0 +1,305 @@ + + + + + +CampaignServlet + + + + + + + + + + + + +
+
org.loklak.api.admin
+

Class CampaignServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.admin.CampaignServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CampaignServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CampaignServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CampaignServlet

        +
        public CampaignServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/admin/CrawlerServlet.html b/javadoc/org/loklak/api/admin/CrawlerServlet.html new file mode 100644 index 0000000..00cda81 --- /dev/null +++ b/javadoc/org/loklak/api/admin/CrawlerServlet.html @@ -0,0 +1,305 @@ + + + + + +CrawlerServlet + + + + + + + + + + + + +
+
org.loklak.api.admin
+

Class CrawlerServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.admin.CrawlerServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CrawlerServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CrawlerServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CrawlerServlet

        +
        public CrawlerServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/admin/SettingsServlet.html b/javadoc/org/loklak/api/admin/SettingsServlet.html new file mode 100644 index 0000000..a69a421 --- /dev/null +++ b/javadoc/org/loklak/api/admin/SettingsServlet.html @@ -0,0 +1,306 @@ + + + + + +SettingsServlet + + + + + + + + + + + + +
+
org.loklak.api.admin
+

Class SettingsServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.admin.SettingsServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class SettingsServlet
    +extends HttpServlet
    +
    submit all setting values where the settings key starts with "client."
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SettingsServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SettingsServlet

        +
        public SettingsServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/admin/StatusService.html b/javadoc/org/loklak/api/admin/StatusService.html new file mode 100644 index 0000000..ca5fa95 --- /dev/null +++ b/javadoc/org/loklak/api/admin/StatusService.html @@ -0,0 +1,412 @@ + + + + + +StatusService + + + + + + + + + + + + +
+
org.loklak.api.admin
+

Class StatusService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/admin/ThreaddumpServlet.html b/javadoc/org/loklak/api/admin/ThreaddumpServlet.html new file mode 100644 index 0000000..3bad614 --- /dev/null +++ b/javadoc/org/loklak/api/admin/ThreaddumpServlet.html @@ -0,0 +1,305 @@ + + + + + +ThreaddumpServlet + + + + + + + + + + + + +
+
org.loklak.api.admin
+

Class ThreaddumpServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.admin.ThreaddumpServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ThreaddumpServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ThreaddumpServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ThreaddumpServlet

        +
        public ThreaddumpServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/admin/package-frame.html b/javadoc/org/loklak/api/admin/package-frame.html new file mode 100644 index 0000000..19c88ba --- /dev/null +++ b/javadoc/org/loklak/api/admin/package-frame.html @@ -0,0 +1,25 @@ + + + + + +org.loklak.api.admin + + + + + +

org.loklak.api.admin

+ + + diff --git a/javadoc/org/loklak/api/admin/package-summary.html b/javadoc/org/loklak/api/admin/package-summary.html new file mode 100644 index 0000000..eaa96cd --- /dev/null +++ b/javadoc/org/loklak/api/admin/package-summary.html @@ -0,0 +1,162 @@ + + + + + +org.loklak.api.admin + + + + + + + + + + + +
+

Package org.loklak.api.admin

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/admin/package-tree.html b/javadoc/org/loklak/api/admin/package-tree.html new file mode 100644 index 0000000..bf8320a --- /dev/null +++ b/javadoc/org/loklak/api/admin/package-tree.html @@ -0,0 +1,168 @@ + + + + + +org.loklak.api.admin Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.admin

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + From 3c71b1db78e8152882bc1f481ce4b39571f86248 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:56:55 +0530 Subject: [PATCH 12/18] Delete 1 --- javadoc/org/loklak/api/admin/1 | 1 - 1 file changed, 1 deletion(-) delete mode 100644 javadoc/org/loklak/api/admin/1 diff --git a/javadoc/org/loklak/api/admin/1 b/javadoc/org/loklak/api/admin/1 deleted file mode 100644 index 8b13789..0000000 --- a/javadoc/org/loklak/api/admin/1 +++ /dev/null @@ -1 +0,0 @@ - From 770dc1a5c38627b85bde7a0abd22ed3717034d98 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:57:38 +0530 Subject: [PATCH 13/18] Create 1 --- javadoc/org/loklak/api/aggregation/1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 javadoc/org/loklak/api/aggregation/1 diff --git a/javadoc/org/loklak/api/aggregation/1 b/javadoc/org/loklak/api/aggregation/1 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/javadoc/org/loklak/api/aggregation/1 @@ -0,0 +1 @@ + From f3d7c2e38e8487e846fbdaa69a6cf68ad7a1690d Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 22:58:36 +0530 Subject: [PATCH 14/18] Javadoc for aggregation --- .../api/aggregation/ClassifierServlet.html | 407 ++++++++++++++++++ .../aggregation/ClassifierServletCache.html | 300 +++++++++++++ .../loklak/api/aggregation/package-frame.html | 21 + .../api/aggregation/package-summary.html | 144 +++++++ .../loklak/api/aggregation/package-tree.html | 144 +++++++ 5 files changed, 1016 insertions(+) create mode 100644 javadoc/org/loklak/api/aggregation/ClassifierServlet.html create mode 100644 javadoc/org/loklak/api/aggregation/ClassifierServletCache.html create mode 100644 javadoc/org/loklak/api/aggregation/package-frame.html create mode 100644 javadoc/org/loklak/api/aggregation/package-summary.html create mode 100644 javadoc/org/loklak/api/aggregation/package-tree.html diff --git a/javadoc/org/loklak/api/aggregation/ClassifierServlet.html b/javadoc/org/loklak/api/aggregation/ClassifierServlet.html new file mode 100644 index 0000000..d638262 --- /dev/null +++ b/javadoc/org/loklak/api/aggregation/ClassifierServlet.html @@ -0,0 +1,407 @@ + + + + + +ClassifierServlet + + + + + + + + + + + + +
+
org.loklak.api.aggregation
+

Class ClassifierServlet

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/aggregation/ClassifierServletCache.html b/javadoc/org/loklak/api/aggregation/ClassifierServletCache.html new file mode 100644 index 0000000..f82cd6d --- /dev/null +++ b/javadoc/org/loklak/api/aggregation/ClassifierServletCache.html @@ -0,0 +1,300 @@ + + + + + +ClassifierServletCache + + + + + + + + + + + + +
+
org.loklak.api.aggregation
+

Class ClassifierServletCache

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.api.aggregation.ClassifierServletCache
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ClassifierServletCache
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static JSONObjectgetOrCreate(java.lang.String index, + java.lang.String classifier, + java.lang.String sinceDate, + java.lang.String untilDate, + java.util.List<java.lang.String> classes) 
      static JSONObjectgetOrCreate(java.lang.String index, + java.lang.String classifier, + java.lang.String sinceDate, + java.lang.String untilDate, + java.util.List<java.lang.String> classes, + java.util.List<java.lang.String> countries) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClassifierServletCache

        +
        public ClassifierServletCache()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getOrCreate

        +
        public static JSONObject getOrCreate(java.lang.String index,
        +                                     java.lang.String classifier,
        +                                     java.lang.String sinceDate,
        +                                     java.lang.String untilDate,
        +                                     java.util.List<java.lang.String> classes)
        +
      • +
      + + + +
        +
      • +

        getOrCreate

        +
        public static JSONObject getOrCreate(java.lang.String index,
        +                                     java.lang.String classifier,
        +                                     java.lang.String sinceDate,
        +                                     java.lang.String untilDate,
        +                                     java.util.List<java.lang.String> classes,
        +                                     java.util.List<java.lang.String> countries)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/aggregation/package-frame.html b/javadoc/org/loklak/api/aggregation/package-frame.html new file mode 100644 index 0000000..39a1f5c --- /dev/null +++ b/javadoc/org/loklak/api/aggregation/package-frame.html @@ -0,0 +1,21 @@ + + + + + +org.loklak.api.aggregation + + + + + +

org.loklak.api.aggregation

+ + + diff --git a/javadoc/org/loklak/api/aggregation/package-summary.html b/javadoc/org/loklak/api/aggregation/package-summary.html new file mode 100644 index 0000000..18fe259 --- /dev/null +++ b/javadoc/org/loklak/api/aggregation/package-summary.html @@ -0,0 +1,144 @@ + + + + + +org.loklak.api.aggregation + + + + + + + + + + + +
+

Package org.loklak.api.aggregation

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/aggregation/package-tree.html b/javadoc/org/loklak/api/aggregation/package-tree.html new file mode 100644 index 0000000..d53607e --- /dev/null +++ b/javadoc/org/loklak/api/aggregation/package-tree.html @@ -0,0 +1,144 @@ + + + + + +org.loklak.api.aggregation Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.aggregation

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + From 916f70eca7ad3a159b55ffd5833d4a3313421001 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 23:01:03 +0530 Subject: [PATCH 15/18] Linking index.html for javadoc --- server/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.html b/server/index.html index 94040aa..66d83f2 100644 --- a/server/index.html +++ b/server/index.html @@ -307,7 +307,7 @@

Where can I find showcases and tutorials?

Where do I find the java documentation?

-

At http://dev.loklak.org/javadoc or by building them via ‘ant javadoc’.

+

At http://dev.loklak.org/javadoc or by building them via ‘ant javadoc’.

Where can I get the latest news about loklak?

@@ -488,4 +488,4 @@

Related Topics

- \ No newline at end of file + From 4b23903fcd6fb95904c0fa8fb02ecc5b309c7b51 Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 23:02:57 +0530 Subject: [PATCH 16/18] adding index.html for javadoc --- server/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.html b/server/index.html index 66d83f2..2c6cab9 100644 --- a/server/index.html +++ b/server/index.html @@ -307,7 +307,7 @@

Where can I find showcases and tutorials?

Where do I find the java documentation?

-

At http://dev.loklak.org/javadoc or by building them via ‘ant javadoc’.

+

At http://dev.loklak.org/javadoc/index.html or by building them via ‘ant javadoc’.

Where can I get the latest news about loklak?

From 323085b3404b741ddf1d25adf459123df2d5851d Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 23:17:25 +0530 Subject: [PATCH 17/18] Uploading javadoc folder for loklak api --- javadoc/org/loklak/1.sdcd | 1 - javadoc/org/loklak/api/aggregation/1 | 1 - .../api/amazon/AmazonProductService.html | 426 ++++ .../api/amazon/SignedRequestsHelper.html | 299 +++ .../org/loklak/api/amazon/package-frame.html | 21 + .../loklak/api/amazon/package-summary.html | 147 ++ .../org/loklak/api/amazon/package-tree.html | 144 ++ .../org/loklak/api/cms/AccountService.html | 381 ++++ javadoc/org/loklak/api/cms/AppsService.html | 381 ++++ javadoc/org/loklak/api/cms/AssetServlet.html | 305 +++ .../api/cms/AuthorizationDemoService.html | 381 ++++ .../loklak/api/cms/DumpDownloadServlet.html | 305 +++ .../api/cms/InstallationPageService.html | 381 ++++ javadoc/org/loklak/api/cms/LoginService.html | 390 ++++ .../api/cms/PasswordRecoveryService.html | 381 ++++ .../loklak/api/cms/PasswordResetService.html | 381 ++++ javadoc/org/loklak/api/cms/ProxyServlet.html | 329 +++ .../api/cms/PublicKeyRegistrationService.html | 402 ++++ .../api/cms/SettingsManagementService.html | 381 ++++ javadoc/org/loklak/api/cms/SignUpService.html | 409 ++++ javadoc/org/loklak/api/cms/Sitemap.html | 305 +++ .../org/loklak/api/cms/TopMenuService.html | 378 ++++ .../api/cms/TwitterAnalysisService.html | 396 ++++ .../api/cms/UserAccountPermissions.html | 381 ++++ .../loklak/api/cms/UserManagementService.html | 381 ++++ javadoc/org/loklak/api/cms/package-frame.html | 37 + .../org/loklak/api/cms/package-summary.html | 212 ++ javadoc/org/loklak/api/cms/package-tree.html | 176 ++ .../org/loklak/api/geo/GeocodeServlet.html | 310 +++ javadoc/org/loklak/api/geo/package-frame.html | 20 + .../org/loklak/api/geo/package-summary.html | 146 ++ javadoc/org/loklak/api/geo/package-tree.html | 139 ++ .../loklak/api/iot/AbstractPushServlet.html | 392 ++++ .../org/loklak/api/iot/EarthquakeServlet.html | 325 +++ .../loklak/api/iot/FossasiaPushServlet.html | 358 +++ .../api/iot/FreifunkNodeFetchServlet.html | 325 +++ .../api/iot/FreifunkNodePushServlet.html | 358 +++ .../loklak/api/iot/GeoJsonPushServlet.html | 305 +++ .../loklak/api/iot/ImportProfileServlet.html | 305 +++ .../api/iot/NMEAServlet.GPSPosition.html | 430 ++++ javadoc/org/loklak/api/iot/NMEAServlet.html | 337 +++ .../org/loklak/api/iot/NOAAAlertServlet.html | 305 +++ .../org/loklak/api/iot/NetmonPushServlet.html | 283 +++ .../loklak/api/iot/NodelistPushServlet.html | 358 +++ .../api/iot/OpenWifiMapPushServlet.html | 358 +++ javadoc/org/loklak/api/iot/PushReport.html | 412 ++++ .../org/loklak/api/iot/PushServletHelper.html | 397 ++++ .../loklak/api/iot/StuffInSpaceServlet.html | 325 +++ .../org/loklak/api/iot/ValidateServlet.html | 305 +++ .../org/loklak/api/iot/YahiHazeServlet.html | 325 +++ javadoc/org/loklak/api/iot/package-frame.html | 36 + .../org/loklak/api/iot/package-summary.html | 204 ++ javadoc/org/loklak/api/iot/package-tree.html | 199 ++ javadoc/org/loklak/api/p2p/HelloService.html | 393 ++++ javadoc/org/loklak/api/p2p/PeersServlet.html | 335 +++ javadoc/org/loklak/api/p2p/PushServlet.html | 379 ++++ javadoc/org/loklak/api/p2p/package-frame.html | 22 + .../org/loklak/api/p2p/package-summary.html | 152 ++ javadoc/org/loklak/api/p2p/package-tree.html | 153 ++ javadoc/org/loklak/api/package-frame.html | 14 + javadoc/org/loklak/api/package-summary.html | 121 + javadoc/org/loklak/api/package-tree.html | 125 ++ javadoc/org/loklak/api/tools/CSVServlet.html | 305 +++ javadoc/org/loklak/api/tools/XMLServlet.html | 305 +++ .../org/loklak/api/tools/package-frame.html | 21 + .../org/loklak/api/tools/package-summary.html | 144 ++ .../org/loklak/api/tools/package-tree.html | 144 ++ javadoc/org/loklak/api/vis/MapServlet.html | 329 +++ .../org/loklak/api/vis/MarkdownServlet.html | 329 +++ .../org/loklak/api/vis/PieChartServlet.html | 360 +++ javadoc/org/loklak/api/vis/package-frame.html | 22 + .../org/loklak/api/vis/package-summary.html | 148 ++ javadoc/org/loklak/api/vis/package-tree.html | 149 ++ .../org/loklak/data/AbstractIndexFactory.html | 544 +++++ javadoc/org/loklak/data/AccountFactory.html | 321 +++ javadoc/org/loklak/data/Campaign.html | 542 +++++ javadoc/org/loklak/data/Campaigns.State.html | 415 ++++ javadoc/org/loklak/data/Campaigns.html | 327 +++ .../org/loklak/data/Classifier.Category.html | 535 +++++ .../org/loklak/data/Classifier.Context.html | 456 ++++ javadoc/org/loklak/data/Classifier.html | 369 +++ javadoc/org/loklak/data/DAO.IndexName.html | 428 ++++ .../org/loklak/data/DAO.MessageWrapper.html | 305 +++ .../loklak/data/DAO.SearchLocalMessages.html | 382 ++++ javadoc/org/loklak/data/DAO.html | 1983 +++++++++++++++++ .../org/loklak/data/DAO.parallelScrape.html | 327 +++ .../data/DAOWrapper.GenericJSONBuilder.html | 494 ++++ javadoc/org/loklak/data/DAOWrapper.html | 320 +++ .../data/ElasticsearchClient.BulkEntry.html | 294 +++ .../ElasticsearchClient.BulkWriteResult.html | 286 +++ .../data/ElasticsearchClient.Query.html | 330 +++ .../org/loklak/data/ElasticsearchClient.html | 1291 +++++++++++ .../org/loklak/data/ImportProfileFactory.html | 321 +++ .../loklak/data/IncomingMessageBuffer.html | 447 ++++ javadoc/org/loklak/data/IndexEntry.html | 301 +++ javadoc/org/loklak/data/IndexFactory.html | 344 +++ javadoc/org/loklak/data/Insertable.html | 275 +++ javadoc/org/loklak/data/MessageFactory.html | 318 +++ .../loklak/data/OutgoingMessageBuffer.html | 326 +++ javadoc/org/loklak/data/QueryFactory.html | 318 +++ javadoc/org/loklak/data/UserFactory.html | 318 +++ javadoc/org/loklak/data/package-frame.html | 51 + javadoc/org/loklak/data/package-summary.html | 289 +++ javadoc/org/loklak/data/package-tree.html | 183 ++ javadoc/org/loklak/geo/AbstractGeoPoint.html | 332 +++ .../org/loklak/geo/GeoJsonReader.Feature.html | 369 +++ javadoc/org/loklak/geo/GeoJsonReader.html | 376 ++++ javadoc/org/loklak/geo/GeoLocation.html | 482 ++++ javadoc/org/loklak/geo/GeoMark.html | 383 ++++ .../loklak/geo/GeoNames.CountryBounds.html | 348 +++ javadoc/org/loklak/geo/GeoNames.html | 520 +++++ javadoc/org/loklak/geo/GeoPoint.html | 416 ++++ javadoc/org/loklak/geo/IntegerGeoPoint.html | 484 ++++ javadoc/org/loklak/geo/LocationSource.html | 363 +++ .../loklak/geo/OSMTile.TileCoordinates.html | 420 ++++ javadoc/org/loklak/geo/OSMTile.html | 321 +++ javadoc/org/loklak/geo/package-frame.html | 37 + javadoc/org/loklak/geo/package-summary.html | 213 ++ javadoc/org/loklak/geo/package-tree.html | 169 ++ javadoc/org/loklak/graphics/AnimationGIF.html | 325 +++ .../graphics/AnimationPlotter.Frame.html | 241 ++ .../org/loklak/graphics/AnimationPlotter.html | 328 +++ javadoc/org/loklak/graphics/ChartPlotter.html | 568 +++++ javadoc/org/loklak/graphics/CircleTool.html | 313 +++ .../loklak/graphics/GraphPlotter.Point.html | 348 +++ .../loklak/graphics/GraphPlotter.Ribbon.html | 243 ++ javadoc/org/loklak/graphics/GraphPlotter.html | 518 +++++ .../org/loklak/graphics/HexGridPlotter.html | 500 +++++ javadoc/org/loklak/graphics/PrintTool.html | 345 +++ .../graphics/RasterPlotter.DrawMode.html | 355 +++ .../graphics/RasterPlotter.FilterMode.html | 355 +++ .../org/loklak/graphics/RasterPlotter.html | 1546 +++++++++++++ .../org/loklak/graphics/package-frame.html | 35 + .../org/loklak/graphics/package-summary.html | 204 ++ javadoc/org/loklak/graphics/package-tree.html | 161 ++ javadoc/org/loklak/harvester/BaseScraper.html | 664 ++++++ .../loklak/harvester/HarvestingFrequency.html | 421 ++++ ...eldConverter.JsonConversionSchemaEnum.html | 392 ++++ .../loklak/harvester/JsonFieldConverter.html | 316 +++ .../JsonValidator.JsonSchemaEnum.html | 406 ++++ .../org/loklak/harvester/JsonValidator.html | 299 +++ javadoc/org/loklak/harvester/Post.html | 481 ++++ javadoc/org/loklak/harvester/PushThread.html | 280 +++ .../loklak/harvester/RedirectUnshortener.html | 282 +++ javadoc/org/loklak/harvester/TwitterAPI.html | 555 +++++ .../TwitterScraper.TwitterTweet.html | 493 ++++ .../org/loklak/harvester/TwitterScraper.html | 414 ++++ .../loklak/harvester/WeiboInfoScraper.html | 295 +++ .../org/loklak/harvester/YoutubeScraper.html | 512 +++++ .../org/loklak/harvester/package-frame.html | 36 + .../org/loklak/harvester/package-summary.html | 205 ++ .../org/loklak/harvester/package-tree.html | 185 ++ .../harvester/strategy/ClassicHarvester.html | 371 +++ .../loklak/harvester/strategy/Harvester.html | 246 ++ .../harvester/strategy/KaizenHarvester.html | 352 +++ .../harvester/strategy/KaizenQueries.html | 354 +++ ...KaizenHarvester.PriorityKaizenQueries.html | 342 +++ .../strategy/PriorityKaizenHarvester.html | 270 +++ .../harvester/strategy/package-frame.html | 28 + .../harvester/strategy/package-summary.html | 179 ++ .../harvester/strategy/package-tree.html | 149 ++ .../org/loklak/http/AccessTracker.Track.html | 480 ++++ javadoc/org/loklak/http/AccessTracker.html | 435 ++++ javadoc/org/loklak/http/ClientConnection.html | 734 ++++++ javadoc/org/loklak/http/CookieRequest.html | 245 ++ .../org/loklak/http/CookieRequestManager.html | 352 +++ .../loklak/http/RemoteAccess.FileType.html | 391 ++++ .../http/RemoteAccess.FileTypeEncoding.html | 254 +++ javadoc/org/loklak/http/RemoteAccess.html | 507 +++++ javadoc/org/loklak/http/package-frame.html | 32 + javadoc/org/loklak/http/package-summary.html | 190 ++ javadoc/org/loklak/http/package-tree.html | 164 ++ .../loklak/objects/AbstractObjectEntry.html | 595 +++++ .../loklak/objects/AccountEntry.Field.html | 403 ++++ javadoc/org/loklak/objects/AccountEntry.html | 509 +++++ .../ImportProfileEntry.EntryStatus.html | 343 +++ .../ImportProfileEntry.PrivacyStatus.html | 343 +++ .../loklak/objects/ImportProfileEntry.html | 973 ++++++++ .../objects/MessageEntry.TextLinkMap.html | 326 +++ javadoc/org/loklak/objects/MessageEntry.html | 1571 +++++++++++++ javadoc/org/loklak/objects/ObjectEntry.html | 240 ++ javadoc/org/loklak/objects/Peer.Status.html | 355 +++ javadoc/org/loklak/objects/Peer.html | 281 +++ javadoc/org/loklak/objects/Peers.html | 330 +++ javadoc/org/loklak/objects/ProviderType.html | 378 ++++ .../QueryEntry.ElasticsearchQuery.html | 319 +++ .../objects/QueryEntry.PlaceContext.html | 343 +++ .../org/loklak/objects/QueryEntry.Tokens.html | 387 ++++ javadoc/org/loklak/objects/QueryEntry.html | 907 ++++++++ javadoc/org/loklak/objects/ResultList.html | 407 ++++ javadoc/org/loklak/objects/SourceType.html | 499 +++++ .../org/loklak/objects/Timeline.Order.html | 393 ++++ javadoc/org/loklak/objects/Timeline.html | 759 +++++++ .../org/loklak/objects/Timeline2.Order.html | 393 ++++ javadoc/org/loklak/objects/Timeline2.html | 855 +++++++ javadoc/org/loklak/objects/TimelineCache.html | 289 +++ javadoc/org/loklak/objects/UserEntry.html | 759 +++++++ javadoc/org/loklak/objects/package-frame.html | 50 + .../org/loklak/objects/package-summary.html | 272 +++ javadoc/org/loklak/objects/package-tree.html | 204 ++ javadoc/org/loklak/rss/RSSFeed.html | 475 ++++ .../loklak/rss/RSSFeed.messageIterator.html | 323 +++ javadoc/org/loklak/rss/RSSMessage.Token.html | 556 +++++ javadoc/org/loklak/rss/RSSMessage.html | 949 ++++++++ javadoc/org/loklak/rss/package-frame.html | 25 + javadoc/org/loklak/rss/package-summary.html | 159 ++ javadoc/org/loklak/rss/package-tree.html | 149 ++ javadoc/org/loklak/server/APIException.html | 296 +++ javadoc/org/loklak/server/APIHandler.html | 282 +++ .../org/loklak/server/AbstractAPIHandler.html | 569 +++++ javadoc/org/loklak/server/Accounting.html | 346 +++ javadoc/org/loklak/server/Authentication.html | 548 +++++ javadoc/org/loklak/server/Authorization.html | 765 +++++++ javadoc/org/loklak/server/BaseUserRole.html | 363 +++ javadoc/org/loklak/server/Client.html | 333 +++ .../loklak/server/ClientCredential.Type.html | 404 ++++ .../org/loklak/server/ClientCredential.html | 406 ++++ .../loklak/server/ClientIdentity.Type.html | 356 +++ javadoc/org/loklak/server/ClientIdentity.html | 372 ++++ .../org/loklak/server/ClientService.Type.html | 331 +++ javadoc/org/loklak/server/ClientService.html | 396 ++++ javadoc/org/loklak/server/FileHandler.html | 339 +++ javadoc/org/loklak/server/HttpsMode.html | 428 ++++ javadoc/org/loklak/server/Query.html | 612 +++++ javadoc/org/loklak/server/Settings.html | 526 +++++ javadoc/org/loklak/server/UserRole.html | 433 ++++ javadoc/org/loklak/server/UserRoles.html | 362 +++ javadoc/org/loklak/server/package-frame.html | 48 + .../org/loklak/server/package-summary.html | 260 +++ javadoc/org/loklak/server/package-tree.html | 195 ++ javadoc/org/loklak/stream/MQTTPublisher.html | 286 +++ javadoc/org/loklak/stream/package-frame.html | 20 + .../org/loklak/stream/package-summary.html | 140 ++ javadoc/org/loklak/stream/package-tree.html | 135 ++ javadoc/org/loklak/susi/SusiProcedures.html | 358 +++ javadoc/org/loklak/susi/SusiThought.html | 729 ++++++ javadoc/org/loklak/susi/SusiTransfer.html | 353 +++ javadoc/org/loklak/susi/package-frame.html | 22 + javadoc/org/loklak/susi/package-summary.html | 153 ++ javadoc/org/loklak/susi/package-tree.html | 153 ++ javadoc/org/loklak/tools/ASCII.html | 482 ++++ javadoc/org/loklak/tools/Browser.html | 511 +++++ .../BufferedRandomAccessFile.IndexedLine.html | 305 +++ .../tools/BufferedRandomAccessFile.Test.html | 383 ++++ .../tools/BufferedRandomAccessFile.html | 550 +++++ javadoc/org/loklak/tools/ByteBuffer.html | 776 +++++++ javadoc/org/loklak/tools/CacheMap.html | 383 ++++ javadoc/org/loklak/tools/CacheSet.html | 353 +++ javadoc/org/loklak/tools/CacheStats.html | 360 +++ javadoc/org/loklak/tools/CharacterCoding.html | 299 +++ .../tools/Classification.ContentDomain.html | 403 ++++ javadoc/org/loklak/tools/Classification.html | 488 ++++ javadoc/org/loklak/tools/CommonPattern.html | 478 ++++ javadoc/org/loklak/tools/Compression.html | 326 +++ javadoc/org/loklak/tools/DateParser.html | 628 ++++++ javadoc/org/loklak/tools/Digest.html | 491 ++++ javadoc/org/loklak/tools/IO.html | 386 ++++ javadoc/org/loklak/tools/JsonSignature.html | 472 ++++ javadoc/org/loklak/tools/OS.System.html | 367 +++ javadoc/org/loklak/tools/OS.html | 523 +++++ .../loklak/tools/StringBuilderComparator.html | 458 ++++ javadoc/org/loklak/tools/UTF8.html | 370 +++ .../loklak/tools/bayes/BayesClassifier.html | 325 +++ .../loklak/tools/bayes/Classification.html | 380 ++++ .../org/loklak/tools/bayes/Classifier.html | 781 +++++++ .../org/loklak/tools/bayes/package-frame.html | 22 + .../loklak/tools/bayes/package-summary.html | 154 ++ .../org/loklak/tools/bayes/package-tree.html | 140 ++ javadoc/org/loklak/tools/package-frame.html | 44 + javadoc/org/loklak/tools/package-summary.html | 254 +++ javadoc/org/loklak/tools/package-tree.html | 179 ++ .../tools/storage/JSONObjectWithDefault.html | 417 ++++ .../tools/storage/JsonDataset.Column.html | 290 +++ .../storage/JsonDataset.JsonFactoryIndex.html | 308 +++ .../org/loklak/tools/storage/JsonDataset.html | 389 ++++ .../org/loklak/tools/storage/JsonFactory.html | 228 ++ .../org/loklak/tools/storage/JsonFile.html | 637 ++++++ .../JsonMinifier.JsonCapsuleFactory.html | 248 +++ .../loklak/tools/storage/JsonMinifier.html | 288 +++ .../JsonRandomAccessFile.JsonHandle.html | 331 +++ ...sonRandomAccessFile.ReaderJsonFactory.html | 343 +++ .../tools/storage/JsonRandomAccessFile.html | 456 ++++ .../org/loklak/tools/storage/JsonReader.html | 302 +++ .../tools/storage/JsonRepository.Mode.html | 343 +++ .../loklak/tools/storage/JsonRepository.html | 617 +++++ .../JsonStreamReader.WrapperJsonFactory.html | 285 +++ .../tools/storage/JsonStreamReader.html | 370 +++ .../org/loklak/tools/storage/JsonTray.html | 388 ++++ .../loklak/tools/storage/package-frame.html | 40 + .../loklak/tools/storage/package-summary.html | 226 ++ .../loklak/tools/storage/package-tree.html | 189 ++ 291 files changed, 102890 insertions(+), 2 deletions(-) delete mode 100644 javadoc/org/loklak/1.sdcd delete mode 100644 javadoc/org/loklak/api/aggregation/1 create mode 100644 javadoc/org/loklak/api/amazon/AmazonProductService.html create mode 100644 javadoc/org/loklak/api/amazon/SignedRequestsHelper.html create mode 100644 javadoc/org/loklak/api/amazon/package-frame.html create mode 100644 javadoc/org/loklak/api/amazon/package-summary.html create mode 100644 javadoc/org/loklak/api/amazon/package-tree.html create mode 100644 javadoc/org/loklak/api/cms/AccountService.html create mode 100644 javadoc/org/loklak/api/cms/AppsService.html create mode 100644 javadoc/org/loklak/api/cms/AssetServlet.html create mode 100644 javadoc/org/loklak/api/cms/AuthorizationDemoService.html create mode 100644 javadoc/org/loklak/api/cms/DumpDownloadServlet.html create mode 100644 javadoc/org/loklak/api/cms/InstallationPageService.html create mode 100644 javadoc/org/loklak/api/cms/LoginService.html create mode 100644 javadoc/org/loklak/api/cms/PasswordRecoveryService.html create mode 100644 javadoc/org/loklak/api/cms/PasswordResetService.html create mode 100644 javadoc/org/loklak/api/cms/ProxyServlet.html create mode 100644 javadoc/org/loklak/api/cms/PublicKeyRegistrationService.html create mode 100644 javadoc/org/loklak/api/cms/SettingsManagementService.html create mode 100644 javadoc/org/loklak/api/cms/SignUpService.html create mode 100644 javadoc/org/loklak/api/cms/Sitemap.html create mode 100644 javadoc/org/loklak/api/cms/TopMenuService.html create mode 100644 javadoc/org/loklak/api/cms/TwitterAnalysisService.html create mode 100644 javadoc/org/loklak/api/cms/UserAccountPermissions.html create mode 100644 javadoc/org/loklak/api/cms/UserManagementService.html create mode 100644 javadoc/org/loklak/api/cms/package-frame.html create mode 100644 javadoc/org/loklak/api/cms/package-summary.html create mode 100644 javadoc/org/loklak/api/cms/package-tree.html create mode 100644 javadoc/org/loklak/api/geo/GeocodeServlet.html create mode 100644 javadoc/org/loklak/api/geo/package-frame.html create mode 100644 javadoc/org/loklak/api/geo/package-summary.html create mode 100644 javadoc/org/loklak/api/geo/package-tree.html create mode 100644 javadoc/org/loklak/api/iot/AbstractPushServlet.html create mode 100644 javadoc/org/loklak/api/iot/EarthquakeServlet.html create mode 100644 javadoc/org/loklak/api/iot/FossasiaPushServlet.html create mode 100644 javadoc/org/loklak/api/iot/FreifunkNodeFetchServlet.html create mode 100644 javadoc/org/loklak/api/iot/FreifunkNodePushServlet.html create mode 100644 javadoc/org/loklak/api/iot/GeoJsonPushServlet.html create mode 100644 javadoc/org/loklak/api/iot/ImportProfileServlet.html create mode 100644 javadoc/org/loklak/api/iot/NMEAServlet.GPSPosition.html create mode 100644 javadoc/org/loklak/api/iot/NMEAServlet.html create mode 100644 javadoc/org/loklak/api/iot/NOAAAlertServlet.html create mode 100644 javadoc/org/loklak/api/iot/NetmonPushServlet.html create mode 100644 javadoc/org/loklak/api/iot/NodelistPushServlet.html create mode 100644 javadoc/org/loklak/api/iot/OpenWifiMapPushServlet.html create mode 100644 javadoc/org/loklak/api/iot/PushReport.html create mode 100644 javadoc/org/loklak/api/iot/PushServletHelper.html create mode 100644 javadoc/org/loklak/api/iot/StuffInSpaceServlet.html create mode 100644 javadoc/org/loklak/api/iot/ValidateServlet.html create mode 100644 javadoc/org/loklak/api/iot/YahiHazeServlet.html create mode 100644 javadoc/org/loklak/api/iot/package-frame.html create mode 100644 javadoc/org/loklak/api/iot/package-summary.html create mode 100644 javadoc/org/loklak/api/iot/package-tree.html create mode 100644 javadoc/org/loklak/api/p2p/HelloService.html create mode 100644 javadoc/org/loklak/api/p2p/PeersServlet.html create mode 100644 javadoc/org/loklak/api/p2p/PushServlet.html create mode 100644 javadoc/org/loklak/api/p2p/package-frame.html create mode 100644 javadoc/org/loklak/api/p2p/package-summary.html create mode 100644 javadoc/org/loklak/api/p2p/package-tree.html create mode 100644 javadoc/org/loklak/api/package-frame.html create mode 100644 javadoc/org/loklak/api/package-summary.html create mode 100644 javadoc/org/loklak/api/package-tree.html create mode 100644 javadoc/org/loklak/api/tools/CSVServlet.html create mode 100644 javadoc/org/loklak/api/tools/XMLServlet.html create mode 100644 javadoc/org/loklak/api/tools/package-frame.html create mode 100644 javadoc/org/loklak/api/tools/package-summary.html create mode 100644 javadoc/org/loklak/api/tools/package-tree.html create mode 100644 javadoc/org/loklak/api/vis/MapServlet.html create mode 100644 javadoc/org/loklak/api/vis/MarkdownServlet.html create mode 100644 javadoc/org/loklak/api/vis/PieChartServlet.html create mode 100644 javadoc/org/loklak/api/vis/package-frame.html create mode 100644 javadoc/org/loklak/api/vis/package-summary.html create mode 100644 javadoc/org/loklak/api/vis/package-tree.html create mode 100644 javadoc/org/loklak/data/AbstractIndexFactory.html create mode 100644 javadoc/org/loklak/data/AccountFactory.html create mode 100644 javadoc/org/loklak/data/Campaign.html create mode 100644 javadoc/org/loklak/data/Campaigns.State.html create mode 100644 javadoc/org/loklak/data/Campaigns.html create mode 100644 javadoc/org/loklak/data/Classifier.Category.html create mode 100644 javadoc/org/loklak/data/Classifier.Context.html create mode 100644 javadoc/org/loklak/data/Classifier.html create mode 100644 javadoc/org/loklak/data/DAO.IndexName.html create mode 100644 javadoc/org/loklak/data/DAO.MessageWrapper.html create mode 100644 javadoc/org/loklak/data/DAO.SearchLocalMessages.html create mode 100644 javadoc/org/loklak/data/DAO.html create mode 100644 javadoc/org/loklak/data/DAO.parallelScrape.html create mode 100644 javadoc/org/loklak/data/DAOWrapper.GenericJSONBuilder.html create mode 100644 javadoc/org/loklak/data/DAOWrapper.html create mode 100644 javadoc/org/loklak/data/ElasticsearchClient.BulkEntry.html create mode 100644 javadoc/org/loklak/data/ElasticsearchClient.BulkWriteResult.html create mode 100644 javadoc/org/loklak/data/ElasticsearchClient.Query.html create mode 100644 javadoc/org/loklak/data/ElasticsearchClient.html create mode 100644 javadoc/org/loklak/data/ImportProfileFactory.html create mode 100644 javadoc/org/loklak/data/IncomingMessageBuffer.html create mode 100644 javadoc/org/loklak/data/IndexEntry.html create mode 100644 javadoc/org/loklak/data/IndexFactory.html create mode 100644 javadoc/org/loklak/data/Insertable.html create mode 100644 javadoc/org/loklak/data/MessageFactory.html create mode 100644 javadoc/org/loklak/data/OutgoingMessageBuffer.html create mode 100644 javadoc/org/loklak/data/QueryFactory.html create mode 100644 javadoc/org/loklak/data/UserFactory.html create mode 100644 javadoc/org/loklak/data/package-frame.html create mode 100644 javadoc/org/loklak/data/package-summary.html create mode 100644 javadoc/org/loklak/data/package-tree.html create mode 100644 javadoc/org/loklak/geo/AbstractGeoPoint.html create mode 100644 javadoc/org/loklak/geo/GeoJsonReader.Feature.html create mode 100644 javadoc/org/loklak/geo/GeoJsonReader.html create mode 100644 javadoc/org/loklak/geo/GeoLocation.html create mode 100644 javadoc/org/loklak/geo/GeoMark.html create mode 100644 javadoc/org/loklak/geo/GeoNames.CountryBounds.html create mode 100644 javadoc/org/loklak/geo/GeoNames.html create mode 100644 javadoc/org/loklak/geo/GeoPoint.html create mode 100644 javadoc/org/loklak/geo/IntegerGeoPoint.html create mode 100644 javadoc/org/loklak/geo/LocationSource.html create mode 100644 javadoc/org/loklak/geo/OSMTile.TileCoordinates.html create mode 100644 javadoc/org/loklak/geo/OSMTile.html create mode 100644 javadoc/org/loklak/geo/package-frame.html create mode 100644 javadoc/org/loklak/geo/package-summary.html create mode 100644 javadoc/org/loklak/geo/package-tree.html create mode 100644 javadoc/org/loklak/graphics/AnimationGIF.html create mode 100644 javadoc/org/loklak/graphics/AnimationPlotter.Frame.html create mode 100644 javadoc/org/loklak/graphics/AnimationPlotter.html create mode 100644 javadoc/org/loklak/graphics/ChartPlotter.html create mode 100644 javadoc/org/loklak/graphics/CircleTool.html create mode 100644 javadoc/org/loklak/graphics/GraphPlotter.Point.html create mode 100644 javadoc/org/loklak/graphics/GraphPlotter.Ribbon.html create mode 100644 javadoc/org/loklak/graphics/GraphPlotter.html create mode 100644 javadoc/org/loklak/graphics/HexGridPlotter.html create mode 100644 javadoc/org/loklak/graphics/PrintTool.html create mode 100644 javadoc/org/loklak/graphics/RasterPlotter.DrawMode.html create mode 100644 javadoc/org/loklak/graphics/RasterPlotter.FilterMode.html create mode 100644 javadoc/org/loklak/graphics/RasterPlotter.html create mode 100644 javadoc/org/loklak/graphics/package-frame.html create mode 100644 javadoc/org/loklak/graphics/package-summary.html create mode 100644 javadoc/org/loklak/graphics/package-tree.html create mode 100644 javadoc/org/loklak/harvester/BaseScraper.html create mode 100644 javadoc/org/loklak/harvester/HarvestingFrequency.html create mode 100644 javadoc/org/loklak/harvester/JsonFieldConverter.JsonConversionSchemaEnum.html create mode 100644 javadoc/org/loklak/harvester/JsonFieldConverter.html create mode 100644 javadoc/org/loklak/harvester/JsonValidator.JsonSchemaEnum.html create mode 100644 javadoc/org/loklak/harvester/JsonValidator.html create mode 100644 javadoc/org/loklak/harvester/Post.html create mode 100644 javadoc/org/loklak/harvester/PushThread.html create mode 100644 javadoc/org/loklak/harvester/RedirectUnshortener.html create mode 100644 javadoc/org/loklak/harvester/TwitterAPI.html create mode 100644 javadoc/org/loklak/harvester/TwitterScraper.TwitterTweet.html create mode 100644 javadoc/org/loklak/harvester/TwitterScraper.html create mode 100644 javadoc/org/loklak/harvester/WeiboInfoScraper.html create mode 100644 javadoc/org/loklak/harvester/YoutubeScraper.html create mode 100644 javadoc/org/loklak/harvester/package-frame.html create mode 100644 javadoc/org/loklak/harvester/package-summary.html create mode 100644 javadoc/org/loklak/harvester/package-tree.html create mode 100644 javadoc/org/loklak/harvester/strategy/ClassicHarvester.html create mode 100644 javadoc/org/loklak/harvester/strategy/Harvester.html create mode 100644 javadoc/org/loklak/harvester/strategy/KaizenHarvester.html create mode 100644 javadoc/org/loklak/harvester/strategy/KaizenQueries.html create mode 100644 javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.PriorityKaizenQueries.html create mode 100644 javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.html create mode 100644 javadoc/org/loklak/harvester/strategy/package-frame.html create mode 100644 javadoc/org/loklak/harvester/strategy/package-summary.html create mode 100644 javadoc/org/loklak/harvester/strategy/package-tree.html create mode 100644 javadoc/org/loklak/http/AccessTracker.Track.html create mode 100644 javadoc/org/loklak/http/AccessTracker.html create mode 100644 javadoc/org/loklak/http/ClientConnection.html create mode 100644 javadoc/org/loklak/http/CookieRequest.html create mode 100644 javadoc/org/loklak/http/CookieRequestManager.html create mode 100644 javadoc/org/loklak/http/RemoteAccess.FileType.html create mode 100644 javadoc/org/loklak/http/RemoteAccess.FileTypeEncoding.html create mode 100644 javadoc/org/loklak/http/RemoteAccess.html create mode 100644 javadoc/org/loklak/http/package-frame.html create mode 100644 javadoc/org/loklak/http/package-summary.html create mode 100644 javadoc/org/loklak/http/package-tree.html create mode 100644 javadoc/org/loklak/objects/AbstractObjectEntry.html create mode 100644 javadoc/org/loklak/objects/AccountEntry.Field.html create mode 100644 javadoc/org/loklak/objects/AccountEntry.html create mode 100644 javadoc/org/loklak/objects/ImportProfileEntry.EntryStatus.html create mode 100644 javadoc/org/loklak/objects/ImportProfileEntry.PrivacyStatus.html create mode 100644 javadoc/org/loklak/objects/ImportProfileEntry.html create mode 100644 javadoc/org/loklak/objects/MessageEntry.TextLinkMap.html create mode 100644 javadoc/org/loklak/objects/MessageEntry.html create mode 100644 javadoc/org/loklak/objects/ObjectEntry.html create mode 100644 javadoc/org/loklak/objects/Peer.Status.html create mode 100644 javadoc/org/loklak/objects/Peer.html create mode 100644 javadoc/org/loklak/objects/Peers.html create mode 100644 javadoc/org/loklak/objects/ProviderType.html create mode 100644 javadoc/org/loklak/objects/QueryEntry.ElasticsearchQuery.html create mode 100644 javadoc/org/loklak/objects/QueryEntry.PlaceContext.html create mode 100644 javadoc/org/loklak/objects/QueryEntry.Tokens.html create mode 100644 javadoc/org/loklak/objects/QueryEntry.html create mode 100644 javadoc/org/loklak/objects/ResultList.html create mode 100644 javadoc/org/loklak/objects/SourceType.html create mode 100644 javadoc/org/loklak/objects/Timeline.Order.html create mode 100644 javadoc/org/loklak/objects/Timeline.html create mode 100644 javadoc/org/loklak/objects/Timeline2.Order.html create mode 100644 javadoc/org/loklak/objects/Timeline2.html create mode 100644 javadoc/org/loklak/objects/TimelineCache.html create mode 100644 javadoc/org/loklak/objects/UserEntry.html create mode 100644 javadoc/org/loklak/objects/package-frame.html create mode 100644 javadoc/org/loklak/objects/package-summary.html create mode 100644 javadoc/org/loklak/objects/package-tree.html create mode 100644 javadoc/org/loklak/rss/RSSFeed.html create mode 100644 javadoc/org/loklak/rss/RSSFeed.messageIterator.html create mode 100644 javadoc/org/loklak/rss/RSSMessage.Token.html create mode 100644 javadoc/org/loklak/rss/RSSMessage.html create mode 100644 javadoc/org/loklak/rss/package-frame.html create mode 100644 javadoc/org/loklak/rss/package-summary.html create mode 100644 javadoc/org/loklak/rss/package-tree.html create mode 100644 javadoc/org/loklak/server/APIException.html create mode 100644 javadoc/org/loklak/server/APIHandler.html create mode 100644 javadoc/org/loklak/server/AbstractAPIHandler.html create mode 100644 javadoc/org/loklak/server/Accounting.html create mode 100644 javadoc/org/loklak/server/Authentication.html create mode 100644 javadoc/org/loklak/server/Authorization.html create mode 100644 javadoc/org/loklak/server/BaseUserRole.html create mode 100644 javadoc/org/loklak/server/Client.html create mode 100644 javadoc/org/loklak/server/ClientCredential.Type.html create mode 100644 javadoc/org/loklak/server/ClientCredential.html create mode 100644 javadoc/org/loklak/server/ClientIdentity.Type.html create mode 100644 javadoc/org/loklak/server/ClientIdentity.html create mode 100644 javadoc/org/loklak/server/ClientService.Type.html create mode 100644 javadoc/org/loklak/server/ClientService.html create mode 100644 javadoc/org/loklak/server/FileHandler.html create mode 100644 javadoc/org/loklak/server/HttpsMode.html create mode 100644 javadoc/org/loklak/server/Query.html create mode 100644 javadoc/org/loklak/server/Settings.html create mode 100644 javadoc/org/loklak/server/UserRole.html create mode 100644 javadoc/org/loklak/server/UserRoles.html create mode 100644 javadoc/org/loklak/server/package-frame.html create mode 100644 javadoc/org/loklak/server/package-summary.html create mode 100644 javadoc/org/loklak/server/package-tree.html create mode 100644 javadoc/org/loklak/stream/MQTTPublisher.html create mode 100644 javadoc/org/loklak/stream/package-frame.html create mode 100644 javadoc/org/loklak/stream/package-summary.html create mode 100644 javadoc/org/loklak/stream/package-tree.html create mode 100644 javadoc/org/loklak/susi/SusiProcedures.html create mode 100644 javadoc/org/loklak/susi/SusiThought.html create mode 100644 javadoc/org/loklak/susi/SusiTransfer.html create mode 100644 javadoc/org/loklak/susi/package-frame.html create mode 100644 javadoc/org/loklak/susi/package-summary.html create mode 100644 javadoc/org/loklak/susi/package-tree.html create mode 100644 javadoc/org/loklak/tools/ASCII.html create mode 100644 javadoc/org/loklak/tools/Browser.html create mode 100644 javadoc/org/loklak/tools/BufferedRandomAccessFile.IndexedLine.html create mode 100644 javadoc/org/loklak/tools/BufferedRandomAccessFile.Test.html create mode 100644 javadoc/org/loklak/tools/BufferedRandomAccessFile.html create mode 100644 javadoc/org/loklak/tools/ByteBuffer.html create mode 100644 javadoc/org/loklak/tools/CacheMap.html create mode 100644 javadoc/org/loklak/tools/CacheSet.html create mode 100644 javadoc/org/loklak/tools/CacheStats.html create mode 100644 javadoc/org/loklak/tools/CharacterCoding.html create mode 100644 javadoc/org/loklak/tools/Classification.ContentDomain.html create mode 100644 javadoc/org/loklak/tools/Classification.html create mode 100644 javadoc/org/loklak/tools/CommonPattern.html create mode 100644 javadoc/org/loklak/tools/Compression.html create mode 100644 javadoc/org/loklak/tools/DateParser.html create mode 100644 javadoc/org/loklak/tools/Digest.html create mode 100644 javadoc/org/loklak/tools/IO.html create mode 100644 javadoc/org/loklak/tools/JsonSignature.html create mode 100644 javadoc/org/loklak/tools/OS.System.html create mode 100644 javadoc/org/loklak/tools/OS.html create mode 100644 javadoc/org/loklak/tools/StringBuilderComparator.html create mode 100644 javadoc/org/loklak/tools/UTF8.html create mode 100644 javadoc/org/loklak/tools/bayes/BayesClassifier.html create mode 100644 javadoc/org/loklak/tools/bayes/Classification.html create mode 100644 javadoc/org/loklak/tools/bayes/Classifier.html create mode 100644 javadoc/org/loklak/tools/bayes/package-frame.html create mode 100644 javadoc/org/loklak/tools/bayes/package-summary.html create mode 100644 javadoc/org/loklak/tools/bayes/package-tree.html create mode 100644 javadoc/org/loklak/tools/package-frame.html create mode 100644 javadoc/org/loklak/tools/package-summary.html create mode 100644 javadoc/org/loklak/tools/package-tree.html create mode 100644 javadoc/org/loklak/tools/storage/JSONObjectWithDefault.html create mode 100644 javadoc/org/loklak/tools/storage/JsonDataset.Column.html create mode 100644 javadoc/org/loklak/tools/storage/JsonDataset.JsonFactoryIndex.html create mode 100644 javadoc/org/loklak/tools/storage/JsonDataset.html create mode 100644 javadoc/org/loklak/tools/storage/JsonFactory.html create mode 100644 javadoc/org/loklak/tools/storage/JsonFile.html create mode 100644 javadoc/org/loklak/tools/storage/JsonMinifier.JsonCapsuleFactory.html create mode 100644 javadoc/org/loklak/tools/storage/JsonMinifier.html create mode 100644 javadoc/org/loklak/tools/storage/JsonRandomAccessFile.JsonHandle.html create mode 100644 javadoc/org/loklak/tools/storage/JsonRandomAccessFile.ReaderJsonFactory.html create mode 100644 javadoc/org/loklak/tools/storage/JsonRandomAccessFile.html create mode 100644 javadoc/org/loklak/tools/storage/JsonReader.html create mode 100644 javadoc/org/loklak/tools/storage/JsonRepository.Mode.html create mode 100644 javadoc/org/loklak/tools/storage/JsonRepository.html create mode 100644 javadoc/org/loklak/tools/storage/JsonStreamReader.WrapperJsonFactory.html create mode 100644 javadoc/org/loklak/tools/storage/JsonStreamReader.html create mode 100644 javadoc/org/loklak/tools/storage/JsonTray.html create mode 100644 javadoc/org/loklak/tools/storage/package-frame.html create mode 100644 javadoc/org/loklak/tools/storage/package-summary.html create mode 100644 javadoc/org/loklak/tools/storage/package-tree.html diff --git a/javadoc/org/loklak/1.sdcd b/javadoc/org/loklak/1.sdcd deleted file mode 100644 index 8b13789..0000000 --- a/javadoc/org/loklak/1.sdcd +++ /dev/null @@ -1 +0,0 @@ - diff --git a/javadoc/org/loklak/api/aggregation/1 b/javadoc/org/loklak/api/aggregation/1 deleted file mode 100644 index 8b13789..0000000 --- a/javadoc/org/loklak/api/aggregation/1 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/javadoc/org/loklak/api/amazon/AmazonProductService.html b/javadoc/org/loklak/api/amazon/AmazonProductService.html new file mode 100644 index 0000000..7f4fbe3 --- /dev/null +++ b/javadoc/org/loklak/api/amazon/AmazonProductService.html @@ -0,0 +1,426 @@ + + + + + +AmazonProductService + + + + + + + + + + + + +
+
org.loklak.api.amazon
+

Class AmazonProductService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/amazon/SignedRequestsHelper.html b/javadoc/org/loklak/api/amazon/SignedRequestsHelper.html new file mode 100644 index 0000000..cd5d1ec --- /dev/null +++ b/javadoc/org/loklak/api/amazon/SignedRequestsHelper.html @@ -0,0 +1,299 @@ + + + + + +SignedRequestsHelper + + + + + + + + + + + + +
+
org.loklak.api.amazon
+

Class SignedRequestsHelper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.api.amazon.SignedRequestsHelper
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class SignedRequestsHelper
    +extends java.lang.Object
    +
    This class contains all the logic for signing requests to the Amazon Product + Advertising API.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static SignedRequestsHelpergetInstance(java.lang.String endpoint, + java.lang.String awsAccessKeyId, + java.lang.String awsSecretKey, + java.lang.String associatetag) +
      You must provide the three values below to initialize the helper.
      +
      java.lang.Stringsign(java.util.Map<java.lang.String,java.lang.String> params) +
      This method signs requests in hashmap form.
      +
      java.lang.Stringsign(java.lang.String queryString) +
      This method signs requests in query-string form.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getInstance

        +
        public static SignedRequestsHelper getInstance(java.lang.String endpoint,
        +                                               java.lang.String awsAccessKeyId,
        +                                               java.lang.String awsSecretKey,
        +                                               java.lang.String associatetag)
        +                                        throws java.lang.IllegalArgumentException,
        +                                               java.io.UnsupportedEncodingException,
        +                                               java.security.NoSuchAlgorithmException,
        +                                               java.security.InvalidKeyException
        +
        You must provide the three values below to initialize the helper.
        +
        +
        Parameters:
        +
        endpoint - Destination for the requests.
        +
        awsAccessKeyId - Your AWS Access Key ID
        +
        awsSecretKey - Your AWS Secret Key
        +
        Throws:
        +
        java.lang.IllegalArgumentException
        +
        java.io.UnsupportedEncodingException
        +
        java.security.NoSuchAlgorithmException
        +
        java.security.InvalidKeyException
        +
        +
      • +
      + + + +
        +
      • +

        sign

        +
        public java.lang.String sign(java.util.Map<java.lang.String,java.lang.String> params)
        +
        This method signs requests in hashmap form. It returns a URL that should + be used to fetch the response. The URL returned should not be modified in + any way, doing so will invalidate the signature and Amazon will reject + the request.
        +
      • +
      + + + +
        +
      • +

        sign

        +
        public java.lang.String sign(java.lang.String queryString)
        +
        This method signs requests in query-string form. It returns a URL that + should be used to fetch the response. The URL returned should not be + modified in any way, doing so will invalidate the signature and Amazon + will reject the request.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/amazon/package-frame.html b/javadoc/org/loklak/api/amazon/package-frame.html new file mode 100644 index 0000000..6ac83c1 --- /dev/null +++ b/javadoc/org/loklak/api/amazon/package-frame.html @@ -0,0 +1,21 @@ + + + + + +org.loklak.api.amazon + + + + + +

org.loklak.api.amazon

+ + + diff --git a/javadoc/org/loklak/api/amazon/package-summary.html b/javadoc/org/loklak/api/amazon/package-summary.html new file mode 100644 index 0000000..709d963 --- /dev/null +++ b/javadoc/org/loklak/api/amazon/package-summary.html @@ -0,0 +1,147 @@ + + + + + +org.loklak.api.amazon + + + + + + + + + + + +
+

Package org.loklak.api.amazon

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    AmazonProductService 
    SignedRequestsHelper +
    This class contains all the logic for signing requests to the Amazon Product + Advertising API.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/api/amazon/package-tree.html b/javadoc/org/loklak/api/amazon/package-tree.html new file mode 100644 index 0000000..c4333fe --- /dev/null +++ b/javadoc/org/loklak/api/amazon/package-tree.html @@ -0,0 +1,144 @@ + + + + + +org.loklak.api.amazon Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.amazon

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/cms/AccountService.html b/javadoc/org/loklak/api/cms/AccountService.html new file mode 100644 index 0000000..76b1b30 --- /dev/null +++ b/javadoc/org/loklak/api/cms/AccountService.html @@ -0,0 +1,381 @@ + + + + + +AccountService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class AccountService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/AppsService.html b/javadoc/org/loklak/api/cms/AppsService.html new file mode 100644 index 0000000..606c489 --- /dev/null +++ b/javadoc/org/loklak/api/cms/AppsService.html @@ -0,0 +1,381 @@ + + + + + +AppsService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class AppsService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/AssetServlet.html b/javadoc/org/loklak/api/cms/AssetServlet.html new file mode 100644 index 0000000..ab50814 --- /dev/null +++ b/javadoc/org/loklak/api/cms/AssetServlet.html @@ -0,0 +1,305 @@ + + + + + +AssetServlet + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class AssetServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.cms.AssetServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class AssetServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AssetServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AssetServlet

        +
        public AssetServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/AuthorizationDemoService.html b/javadoc/org/loklak/api/cms/AuthorizationDemoService.html new file mode 100644 index 0000000..326b6e5 --- /dev/null +++ b/javadoc/org/loklak/api/cms/AuthorizationDemoService.html @@ -0,0 +1,381 @@ + + + + + +AuthorizationDemoService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class AuthorizationDemoService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/DumpDownloadServlet.html b/javadoc/org/loklak/api/cms/DumpDownloadServlet.html new file mode 100644 index 0000000..6d07156 --- /dev/null +++ b/javadoc/org/loklak/api/cms/DumpDownloadServlet.html @@ -0,0 +1,305 @@ + + + + + +DumpDownloadServlet + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class DumpDownloadServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.cms.DumpDownloadServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class DumpDownloadServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DumpDownloadServlet

        +
        public DumpDownloadServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/InstallationPageService.html b/javadoc/org/loklak/api/cms/InstallationPageService.html new file mode 100644 index 0000000..05ab799 --- /dev/null +++ b/javadoc/org/loklak/api/cms/InstallationPageService.html @@ -0,0 +1,381 @@ + + + + + +InstallationPageService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class InstallationPageService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/LoginService.html b/javadoc/org/loklak/api/cms/LoginService.html new file mode 100644 index 0000000..4f48d67 --- /dev/null +++ b/javadoc/org/loklak/api/cms/LoginService.html @@ -0,0 +1,390 @@ + + + + + +LoginService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class LoginService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    APIHandler
    +
    +
    +
    +
    public class LoginService
    +extends AbstractAPIHandler
    +implements APIHandler
    +
    This service allows users to login, logout or to check their login status. + + The following parameter combinations are valid: + - checkLogin=true # check the login status + - logout=true # end the current session + - login,password,type(session | cookie | access_token) # login with password. session starts a browser session, cookie sets a long living cookie, access_token creates an access_token and returns it with the server reply + - login,keyhash # first part of login via public/private key handshake. The keyhash is displayed on key registration + - sessionID,response # second part. sessionID is part of the server reply of the first part. response is a signature of the challenge, also part of the server reply. + At the moment, only SHA256withRSA is supported as signature algorithm
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/PasswordRecoveryService.html b/javadoc/org/loklak/api/cms/PasswordRecoveryService.html new file mode 100644 index 0000000..46e7865 --- /dev/null +++ b/javadoc/org/loklak/api/cms/PasswordRecoveryService.html @@ -0,0 +1,381 @@ + + + + + +PasswordRecoveryService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class PasswordRecoveryService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/PasswordResetService.html b/javadoc/org/loklak/api/cms/PasswordResetService.html new file mode 100644 index 0000000..ab33efd --- /dev/null +++ b/javadoc/org/loklak/api/cms/PasswordResetService.html @@ -0,0 +1,381 @@ + + + + + +PasswordResetService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class PasswordResetService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/ProxyServlet.html b/javadoc/org/loklak/api/cms/ProxyServlet.html new file mode 100644 index 0000000..94f986b --- /dev/null +++ b/javadoc/org/loklak/api/cms/ProxyServlet.html @@ -0,0 +1,329 @@ + + + + + +ProxyServlet + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class ProxyServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.cms.ProxyServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ProxyServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ProxyServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      protected voidprocess(HttpServletRequest request, + HttpServletResponse response, + Query post) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProxyServlet

        +
        public ProxyServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        process

        +
        protected void process(HttpServletRequest request,
        +                       HttpServletResponse response,
        +                       Query post)
        +                throws ServletException,
        +                       java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/PublicKeyRegistrationService.html b/javadoc/org/loklak/api/cms/PublicKeyRegistrationService.html new file mode 100644 index 0000000..440fd3e --- /dev/null +++ b/javadoc/org/loklak/api/cms/PublicKeyRegistrationService.html @@ -0,0 +1,402 @@ + + + + + +PublicKeyRegistrationService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class PublicKeyRegistrationService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    APIHandler
    +
    +
    +
    +
    public class PublicKeyRegistrationService
    +extends AbstractAPIHandler
    +implements APIHandler
    +
    This service allows users to register a public key for login. + It can either take a public key or create a new key-pair. + Users can also be granted the right to register keys for individual other users or whole user roles. + + To export your own PublikKey from java for registering, call: + - String encodedPublicKey = Base64.getEncoder().encodeToString(publicKey.getEncoded()); + + To use the private key as generated in DER format in java, call: + - PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(encodedPrivateKey)); + - PrivateKey privateKey = KeyFactory.getInstance("RSA").generatePrivate(keySpec); + + To sign a challenge as given by the login, call: + - Signature sig = Signature.getInstance("SHA256withRSA"); + - sig.initSign(privateKey); + - sig.update(challengeString.getBytes()); + - String result = new String(Base64.getEncoder().encode(sig.sign())); + + To create a signature with openssl (using a key in pem format), the following command should work: + - openssl dgst -sha256 -sign privkey.pem -out response.txt challenge.txt + - encode the content of response.in BASE64 + - if necessary, encode it URL-friendly
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/SettingsManagementService.html b/javadoc/org/loklak/api/cms/SettingsManagementService.html new file mode 100644 index 0000000..667842d --- /dev/null +++ b/javadoc/org/loklak/api/cms/SettingsManagementService.html @@ -0,0 +1,381 @@ + + + + + +SettingsManagementService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class SettingsManagementService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/SignUpService.html b/javadoc/org/loklak/api/cms/SignUpService.html new file mode 100644 index 0000000..a2524dd --- /dev/null +++ b/javadoc/org/loklak/api/cms/SignUpService.html @@ -0,0 +1,409 @@ + + + + + +SignUpService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class SignUpService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/Sitemap.html b/javadoc/org/loklak/api/cms/Sitemap.html new file mode 100644 index 0000000..48f703e --- /dev/null +++ b/javadoc/org/loklak/api/cms/Sitemap.html @@ -0,0 +1,305 @@ + + + + + +Sitemap + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class Sitemap

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.cms.Sitemap
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Sitemap
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Sitemap() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Sitemap

        +
        public Sitemap()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/TopMenuService.html b/javadoc/org/loklak/api/cms/TopMenuService.html new file mode 100644 index 0000000..a06c040 --- /dev/null +++ b/javadoc/org/loklak/api/cms/TopMenuService.html @@ -0,0 +1,378 @@ + + + + + +TopMenuService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class TopMenuService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/TwitterAnalysisService.html b/javadoc/org/loklak/api/cms/TwitterAnalysisService.html new file mode 100644 index 0000000..c5ce7ad --- /dev/null +++ b/javadoc/org/loklak/api/cms/TwitterAnalysisService.html @@ -0,0 +1,396 @@ + + + + + +TwitterAnalysisService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class TwitterAnalysisService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/UserAccountPermissions.html b/javadoc/org/loklak/api/cms/UserAccountPermissions.html new file mode 100644 index 0000000..78b8c37 --- /dev/null +++ b/javadoc/org/loklak/api/cms/UserAccountPermissions.html @@ -0,0 +1,381 @@ + + + + + +UserAccountPermissions + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class UserAccountPermissions

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/UserManagementService.html b/javadoc/org/loklak/api/cms/UserManagementService.html new file mode 100644 index 0000000..e300b26 --- /dev/null +++ b/javadoc/org/loklak/api/cms/UserManagementService.html @@ -0,0 +1,381 @@ + + + + + +UserManagementService + + + + + + + + + + + + +
+
org.loklak.api.cms
+

Class UserManagementService

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/cms/package-frame.html b/javadoc/org/loklak/api/cms/package-frame.html new file mode 100644 index 0000000..fa80290 --- /dev/null +++ b/javadoc/org/loklak/api/cms/package-frame.html @@ -0,0 +1,37 @@ + + + + + +org.loklak.api.cms + + + + + +

org.loklak.api.cms

+ + + diff --git a/javadoc/org/loklak/api/cms/package-summary.html b/javadoc/org/loklak/api/cms/package-summary.html new file mode 100644 index 0000000..c153ca2 --- /dev/null +++ b/javadoc/org/loklak/api/cms/package-summary.html @@ -0,0 +1,212 @@ + + + + + +org.loklak.api.cms + + + + + + + + + + + +
+

Package org.loklak.api.cms

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/cms/package-tree.html b/javadoc/org/loklak/api/cms/package-tree.html new file mode 100644 index 0000000..aa4ac69 --- /dev/null +++ b/javadoc/org/loklak/api/cms/package-tree.html @@ -0,0 +1,176 @@ + + + + + +org.loklak.api.cms Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.cms

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/geo/GeocodeServlet.html b/javadoc/org/loklak/api/geo/GeocodeServlet.html new file mode 100644 index 0000000..b01a294 --- /dev/null +++ b/javadoc/org/loklak/api/geo/GeocodeServlet.html @@ -0,0 +1,310 @@ + + + + + +GeocodeServlet + + + + + + + + + + + + +
+
org.loklak.api.geo
+

Class GeocodeServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.geo.GeocodeServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class GeocodeServlet
    +extends HttpServlet
    +
    geocoding of places into locations + test: + http://localhost:9000/api/geocode.json?data={%22places%22:[%22Frankfurt%20am%20Main%22,%22New%20York%22,%22Singapore%22]} + for reverse geocoding, try + http://localhost:9000/api/geocode.json?data={%22places%22:[%22iPhone:%2037.313690,-122.022911%22,%22%C3%9CT:%2019.109458,72.825842%22]}
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GeocodeServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeocodeServlet

        +
        public GeocodeServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/geo/package-frame.html b/javadoc/org/loklak/api/geo/package-frame.html new file mode 100644 index 0000000..b7d6a83 --- /dev/null +++ b/javadoc/org/loklak/api/geo/package-frame.html @@ -0,0 +1,20 @@ + + + + + +org.loklak.api.geo + + + + + +

org.loklak.api.geo

+
+

Classes

+ +
+ + diff --git a/javadoc/org/loklak/api/geo/package-summary.html b/javadoc/org/loklak/api/geo/package-summary.html new file mode 100644 index 0000000..8e20280 --- /dev/null +++ b/javadoc/org/loklak/api/geo/package-summary.html @@ -0,0 +1,146 @@ + + + + + +org.loklak.api.geo + + + + + + + + + + + +
+

Package org.loklak.api.geo

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    GeocodeServlet +
    geocoding of places into locations + test: + http://localhost:9000/api/geocode.json?data={%22places%22:[%22Frankfurt%20am%20Main%22,%22New%20York%22,%22Singapore%22]} + for reverse geocoding, try + http://localhost:9000/api/geocode.json?data={%22places%22:[%22iPhone:%2037.313690,-122.022911%22,%22%C3%9CT:%2019.109458,72.825842%22]}
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/api/geo/package-tree.html b/javadoc/org/loklak/api/geo/package-tree.html new file mode 100644 index 0000000..f959c9c --- /dev/null +++ b/javadoc/org/loklak/api/geo/package-tree.html @@ -0,0 +1,139 @@ + + + + + +org.loklak.api.geo Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.geo

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/api/iot/AbstractPushServlet.html b/javadoc/org/loklak/api/iot/AbstractPushServlet.html new file mode 100644 index 0000000..5fca4c7 --- /dev/null +++ b/javadoc/org/loklak/api/iot/AbstractPushServlet.html @@ -0,0 +1,392 @@ + + + + + +AbstractPushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class AbstractPushServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.AbstractPushServlet
      • +
      +
    • +
    +
  • +
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractPushServlet

        +
        public AbstractPushServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        public void init()
        +          throws ServletException
        +
        +
        Throws:
        +
        ServletException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getSourceType

        +
        protected abstract SourceType getSourceType()
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        customProcessing

        +
        protected abstract void customProcessing(JSONObject message)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/EarthquakeServlet.html b/javadoc/org/loklak/api/iot/EarthquakeServlet.html new file mode 100644 index 0000000..732c60e --- /dev/null +++ b/javadoc/org/loklak/api/iot/EarthquakeServlet.html @@ -0,0 +1,325 @@ + + + + + +EarthquakeServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class EarthquakeServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.EarthquakeServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class EarthquakeServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      EarthquakeServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      static JSONObjectreadJsonFromUrl(java.lang.String url) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        EarthquakeServlet

        +
        public EarthquakeServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readJsonFromUrl

        +
        public static JSONObject readJsonFromUrl(java.lang.String url)
        +                                  throws java.io.IOException,
        +                                         JSONException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/FossasiaPushServlet.html b/javadoc/org/loklak/api/iot/FossasiaPushServlet.html new file mode 100644 index 0000000..48513ad --- /dev/null +++ b/javadoc/org/loklak/api/iot/FossasiaPushServlet.html @@ -0,0 +1,358 @@ + + + + + +FossasiaPushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class FossasiaPushServlet

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/FreifunkNodeFetchServlet.html b/javadoc/org/loklak/api/iot/FreifunkNodeFetchServlet.html new file mode 100644 index 0000000..2c851f0 --- /dev/null +++ b/javadoc/org/loklak/api/iot/FreifunkNodeFetchServlet.html @@ -0,0 +1,325 @@ + + + + + +FreifunkNodeFetchServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class FreifunkNodeFetchServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.FreifunkNodeFetchServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class FreifunkNodeFetchServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      static JSONObjectreadJsonFromUrl(java.lang.String url) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FreifunkNodeFetchServlet

        +
        public FreifunkNodeFetchServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readJsonFromUrl

        +
        public static JSONObject readJsonFromUrl(java.lang.String url)
        +                                  throws java.io.IOException,
        +                                         JSONException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/FreifunkNodePushServlet.html b/javadoc/org/loklak/api/iot/FreifunkNodePushServlet.html new file mode 100644 index 0000000..5d4cdbb --- /dev/null +++ b/javadoc/org/loklak/api/iot/FreifunkNodePushServlet.html @@ -0,0 +1,358 @@ + + + + + +FreifunkNodePushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class FreifunkNodePushServlet

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/GeoJsonPushServlet.html b/javadoc/org/loklak/api/iot/GeoJsonPushServlet.html new file mode 100644 index 0000000..28ddbf8 --- /dev/null +++ b/javadoc/org/loklak/api/iot/GeoJsonPushServlet.html @@ -0,0 +1,305 @@ + + + + + +GeoJsonPushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class GeoJsonPushServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.GeoJsonPushServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class GeoJsonPushServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GeoJsonPushServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeoJsonPushServlet

        +
        public GeoJsonPushServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/ImportProfileServlet.html b/javadoc/org/loklak/api/iot/ImportProfileServlet.html new file mode 100644 index 0000000..fdd7b81 --- /dev/null +++ b/javadoc/org/loklak/api/iot/ImportProfileServlet.html @@ -0,0 +1,305 @@ + + + + + +ImportProfileServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class ImportProfileServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.ImportProfileServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ImportProfileServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ImportProfileServlet

        +
        public ImportProfileServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/NMEAServlet.GPSPosition.html b/javadoc/org/loklak/api/iot/NMEAServlet.GPSPosition.html new file mode 100644 index 0000000..b62c5bc --- /dev/null +++ b/javadoc/org/loklak/api/iot/NMEAServlet.GPSPosition.html @@ -0,0 +1,430 @@ + + + + + +NMEAServlet.GPSPosition + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class NMEAServlet.GPSPosition

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.api.iot.NMEAServlet.GPSPosition
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    NMEAServlet
    +
    +
    +
    +
    public class NMEAServlet.GPSPosition
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      floataltitude 
      floatdir 
      booleanfixed 
      floatlat 
      floatlon 
      intquality 
      floattime 
      floatvelocity 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GPSPosition() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        time

        +
        public float time
        +
      • +
      + + + +
        +
      • +

        lat

        +
        public float lat
        +
      • +
      + + + +
        +
      • +

        lon

        +
        public float lon
        +
      • +
      + + + +
        +
      • +

        fixed

        +
        public boolean fixed
        +
      • +
      + + + +
        +
      • +

        quality

        +
        public int quality
        +
      • +
      + + + +
        +
      • +

        dir

        +
        public float dir
        +
      • +
      + + + +
        +
      • +

        altitude

        +
        public float altitude
        +
      • +
      + + + +
        +
      • +

        velocity

        +
        public float velocity
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GPSPosition

        +
        public GPSPosition()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updatefix

        +
        public void updatefix()
        +
      • +
      + + + +
        +
      • +

        toJSONString

        +
        public JSONObject toJSONString()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/NMEAServlet.html b/javadoc/org/loklak/api/iot/NMEAServlet.html new file mode 100644 index 0000000..47e498e --- /dev/null +++ b/javadoc/org/loklak/api/iot/NMEAServlet.html @@ -0,0 +1,337 @@ + + + + + +NMEAServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class NMEAServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.NMEAServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class NMEAServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      class NMEAServlet.GPSPosition 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NMEAServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      NMEAServlet.GPSPositionparse(java.lang.String line) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NMEAServlet

        +
        public NMEAServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/NOAAAlertServlet.html b/javadoc/org/loklak/api/iot/NOAAAlertServlet.html new file mode 100644 index 0000000..495b43d --- /dev/null +++ b/javadoc/org/loklak/api/iot/NOAAAlertServlet.html @@ -0,0 +1,305 @@ + + + + + +NOAAAlertServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class NOAAAlertServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.NOAAAlertServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class NOAAAlertServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NOAAAlertServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NOAAAlertServlet

        +
        public NOAAAlertServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/NetmonPushServlet.html b/javadoc/org/loklak/api/iot/NetmonPushServlet.html new file mode 100644 index 0000000..0bbfa23 --- /dev/null +++ b/javadoc/org/loklak/api/iot/NetmonPushServlet.html @@ -0,0 +1,283 @@ + + + + + +NetmonPushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class NetmonPushServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.NetmonPushServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class NetmonPushServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NetmonPushServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NetmonPushServlet

        +
        public NetmonPushServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/NodelistPushServlet.html b/javadoc/org/loklak/api/iot/NodelistPushServlet.html new file mode 100644 index 0000000..e14ad5a --- /dev/null +++ b/javadoc/org/loklak/api/iot/NodelistPushServlet.html @@ -0,0 +1,358 @@ + + + + + +NodelistPushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class NodelistPushServlet

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/OpenWifiMapPushServlet.html b/javadoc/org/loklak/api/iot/OpenWifiMapPushServlet.html new file mode 100644 index 0000000..5b9b991 --- /dev/null +++ b/javadoc/org/loklak/api/iot/OpenWifiMapPushServlet.html @@ -0,0 +1,358 @@ + + + + + +OpenWifiMapPushServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class OpenWifiMapPushServlet

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/PushReport.html b/javadoc/org/loklak/api/iot/PushReport.html new file mode 100644 index 0000000..d282e37 --- /dev/null +++ b/javadoc/org/loklak/api/iot/PushReport.html @@ -0,0 +1,412 @@ + + + + + +PushReport + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class PushReport

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.api.iot.PushReport
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class PushReport
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PushReport

        +
        public PushReport()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNewCount

        +
        public int getNewCount()
        +
      • +
      + + + +
        +
      • +

        incrementNewCount

        +
        public void incrementNewCount()
        +
      • +
      + + + +
        +
      • +

        getKnownCount

        +
        public int getKnownCount()
        +
      • +
      + + + +
        +
      • +

        incrementKnownCount

        +
        public void incrementKnownCount(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        incrementErrorCount

        +
        public void incrementErrorCount()
        +
      • +
      + + + +
        +
      • +

        getErrorCount

        +
        public int getErrorCount()
        +
      • +
      + + + + + + + +
        +
      • +

        setImportProfile

        +
        public void setImportProfile(ImportProfileEntry importProfile)
        +
      • +
      + + + +
        +
      • +

        getKnownMessageIds

        +
        public java.util.List<java.lang.String> getKnownMessageIds()
        +
      • +
      + + + +
        +
      • +

        getRecordCount

        +
        public int getRecordCount()
        +
      • +
      + + + +
        +
      • +

        incrementRecordCount

        +
        public void incrementRecordCount()
        +
      • +
      + + + +
        +
      • +

        combine

        +
        public void combine(PushReport that)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/PushServletHelper.html b/javadoc/org/loklak/api/iot/PushServletHelper.html new file mode 100644 index 0000000..4ee415e --- /dev/null +++ b/javadoc/org/loklak/api/iot/PushServletHelper.html @@ -0,0 +1,397 @@ + + + + + +PushServletHelper + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class PushServletHelper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.api.iot.PushServletHelper
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class PushServletHelper
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        FIELDS_TO_COMPARE

        +
        public static final java.lang.String[] FIELDS_TO_COMPARE
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PushServletHelper

        +
        public PushServletHelper()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        saveMessagesAndImportProfile

        +
        public static PushReport saveMessagesAndImportProfile(JSONArray messages,
        +                                                      int fileHash,
        +                                                      Query post,
        +                                                      SourceType sourceType,
        +                                                      java.lang.String screenName)
        +                                               throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        saveImportProfile

        +
        protected static ImportProfileEntry saveImportProfile(int fileHash,
        +                                                      Query post,
        +                                                      SourceType sourceType,
        +                                                      java.lang.String screenName,
        +                                                      java.util.List<java.lang.String> importedMsgIds)
        +                                               throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buildJSONResponse

        +
        public static java.lang.String buildJSONResponse(java.lang.String callback,
        +                                                 PushReport pushReport)
        +                                          throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        checkMessageExistence

        +
        public static java.lang.String checkMessageExistence(JSONObject message)
        +
      • +
      + + + +
        +
      • +

        computeMessageId

        +
        public static java.lang.String computeMessageId(JSONObject message,
        +                                                SourceType sourceType)
        +                                         throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/StuffInSpaceServlet.html b/javadoc/org/loklak/api/iot/StuffInSpaceServlet.html new file mode 100644 index 0000000..eee44ff --- /dev/null +++ b/javadoc/org/loklak/api/iot/StuffInSpaceServlet.html @@ -0,0 +1,325 @@ + + + + + +StuffInSpaceServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class StuffInSpaceServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.StuffInSpaceServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class StuffInSpaceServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      static JSONArrayreadJsonFromUrl(java.lang.String url) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StuffInSpaceServlet

        +
        public StuffInSpaceServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readJsonFromUrl

        +
        public static JSONArray readJsonFromUrl(java.lang.String url)
        +                                 throws java.io.IOException,
        +                                        JSONException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/ValidateServlet.html b/javadoc/org/loklak/api/iot/ValidateServlet.html new file mode 100644 index 0000000..93c66cf --- /dev/null +++ b/javadoc/org/loklak/api/iot/ValidateServlet.html @@ -0,0 +1,305 @@ + + + + + +ValidateServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class ValidateServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.ValidateServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ValidateServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ValidateServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ValidateServlet

        +
        public ValidateServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/YahiHazeServlet.html b/javadoc/org/loklak/api/iot/YahiHazeServlet.html new file mode 100644 index 0000000..3de0666 --- /dev/null +++ b/javadoc/org/loklak/api/iot/YahiHazeServlet.html @@ -0,0 +1,325 @@ + + + + + +YahiHazeServlet + + + + + + + + + + + + +
+
org.loklak.api.iot
+

Class YahiHazeServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.iot.YahiHazeServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class YahiHazeServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      YahiHazeServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      static JSONArrayreadJsonFromUrl(java.lang.String url) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        YahiHazeServlet

        +
        public YahiHazeServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readJsonFromUrl

        +
        public static JSONArray readJsonFromUrl(java.lang.String url)
        +                                 throws java.io.IOException,
        +                                        JSONException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/iot/package-frame.html b/javadoc/org/loklak/api/iot/package-frame.html new file mode 100644 index 0000000..aaa6254 --- /dev/null +++ b/javadoc/org/loklak/api/iot/package-frame.html @@ -0,0 +1,36 @@ + + + + + +org.loklak.api.iot + + + + + +

org.loklak.api.iot

+ + + diff --git a/javadoc/org/loklak/api/iot/package-summary.html b/javadoc/org/loklak/api/iot/package-summary.html new file mode 100644 index 0000000..d0caecb --- /dev/null +++ b/javadoc/org/loklak/api/iot/package-summary.html @@ -0,0 +1,204 @@ + + + + + +org.loklak.api.iot + + + + + + + + + + + +
+

Package org.loklak.api.iot

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/iot/package-tree.html b/javadoc/org/loklak/api/iot/package-tree.html new file mode 100644 index 0000000..82e9371 --- /dev/null +++ b/javadoc/org/loklak/api/iot/package-tree.html @@ -0,0 +1,199 @@ + + + + + +org.loklak.api.iot Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.iot

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/p2p/HelloService.html b/javadoc/org/loklak/api/p2p/HelloService.html new file mode 100644 index 0000000..8cc4c30 --- /dev/null +++ b/javadoc/org/loklak/api/p2p/HelloService.html @@ -0,0 +1,393 @@ + + + + + +HelloService + + + + + + + + + + + + +
+
org.loklak.api.p2p
+

Class HelloService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    APIHandler
    +
    +
    +
    +
    public class HelloService
    +extends AbstractAPIHandler
    +implements APIHandler
    +
    Servlet to span the message peer-to-peer network. + This servlet is called to announce the existence of the remote peer.
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/p2p/PeersServlet.html b/javadoc/org/loklak/api/p2p/PeersServlet.html new file mode 100644 index 0000000..595efa6 --- /dev/null +++ b/javadoc/org/loklak/api/p2p/PeersServlet.html @@ -0,0 +1,335 @@ + + + + + +PeersServlet + + + + + + + + + + + + +
+
org.loklak.api.p2p
+

Class PeersServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.p2p.PeersServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class PeersServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PeersServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      static Timelinepeers(java.lang.String protocolhostportstub, + java.lang.String query, + Timeline.Order order, + java.lang.String source, + int count, + int timezoneOffset, + java.lang.String provider_hash) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PeersServlet

        +
        public PeersServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        peers

        +
        public static Timeline peers(java.lang.String protocolhostportstub,
        +                             java.lang.String query,
        +                             Timeline.Order order,
        +                             java.lang.String source,
        +                             int count,
        +                             int timezoneOffset,
        +                             java.lang.String provider_hash)
        +                      throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/p2p/PushServlet.html b/javadoc/org/loklak/api/p2p/PushServlet.html new file mode 100644 index 0000000..bfa6af8 --- /dev/null +++ b/javadoc/org/loklak/api/p2p/PushServlet.html @@ -0,0 +1,379 @@ + + + + + +PushServlet + + + + + + + + + + + + +
+
org.loklak.api.p2p
+

Class PushServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.p2p.PushServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class PushServlet
    +extends HttpServlet
    +
    push api to send messages to the loklak index. + The push json format is exactly like a search result json. Most of the attributes in a message can be ommitted. + Here is an example file that can be prepared for a push: + +{ + "statuses": [ + { + "id_str": "yourmessageid_1234", + "screen_name": "testuser", + "created_at": "2016-07-22T07:53:24.000Z", + "text": "The rain is spain stays always in the plain", + "source_type": "GENERIC", + "place_name": "Georgia, USA", + "location_point": [3.058579854228782,50.63296878274201], + "location_radius": 0, + "user": { + "user_id": "youruserid_5678", + "name": "Mr. Bob", + } + } + ] +} + + save this json into a file named "test.json" and thenn call curl the following way: + curl -X POST -F 'data=@test.json' http://localhost:9000/api/push.json + + You should modify the source_type object to a name which describes the semantic of the text content. + You can i.e. use GEOJSON to describe that you are pushing a geojson data object within the text body. + Please take care that you choose a proper id_str and user_id which has it's own id name domain + so it can be distinguished from other id domains. You can do that i.e. by choosing a fixed prefix for your + data domain.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PushServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      static booleanpush(java.lang.String[] hoststubs, + Timeline timeline) 
      static booleanpush(java.lang.String[] hoststubs, + Timeline timeline, + boolean peerMessage) +
      transmit the timeline to several hosts
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PushServlet

        +
        public PushServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        push

        +
        public static boolean push(java.lang.String[] hoststubs,
        +                           Timeline timeline,
        +                           boolean peerMessage)
        +
        transmit the timeline to several hosts
        +
        +
        Parameters:
        +
        timeline -
        +
        hoststubs - a list of host stubs, i.e. ["http://remoteserver.eu"]
        +
        peerMessage - if message is send to a peer
        +
        Returns:
        +
        true if the data was transmitted to at least one target peer
        +
        +
      • +
      + + + +
        +
      • +

        push

        +
        public static boolean push(java.lang.String[] hoststubs,
        +                           Timeline timeline)
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/p2p/package-frame.html b/javadoc/org/loklak/api/p2p/package-frame.html new file mode 100644 index 0000000..34b7f90 --- /dev/null +++ b/javadoc/org/loklak/api/p2p/package-frame.html @@ -0,0 +1,22 @@ + + + + + +org.loklak.api.p2p + + + + + +

org.loklak.api.p2p

+ + + diff --git a/javadoc/org/loklak/api/p2p/package-summary.html b/javadoc/org/loklak/api/p2p/package-summary.html new file mode 100644 index 0000000..748dbeb --- /dev/null +++ b/javadoc/org/loklak/api/p2p/package-summary.html @@ -0,0 +1,152 @@ + + + + + +org.loklak.api.p2p + + + + + + + + + + + +
+

Package org.loklak.api.p2p

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    HelloService +
    Servlet to span the message peer-to-peer network.
    +
    PeersServlet 
    PushServlet +
    push api to send messages to the loklak index.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/api/p2p/package-tree.html b/javadoc/org/loklak/api/p2p/package-tree.html new file mode 100644 index 0000000..d54a63b --- /dev/null +++ b/javadoc/org/loklak/api/p2p/package-tree.html @@ -0,0 +1,153 @@ + + + + + +org.loklak.api.p2p Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.p2p

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/package-frame.html b/javadoc/org/loklak/api/package-frame.html new file mode 100644 index 0000000..7ae5710 --- /dev/null +++ b/javadoc/org/loklak/api/package-frame.html @@ -0,0 +1,14 @@ + + + + + +org.loklak.api + + + + + +

org.loklak.api

+ + diff --git a/javadoc/org/loklak/api/package-summary.html b/javadoc/org/loklak/api/package-summary.html new file mode 100644 index 0000000..527ef76 --- /dev/null +++ b/javadoc/org/loklak/api/package-summary.html @@ -0,0 +1,121 @@ + + + + + +org.loklak.api + + + + + + + + + + + +
+

Package org.loklak.api

+
+ + + + + + diff --git a/javadoc/org/loklak/api/package-tree.html b/javadoc/org/loklak/api/package-tree.html new file mode 100644 index 0000000..ae3ba3a --- /dev/null +++ b/javadoc/org/loklak/api/package-tree.html @@ -0,0 +1,125 @@ + + + + + +org.loklak.api Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api

+Package Hierarchies: + +
+ + + + + + diff --git a/javadoc/org/loklak/api/tools/CSVServlet.html b/javadoc/org/loklak/api/tools/CSVServlet.html new file mode 100644 index 0000000..bcadf41 --- /dev/null +++ b/javadoc/org/loklak/api/tools/CSVServlet.html @@ -0,0 +1,305 @@ + + + + + +CSVServlet + + + + + + + + + + + + +
+
org.loklak.api.tools
+

Class CSVServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.tools.CSVServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CSVServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CSVServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CSVServlet

        +
        public CSVServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/tools/XMLServlet.html b/javadoc/org/loklak/api/tools/XMLServlet.html new file mode 100644 index 0000000..a7f7104 --- /dev/null +++ b/javadoc/org/loklak/api/tools/XMLServlet.html @@ -0,0 +1,305 @@ + + + + + +XMLServlet + + + + + + + + + + + + +
+
org.loklak.api.tools
+

Class XMLServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.tools.XMLServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class XMLServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      XMLServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        XMLServlet

        +
        public XMLServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/tools/package-frame.html b/javadoc/org/loklak/api/tools/package-frame.html new file mode 100644 index 0000000..0fcd91f --- /dev/null +++ b/javadoc/org/loklak/api/tools/package-frame.html @@ -0,0 +1,21 @@ + + + + + +org.loklak.api.tools + + + + + +

org.loklak.api.tools

+
+

Classes

+ +
+ + diff --git a/javadoc/org/loklak/api/tools/package-summary.html b/javadoc/org/loklak/api/tools/package-summary.html new file mode 100644 index 0000000..a8328aa --- /dev/null +++ b/javadoc/org/loklak/api/tools/package-summary.html @@ -0,0 +1,144 @@ + + + + + +org.loklak.api.tools + + + + + + + + + + + +
+

Package org.loklak.api.tools

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/tools/package-tree.html b/javadoc/org/loklak/api/tools/package-tree.html new file mode 100644 index 0000000..c51b57f --- /dev/null +++ b/javadoc/org/loklak/api/tools/package-tree.html @@ -0,0 +1,144 @@ + + + + + +org.loklak.api.tools Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.tools

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • HttpServlet + +
    • +
    • HttpServlet + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/api/vis/MapServlet.html b/javadoc/org/loklak/api/vis/MapServlet.html new file mode 100644 index 0000000..7b52a19 --- /dev/null +++ b/javadoc/org/loklak/api/vis/MapServlet.html @@ -0,0 +1,329 @@ + + + + + +MapServlet + + + + + + + + + + + + +
+
org.loklak.api.vis
+

Class MapServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.vis.MapServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MapServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MapServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      protected voidprocess(HttpServletRequest request, + HttpServletResponse response, + Query post) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MapServlet

        +
        public MapServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        process

        +
        protected void process(HttpServletRequest request,
        +                       HttpServletResponse response,
        +                       Query post)
        +                throws ServletException,
        +                       java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/vis/MarkdownServlet.html b/javadoc/org/loklak/api/vis/MarkdownServlet.html new file mode 100644 index 0000000..c5c9e51 --- /dev/null +++ b/javadoc/org/loklak/api/vis/MarkdownServlet.html @@ -0,0 +1,329 @@ + + + + + +MarkdownServlet + + + + + + + + + + + + +
+
org.loklak.api.vis
+

Class MarkdownServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.vis.MarkdownServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MarkdownServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MarkdownServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      protected voidprocess(HttpServletRequest request, + HttpServletResponse response, + Query post) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MarkdownServlet

        +
        public MarkdownServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        process

        +
        protected void process(HttpServletRequest request,
        +                       HttpServletResponse response,
        +                       Query post)
        +                throws ServletException,
        +                       java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/vis/PieChartServlet.html b/javadoc/org/loklak/api/vis/PieChartServlet.html new file mode 100644 index 0000000..eb8de58 --- /dev/null +++ b/javadoc/org/loklak/api/vis/PieChartServlet.html @@ -0,0 +1,360 @@ + + + + + +PieChartServlet + + + + + + + + + + + + +
+
org.loklak.api.vis
+

Class PieChartServlet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.api.vis.PieChartServlet
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class PieChartServlet
    +extends HttpServlet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static longserialVersionUID 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PieChartServlet() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoGet(HttpServletRequest request, + HttpServletResponse response) 
      protected voiddoPost(HttpServletRequest request, + HttpServletResponse response) 
      JFreeChartgetChart(JSONObject jsonData, + boolean legendBit, + boolean tooltipBit) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PieChartServlet

        +
        public PieChartServlet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getChart

        +
        public JFreeChart getChart(JSONObject jsonData,
        +                           boolean legendBit,
        +                           boolean tooltipBit)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/api/vis/package-frame.html b/javadoc/org/loklak/api/vis/package-frame.html new file mode 100644 index 0000000..eba60fa --- /dev/null +++ b/javadoc/org/loklak/api/vis/package-frame.html @@ -0,0 +1,22 @@ + + + + + +org.loklak.api.vis + + + + + +

org.loklak.api.vis

+ + + diff --git a/javadoc/org/loklak/api/vis/package-summary.html b/javadoc/org/loklak/api/vis/package-summary.html new file mode 100644 index 0000000..9ad297a --- /dev/null +++ b/javadoc/org/loklak/api/vis/package-summary.html @@ -0,0 +1,148 @@ + + + + + +org.loklak.api.vis + + + + + + + + + + + +
+

Package org.loklak.api.vis

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/api/vis/package-tree.html b/javadoc/org/loklak/api/vis/package-tree.html new file mode 100644 index 0000000..537b253 --- /dev/null +++ b/javadoc/org/loklak/api/vis/package-tree.html @@ -0,0 +1,149 @@ + + + + + +org.loklak.api.vis Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.api.vis

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/data/AbstractIndexFactory.html b/javadoc/org/loklak/data/AbstractIndexFactory.html new file mode 100644 index 0000000..1510267 --- /dev/null +++ b/javadoc/org/loklak/data/AbstractIndexFactory.html @@ -0,0 +1,544 @@ + + + + + +AbstractIndexFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Class AbstractIndexFactory<IndexObject extends ObjectEntry>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.AbstractIndexFactory<IndexObject>
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    IndexFactory<IndexObject>
    +
    +
    +
    Direct Known Subclasses:
    +
    AccountFactory, ImportProfileFactory, MessageFactory, QueryFactory, UserFactory
    +
    +
    +
    +
    public abstract class AbstractIndexFactory<IndexObject extends ObjectEntry>
    +extends java.lang.Object
    +implements IndexFactory<IndexObject>
    +
    test calls: + curl "http://localhost:9000/api/account.json?screen_name=test" + curl -g "http://localhost:9000/api/account.json?action=update&data={\"screen_name\":\"test\",\"apps\":{\"wall\":{\"type\":\"vertical\"}}}"
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/AccountFactory.html b/javadoc/org/loklak/data/AccountFactory.html new file mode 100644 index 0000000..6751d13 --- /dev/null +++ b/javadoc/org/loklak/data/AccountFactory.html @@ -0,0 +1,321 @@ + + + + + +AccountFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Class AccountFactory

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AccountFactory

        +
        public AccountFactory(ElasticsearchClient elasticsearch_client,
        +                      java.lang.String index_name,
        +                      int cacheSize,
        +                      int existSize)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Campaign.html b/javadoc/org/loklak/data/Campaign.html new file mode 100644 index 0000000..9e8c10a --- /dev/null +++ b/javadoc/org/loklak/data/Campaign.html @@ -0,0 +1,542 @@ + + + + + +Campaign + + + + + + + + + + + + +
+
org.loklak.data
+

Class Campaign

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.Campaign
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Comparable<Campaign>, java.util.Comparator<Campaign>
    +
    +
    +
    +
    public class Campaign
    +extends java.lang.Object
    +implements java.util.Comparator<Campaign>, java.lang.Comparable<Campaign>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Campaign() 
      Campaign(JSONObject campaignMap) +
      create an campaign with a dumped map
      +
      Campaign(java.lang.String query, + java.lang.String name, + java.util.Date creation_date, + java.util.Date start_date, + java.util.Date end_date, + int timezoneOffset) +
      create an campaign
      +
      Campaign(java.lang.String query, + java.lang.String name, + java.lang.String start_date, + java.lang.String end_date, + int timezoneOffset) +
      create an campaign
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Campaign

        +
        public Campaign()
        +
      • +
      + + + +
        +
      • +

        Campaign

        +
        public Campaign(JSONObject campaignMap)
        +
        create an campaign with a dumped map
        +
        +
        Parameters:
        +
        campaignMap -
        +
        +
      • +
      + + + +
        +
      • +

        Campaign

        +
        public Campaign(java.lang.String query,
        +                java.lang.String name,
        +                java.util.Date creation_date,
        +                java.util.Date start_date,
        +                java.util.Date end_date,
        +                int timezoneOffset)
        +
        create an campaign
        +
        +
        Parameters:
        +
        query - the query which can be used to harvest the campaign
        +
        name - the name of the campaign
        +
        creation_date - the creation time of the campaign
        +
        start_date - the start of the campaign
        +
        end_date - the end of the campaign
        +
        timezoneOffset - the offset of the time zone of the creating client
        +
        +
      • +
      + + + +
        +
      • +

        Campaign

        +
        public Campaign(java.lang.String query,
        +                java.lang.String name,
        +                java.lang.String start_date,
        +                java.lang.String end_date,
        +                int timezoneOffset)
        +         throws java.text.ParseException
        +
        create an campaign
        +
        +
        Parameters:
        +
        query - the query which can be used to harvest the campaign
        +
        name - the name of the campaign
        +
        start_date - "YYYY-MM-dd HH:mm" the start of the campaign
        +
        end_date - "YYYY-MM-dd HH:mm" the end of the campaign
        +
        timezoneOffset - the offset of the time zone of the creating client, used to parse the date
        +
        Throws:
        +
        java.text.ParseException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
      • +
      + + + +
        +
      • +

        getQuery

        +
        public java.lang.String getQuery()
        +
      • +
      + + + +
        +
      • +

        getCreationDate

        +
        public java.util.Date getCreationDate()
        +
      • +
      + + + +
        +
      • +

        getStartTime

        +
        public long getStartTime()
        +
      • +
      + + + +
        +
      • +

        getEndTime

        +
        public long getEndTime()
        +
      • +
      + + + +
        +
      • +

        getTimezoneOffset

        +
        public int getTimezoneOffset()
        +
      • +
      + + + +
        +
      • +

        getID

        +
        public java.lang.String getID()
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(Campaign o)
        +
        +
        Specified by:
        +
        compareTo in interface java.lang.Comparable<Campaign>
        +
        +
      • +
      + + + +
        +
      • +

        compare

        +
        public int compare(Campaign o1,
        +                   Campaign o2)
        +
        +
        Specified by:
        +
        compare in interface java.util.Comparator<Campaign>
        +
        +
      • +
      + + + + + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Campaigns.State.html b/javadoc/org/loklak/data/Campaigns.State.html new file mode 100644 index 0000000..68f581d --- /dev/null +++ b/javadoc/org/loklak/data/Campaigns.State.html @@ -0,0 +1,415 @@ + + + + + +Campaigns.State + + + + + + + + + + + + +
+
org.loklak.data
+

Enum Campaigns.State

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<Campaigns.State>
    • +
    • +
        +
      • org.loklak.data.Campaigns.State
      • +
      +
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      FUTURE 
      ONGOING 
      WRAPPED 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcompare(Campaigns.State o1, + Campaigns.State o2) 
      intgetCard() 
      java.lang.StringtoFileName() 
      static Campaigns.StatevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Campaigns.State[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.lang.Comparable

        +compareTo
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Campaigns.State[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Campaigns.State c : Campaigns.State.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Campaigns.State valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getCard

        +
        public int getCard()
        +
      • +
      + + + + + + + +
        +
      • +

        toFileName

        +
        public java.lang.String toFileName()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Campaigns.html b/javadoc/org/loklak/data/Campaigns.html new file mode 100644 index 0000000..7b43b4e --- /dev/null +++ b/javadoc/org/loklak/data/Campaigns.html @@ -0,0 +1,327 @@ + + + + + +Campaigns + + + + + + + + + + + + +
+
org.loklak.data
+

Class Campaigns

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.Campaigns
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Campaigns
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class Campaigns.State 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Campaigns(java.io.File storagePath) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Campaigns

        +
        public Campaigns(java.io.File storagePath)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        processCampaigns

        +
        public void processCampaigns()
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
      • +
      + + + +
        +
      • +

        save

        +
        public void save()
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Classifier.Category.html b/javadoc/org/loklak/data/Classifier.Category.html new file mode 100644 index 0000000..11092ad --- /dev/null +++ b/javadoc/org/loklak/data/Classifier.Category.html @@ -0,0 +1,535 @@ + + + + + +Classifier.Category + + + + + + + + + + + + +
+
org.loklak.data
+

Enum Classifier.Category

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static Classifier.CategoryvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Classifier.Category[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Classifier.Category[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Classifier.Category c : Classifier.Category.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Classifier.Category valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Classifier.Context.html b/javadoc/org/loklak/data/Classifier.Context.html new file mode 100644 index 0000000..3701c5f --- /dev/null +++ b/javadoc/org/loklak/data/Classifier.Context.html @@ -0,0 +1,456 @@ + + + + + +Classifier.Context + + + + + + + + + + + + +
+
org.loklak.data
+

Enum Classifier.Context

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.Map<Classifier.Category,java.util.Set<java.lang.String>>categories 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      Classification<java.lang.String,Classifier.Category>classify(java.lang.String phrase) 
      voidforgetWord(java.lang.String key) 
      voidinit(int capacity) 
      voidlearnPhrase(java.lang.String phrase) 
      static Classifier.ContextvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Classifier.Context[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      java.util.Set<java.lang.String>vocabulary() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        categories

        +
        public java.util.Map<Classifier.Category,java.util.Set<java.lang.String>> categories
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Classifier.Context[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Classifier.Context c : Classifier.Context.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Classifier.Context valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        init

        +
        public void init(int capacity)
        +
      • +
      + + + +
        +
      • +

        vocabulary

        +
        public java.util.Set<java.lang.String> vocabulary()
        +
      • +
      + + + +
        +
      • +

        forgetWord

        +
        public void forgetWord(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        learnPhrase

        +
        public void learnPhrase(java.lang.String phrase)
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Classifier.html b/javadoc/org/loklak/data/Classifier.html new file mode 100644 index 0000000..97e7c98 --- /dev/null +++ b/javadoc/org/loklak/data/Classifier.html @@ -0,0 +1,369 @@ + + + + + +Classifier + + + + + + + + + + + + +
+
org.loklak.data
+

Class Classifier

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.Classifier
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Classifier
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.regex.PatternNON_WORD_PATTERN 
      static java.util.regex.PatternWHITESPACE_PATTERN 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Classifier() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NON_WORD_PATTERN

        +
        public static final java.util.regex.Pattern NON_WORD_PATTERN
        +
      • +
      + + + +
        +
      • +

        WHITESPACE_PATTERN

        +
        public static final java.util.regex.Pattern WHITESPACE_PATTERN
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Classifier

        +
        public Classifier()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        learnPhrase

        +
        public static void learnPhrase(java.lang.String message)
        +
      • +
      + + + + + + + +
        +
      • +

        init

        +
        public static void init(int maxsize,
        +                        int initsize)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAO.IndexName.html b/javadoc/org/loklak/data/DAO.IndexName.html new file mode 100644 index 0000000..2faed6f --- /dev/null +++ b/javadoc/org/loklak/data/DAO.IndexName.html @@ -0,0 +1,428 @@ + + + + + +DAO.IndexName + + + + + + + + + + + + +
+
org.loklak.data
+

Enum DAO.IndexName

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<DAO.IndexName>
    • +
    • +
        +
      • org.loklak.data.DAO.IndexName
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<DAO.IndexName>
    +
    +
    +
    Enclosing class:
    +
    DAO
    +
    +
    +
    +
    public static enum DAO.IndexName
    +extends java.lang.Enum<DAO.IndexName>
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static DAO.IndexName[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (DAO.IndexName c : DAO.IndexName.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static DAO.IndexName valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getSchemaFilename

        +
        public java.lang.String getSchemaFilename()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAO.MessageWrapper.html b/javadoc/org/loklak/data/DAO.MessageWrapper.html new file mode 100644 index 0000000..594cd9b --- /dev/null +++ b/javadoc/org/loklak/data/DAO.MessageWrapper.html @@ -0,0 +1,305 @@ + + + + + +DAO.MessageWrapper + + + + + + + + + + + + +
+
org.loklak.data
+

Class DAO.MessageWrapper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.DAO.MessageWrapper
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    DAO
    +
    +
    +
    +
    public static class DAO.MessageWrapper
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAO.SearchLocalMessages.html b/javadoc/org/loklak/data/DAO.SearchLocalMessages.html new file mode 100644 index 0000000..08d7d15 --- /dev/null +++ b/javadoc/org/loklak/data/DAO.SearchLocalMessages.html @@ -0,0 +1,382 @@ + + + + + +DAO.SearchLocalMessages + + + + + + + + + + + + +
+
org.loklak.data
+

Class DAO.SearchLocalMessages

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.DAO.SearchLocalMessages
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    DAO
    +
    +
    +
    +
    public static class DAO.SearchLocalMessages
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      SearchLocalMessages(java.lang.String q, + Timeline.Order orderField, + int timezoneOffset, + int resultCount, + int aggregationLimit, + java.util.ArrayList<java.lang.String> filterList, + java.lang.String... aggregationFields) +
      Search the local message cache using a elasticsearch query.
      +
      SearchLocalMessages(java.lang.String q, + Timeline.Order orderField, + int timezoneOffset, + int resultCount, + int aggregationLimit, + java.lang.String... aggregationFields) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        timeline

        +
        public Timeline timeline
        +
      • +
      + + + +
        +
      • +

        aggregations

        +
        public java.util.Map<java.lang.String,java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Long>>> aggregations
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SearchLocalMessages

        +
        public SearchLocalMessages(java.lang.String q,
        +                           Timeline.Order orderField,
        +                           int timezoneOffset,
        +                           int resultCount,
        +                           int aggregationLimit,
        +                           java.util.ArrayList<java.lang.String> filterList,
        +                           java.lang.String... aggregationFields)
        +
        Search the local message cache using a elasticsearch query.
        +
        +
        Parameters:
        +
        q - - the query, for aggregation this which should include a time frame in the form since:yyyy-MM-dd until:yyyy-MM-dd
        +
        order_field - - the field to order the results, i.e. Timeline.Order.CREATED_AT
        +
        timezoneOffset - - an offset in minutes that is applied on dates given in the query of the form since:date until:date
        +
        resultCount - - the number of messages in the result; can be zero if only aggregations are wanted
        +
        aggregationLimit - - the maximum count of facet entities, not search results
        +
        aggregationFields - - names of the aggregation fields. If no aggregation is wanted, pass no (zero) field(s)
        +
        filterList - - list of filters in String datatype
        +
        +
      • +
      + + + +
        +
      • +

        SearchLocalMessages

        +
        public SearchLocalMessages(java.lang.String q,
        +                           Timeline.Order orderField,
        +                           int timezoneOffset,
        +                           int resultCount,
        +                           int aggregationLimit,
        +                           java.lang.String... aggregationFields)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAggregations

        +
        public JSONObject getAggregations()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAO.html b/javadoc/org/loklak/data/DAO.html new file mode 100644 index 0000000..f422c85 --- /dev/null +++ b/javadoc/org/loklak/data/DAO.html @@ -0,0 +1,1983 @@ + + + + + +DAO + + + + + + + + + + + + +
+
org.loklak.data
+

Class DAO

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.DAO
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class DAO
    +extends java.lang.Object
    +
    The Data Access Object for the message project. + This provides only static methods because the class methods shall be available for + all other classes. + + To debug, call elasticsearch directly i.e.: + + get statistics + curl localhost:9200/_stats?pretty=true + + get statistics for message index + curl -XGET 'http://127.0.0.1:9200/messages?pretty=true' + + get mappings in message index + curl -XGET "http://localhost:9200/messages/_mapping?pretty=true" + + get search result from message index + curl -XGET 'http://127.0.0.1:9200/messages/_search?q=*&pretty=true'
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        jsonFactory

        +
        public static final com.fasterxml.jackson.core.JsonFactory jsonFactory
        +
      • +
      + + + +
        +
      • +

        jsonMapper

        +
        public static final com.fasterxml.jackson.databind.ObjectMapper jsonMapper
        +
      • +
      + + + +
        +
      • +

        jsonTypeRef

        +
        public static final <any> jsonTypeRef
        +
      • +
      + + + +
        +
      • +

        MESSAGE_DUMP_FILE_PREFIX

        +
        public static final java.lang.String MESSAGE_DUMP_FILE_PREFIX
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ACCOUNT_DUMP_FILE_PREFIX

        +
        public static final java.lang.String ACCOUNT_DUMP_FILE_PREFIX
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        USER_DUMP_FILE_PREFIX

        +
        public static final java.lang.String USER_DUMP_FILE_PREFIX
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        ACCESS_DUMP_FILE_PREFIX

        +
        public static final java.lang.String ACCESS_DUMP_FILE_PREFIX
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FOLLOWERS_DUMP_FILE_PREFIX

        +
        public static final java.lang.String FOLLOWERS_DUMP_FILE_PREFIX
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        FOLLOWING_DUMP_FILE_PREFIX

        +
        public static final java.lang.String FOLLOWING_DUMP_FILE_PREFIX
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        writeDump

        +
        public static boolean writeDump
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        conf_dir

        +
        public static java.io.File conf_dir
        +
      • +
      + + + +
        +
      • +

        bin_dir

        +
        public static java.io.File bin_dir
        +
      • +
      + + + +
        +
      • +

        html_dir

        +
        public static java.io.File html_dir
        +
      • +
      + + + +
        +
      • +

        public_settings

        +
        public static Settings public_settings
        +
      • +
      + + + +
        +
      • +

        private_settings

        +
        public static Settings private_settings
        +
      • +
      + + + +
        +
      • +

        push_cache_dir

        +
        public static java.nio.file.Path push_cache_dir
        +
      • +
      + + + + + + + +
        +
      • +

        user_dump

        +
        public static JsonDataset user_dump
        +
      • +
      + + + +
        +
      • +

        followers_dump

        +
        public static JsonDataset followers_dump
        +
      • +
      + + + +
        +
      • +

        following_dump

        +
        public static JsonDataset following_dump
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        geoNames

        +
        public static GeoNames geoNames
        +
      • +
      + + + +
        +
      • +

        peers

        +
        public static Peers peers
        +
      • +
      + + + + + + + +
        +
      • +

        authentication

        +
        public static JsonTray authentication
        +
      • +
      + + + +
        +
      • +

        authorization

        +
        public static JsonTray authorization
        +
      • +
      + + + +
        +
      • +

        accounting

        +
        public static JsonTray accounting
        +
      • +
      + + + +
        +
      • +

        userRoles

        +
        public static UserRoles userRoles
        +
      • +
      + + + +
        +
      • +

        passwordreset

        +
        public static JsonTray passwordreset
        +
      • +
      + + + +
        +
      • +

        accounting_temporary

        +
        public static java.util.Map<java.lang.String,Accounting> accounting_temporary
        +
      • +
      + + + +
        +
      • +

        login_keys

        +
        public static JsonFile login_keys
        +
      • +
      + + + +
        +
      • +

        timelineCache

        +
        public static TimelineCache timelineCache
        +
      • +
      + + + +
        +
      • +

        mqttPublisher

        +
        public static MQTTPublisher mqttPublisher
        +
      • +
      + + + +
        +
      • +

        streamEnabled

        +
        public static boolean streamEnabled
        +
      • +
      + + + +
        +
      • +

        random

        +
        public static final java.util.Random random
        +
      • +
      + + + +
        +
      • +

        newUserIds

        +
        public static final java.util.Set<java.lang.Number> newUserIds
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DAO

        +
        public DAO()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        public static void init(java.util.Map<java.lang.String,java.lang.String> configMap,
        +                        java.nio.file.Path dataPath)
        +                 throws java.lang.Exception
        +
        initialize the DAO
        +
        +
        Parameters:
        +
        configMap -
        +
        dataPath - the path to the data directory
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        wait_ready

        +
        public static boolean wait_ready(long maxtimemillis)
        +
      • +
      + + + +
        +
      • +

        pendingClusterTasks

        +
        public static java.lang.String pendingClusterTasks()
        +
      • +
      + + + +
        +
      • +

        clusterStats

        +
        public static java.lang.String clusterStats()
        +
      • +
      + + + +
        +
      • +

        nodeSettings

        +
        public static java.util.Map<java.lang.String,java.lang.String> nodeSettings()
        +
      • +
      + + + +
        +
      • +

        getAssetFile

        +
        public static java.io.File getAssetFile(java.lang.String screen_name,
        +                                        java.lang.String id_str,
        +                                        java.lang.String file)
        +
      • +
      + + + +
        +
      • +

        getTweetOwnDumps

        +
        public static java.util.Collection<java.io.File> getTweetOwnDumps(int count)
        +
      • +
      + + + +
        +
      • +

        importAccountDumps

        +
        public static void importAccountDumps(int count)
        +                               throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public static void close()
        +
        close all objects in this class
        +
      • +
      + + + +
        +
      • +

        getConfig

        +
        public static java.lang.String getConfig(java.lang.String key,
        +                                         java.lang.String default_val)
        +
        get values from
        +
        +
        Parameters:
        +
        key -
        +
        default_val -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        getConfig

        +
        public static java.lang.String[] getConfig(java.lang.String key,
        +                                           java.lang.String[] default_val,
        +                                           java.lang.String delim)
        +
      • +
      + + + +
        +
      • +

        getConfig

        +
        public static long getConfig(java.lang.String key,
        +                             long default_val)
        +
      • +
      + + + +
        +
      • +

        getConfig

        +
        public static double getConfig(java.lang.String key,
        +                               double default_val)
        +
      • +
      + + + +
        +
      • +

        getConfig

        +
        public static int getConfig(java.lang.String key,
        +                            int default_val)
        +
      • +
      + + + +
        +
      • +

        getSchema

        +
        public static JsonNode getSchema(java.lang.String key)
        +                          throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getConversionSchema

        +
        public static JSONObject getConversionSchema(java.lang.String key)
        +                                      throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getConfig

        +
        public static boolean getConfig(java.lang.String key,
        +                                boolean default_val)
        +
      • +
      + + + +
        +
      • +

        getConfigKeys

        +
        public static java.util.Set<java.lang.String> getConfigKeys()
        +
      • +
      + + + +
        +
      • +

        writeMessage

        +
        public static boolean writeMessage(DAO.MessageWrapper mw)
        +
        Store a message together with a user into the search index
        +
        +
        Parameters:
        +
        mw - a message wrapper
        +
        Returns:
        +
        true if the record was stored because it did not exist, false if it was not stored because the record existed already
        +
        +
      • +
      + + + +
        +
      • +

        writeMessageBulk

        +
        public static java.util.Set<java.lang.String> writeMessageBulk(java.util.Collection<DAO.MessageWrapper> mws)
        +
      • +
      + + + +
        +
      • +

        writeAccount

        +
        public static boolean writeAccount(AccountEntry a,
        +                                   boolean dump)
        +
        Store an account together with a user into the search index + This method is synchronized to prevent concurrent IO caused by this call.
        +
        +
        Parameters:
        +
        a - an account
        +
        dump -
        +
        Returns:
        +
        true if the record was stored because it did not exist, false if it was not stored because the record existed already
        +
        +
      • +
      + + + +
        +
      • +

        writeImportProfile

        +
        public static boolean writeImportProfile(ImportProfileEntry i,
        +                                         boolean dump)
        +
        Store an import profile into the search index + This method is synchronized to prevent concurrent IO caused by this call.
        +
        +
        Parameters:
        +
        i - an import profile
        +
        Returns:
        +
        true if the record was stored because it did not exist, false if it was not stored because the record existed already
        +
        +
      • +
      + + + +
        +
      • +

        countLocalMessages

        +
        public static long countLocalMessages(long millis,
        +                                      boolean created_at)
        +
      • +
      + + + +
        +
      • +

        countLocalMessages

        +
        public static long countLocalMessages()
        +
      • +
      + + + +
        +
      • +

        countLocalMessages

        +
        public static long countLocalMessages(java.lang.String provider_hash)
        +
      • +
      + + + +
        +
      • +

        countLocalUsers

        +
        public static long countLocalUsers()
        +
      • +
      + + + +
        +
      • +

        countLocalQueries

        +
        public static long countLocalQueries()
        +
      • +
      + + + +
        +
      • +

        countLocalAccounts

        +
        public static long countLocalAccounts()
        +
      • +
      + + + +
        +
      • +

        readMessage

        +
        public static TwitterScraper.TwitterTweet readMessage(java.lang.String id)
        +                                               throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        existMessage

        +
        public static boolean existMessage(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        existUser

        +
        public static boolean existUser(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        existQuery

        +
        public static boolean existQuery(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        deleteQuery

        +
        public static boolean deleteQuery(java.lang.String id,
        +                                  SourceType sourceType)
        +
      • +
      + + + +
        +
      • +

        deleteImportProfile

        +
        public static boolean deleteImportProfile(java.lang.String id,
        +                                          SourceType sourceType)
        +
      • +
      + + + +
        +
      • +

        deleteOld

        +
        public static int deleteOld(DAO.IndexName indexName,
        +                            java.util.Date createDateLimit)
        +
      • +
      + + + +
        +
      • +

        FullDateHistogram

        +
        public static java.util.LinkedHashMap<java.lang.String,java.lang.Long> FullDateHistogram(int timezoneOffset)
        +
      • +
      + + + +
        +
      • +

        searchLocalUserByScreenName

        +
        public static UserEntry searchLocalUserByScreenName(java.lang.String screen_name)
        +
        Search the local user cache using a elasticsearch query.
        +
        +
        Parameters:
        +
        screen_name - - the user id
        +
        +
      • +
      + + + +
        +
      • +

        searchLocalUserByUserId

        +
        public static UserEntry searchLocalUserByUserId(java.lang.String user_id)
        +
      • +
      + + + +
        +
      • +

        searchLocalAccount

        +
        public static AccountEntry searchLocalAccount(java.lang.String screen_name)
        +
        Search the local account cache using an elasticsearch query.
        +
        +
        Parameters:
        +
        screen_name - - the user id
        +
        +
      • +
      + + + +
        +
      • +

        SearchLocalQueries

        +
        public static ResultList<QueryEntry> SearchLocalQueries(java.lang.String q,
        +                                                        int resultCount,
        +                                                        java.lang.String sort_field,
        +                                                        java.lang.String default_sort_type,
        +                                                        SortOrder sort_order,
        +                                                        java.util.Date since,
        +                                                        java.util.Date until,
        +                                                        java.lang.String range_field)
        +
        Search the local message cache using a elasticsearch query.
        +
        +
        Parameters:
        +
        q - - the query, can be empty for a matchall-query
        +
        resultCount - - the number of messages in the result
        +
        sort_field - - the field name to sort the result list, i.e. "query_first"
        +
        sort_order - - the sort order (you want to use SortOrder.DESC here)
        +
        +
      • +
      + + + +
        +
      • +

        SearchLocalImportProfiles

        +
        public static ImportProfileEntry SearchLocalImportProfiles(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        SearchLocalImportProfilesWithConstraints

        +
        public static java.util.Collection<ImportProfileEntry> SearchLocalImportProfilesWithConstraints(java.util.Map<java.lang.String,java.lang.String> constraints,
        +                                                                                                boolean latest)
        +                                                                                         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        scrapeTwitter

        +
        public static Timeline scrapeTwitter(Query post,
        +                                     java.lang.String q,
        +                                     Timeline.Order order,
        +                                     int timezoneOffset,
        +                                     boolean byUserQuery,
        +                                     long timeout,
        +                                     boolean recordQuery)
        +
      • +
      + + + +
        +
      • +

        scrapeTwitter

        +
        public static Timeline scrapeTwitter(Query post,
        +                                     java.util.ArrayList<java.lang.String> filterList,
        +                                     java.lang.String q,
        +                                     Timeline.Order order,
        +                                     int timezoneOffset,
        +                                     boolean byUserQuery,
        +                                     long timeout,
        +                                     boolean recordQuery)
        +
      • +
      + + + +
        +
      • +

        scrapeLoklak

        +
        public static JSONArray scrapeLoklak(java.util.Map<java.lang.String,java.lang.String> inputMap,
        +                                     boolean byUserQuery,
        +                                     boolean recordQuery)
        +
      • +
      + + + +
        +
      • +

        getScraperObjects

        +
        public static java.util.List<BaseScraper> getScraperObjects(java.util.List<java.lang.String> scraperList,
        +                                                            java.util.Map<java.lang.String,java.lang.String> inputMap)
        +
      • +
      + + + +
        +
      • +

        getOrder

        +
        public static Timeline2.Order getOrder(java.lang.String orderString)
        +
      • +
      + + + +
        +
      • +

        healLatency

        +
        public static void healLatency(float factor)
        +
      • +
      + + + +
        +
      • +

        updateFrontPeerCache

        +
        public static void updateFrontPeerCache(RemoteAccess remoteAccess)
        +
      • +
      + + + +
        +
      • +

        getFrontPeers

        +
        public static java.util.ArrayList<java.lang.String> getFrontPeers()
        +
        from all known front peers, generate a list of available peers, ordered by the peer latency
        +
        +
        Returns:
        +
        a list of front peers. only the first one shall be used, but the other are fail-over peers
        +
        +
      • +
      + + + +
        +
      • +

        getBackendPeers

        +
        public static java.util.List<java.lang.String> getBackendPeers()
        +
      • +
      + + + +
        +
      • +

        searchBackend

        +
        public static Timeline searchBackend(java.lang.String q,
        +                                     java.util.ArrayList<java.lang.String> filterList,
        +                                     Timeline.Order order,
        +                                     int count,
        +                                     int timezoneOffset,
        +                                     java.lang.String where,
        +                                     long timeout)
        +
      • +
      + + + +
        +
      • +

        searchOnOtherPeers

        +
        public static Timeline searchOnOtherPeers(java.util.List<java.lang.String> remote,
        +                                          java.lang.String q,
        +                                          java.util.ArrayList<java.lang.String> filterList,
        +                                          Timeline.Order order,
        +                                          int count,
        +                                          int timezoneOffset,
        +                                          java.lang.String source,
        +                                          java.lang.String provider_hash,
        +                                          long timeout)
        +
      • +
      + + + +
        +
      • +

        announceNewUserId

        +
        public static void announceNewUserId(Timeline tl)
        +
      • +
      + + + +
        +
      • +

        announceNewUserId

        +
        public static void announceNewUserId(java.lang.Number id)
        +
      • +
      + + + +
        +
      • +

        getNewUserIdsChunk

        +
        public static java.util.Set<java.lang.Number> getNewUserIdsChunk()
        +
      • +
      + + + +
        +
      • +

        log

        +
        public static void log(java.lang.String line)
        +
        For logging informational events
        +
      • +
      + + + +
        +
      • +

        severe

        +
        public static void severe(java.lang.String line)
        +
        For events serious enough to inform and log, but not fatal.
        +
      • +
      + + + +
        +
      • +

        severe

        +
        public static void severe(java.lang.String line,
        +                          java.lang.Throwable e)
        +
      • +
      + + + +
        +
      • +

        severe

        +
        public static void severe(java.lang.Throwable e)
        +
      • +
      + + + +
        +
      • +

        debug

        +
        public static void debug(java.lang.Throwable e)
        +
        For Debugging events (very noisy).
        +
      • +
      + + + +
        +
      • +

        trace

        +
        public static void trace(java.lang.Throwable e)
        +
        For Stacktracing exceptions (preferred over debug).
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAO.parallelScrape.html b/javadoc/org/loklak/data/DAO.parallelScrape.html new file mode 100644 index 0000000..75911fd --- /dev/null +++ b/javadoc/org/loklak/data/DAO.parallelScrape.html @@ -0,0 +1,327 @@ + + + + + +DAO.parallelScrape + + + + + + + + + + + + +
+
org.loklak.data
+

Class DAO.parallelScrape

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Thread
    • +
    • +
        +
      • org.loklak.data.DAO.parallelScrape
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    Enclosing class:
    +
    DAO
    +
    +
    +
    +
    protected class DAO.parallelScrape
    +extends java.lang.Thread
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        +java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        +MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrun() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        +activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Overrides:
        +
        run in class java.lang.Thread
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAOWrapper.GenericJSONBuilder.html b/javadoc/org/loklak/data/DAOWrapper.GenericJSONBuilder.html new file mode 100644 index 0000000..8cae76c --- /dev/null +++ b/javadoc/org/loklak/data/DAOWrapper.GenericJSONBuilder.html @@ -0,0 +1,494 @@ + + + + + +DAOWrapper.GenericJSONBuilder + + + + + + + + + + + + +
+
org.loklak.data
+

Class DAOWrapper.GenericJSONBuilder

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.DAOWrapper.GenericJSONBuilder
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    DAOWrapper
    +
    +
    +
    +
    public static final class DAOWrapper.GenericJSONBuilder
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GenericJSONBuilder

        +
        public GenericJSONBuilder()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setAuthor

        +
        public DAOWrapper.GenericJSONBuilder setAuthor(java.lang.String author,
        +                                               java.lang.String domain)
        +
        Not required
        +
        +
        Parameters:
        +
        author -
        +
        domain -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        setUserid

        +
        public DAOWrapper.GenericJSONBuilder setUserid(java.lang.String user_id_)
        +
        Not required
        +
        +
        Parameters:
        +
        user_id_ -
        +
        Returns:
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setCreatedTime

        +
        public DAOWrapper.GenericJSONBuilder setCreatedTime(java.util.Date createdTime)
        +
        Not required
        +
        +
        Parameters:
        +
        createdTime -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        addText

        +
        public DAOWrapper.GenericJSONBuilder addText(java.lang.String text_)
        +
        Required + This is the text field. You can use JSON style in this field
        +
        +
        Parameters:
        +
        text_ -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        setPlaceName

        +
        public DAOWrapper.GenericJSONBuilder setPlaceName(java.lang.String name)
        +
        Not required
        +
        +
        Parameters:
        +
        name -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        setCoordinate

        +
        public DAOWrapper.GenericJSONBuilder setCoordinate(double longtitude,
        +                                                   double latitude)
        +
        Not required
        +
        +
        Parameters:
        +
        longtitude -
        +
        latitude -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        setCoordinateRadius

        +
        public DAOWrapper.GenericJSONBuilder setCoordinateRadius(int radius)
        +
        Not required
        +
        +
        Parameters:
        +
        radius -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        addField

        +
        public DAOWrapper.GenericJSONBuilder addField(java.lang.String key,
        +                                              java.lang.String value)
        +
        Not required
        +
        +
        Parameters:
        +
        key -
        +
        value -
        +
        Returns:
        +
        +
      • +
      + + + + + + + +
        +
      • +

        persist

        +
        public void persist()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/DAOWrapper.html b/javadoc/org/loklak/data/DAOWrapper.html new file mode 100644 index 0000000..71d7776 --- /dev/null +++ b/javadoc/org/loklak/data/DAOWrapper.html @@ -0,0 +1,320 @@ + + + + + +DAOWrapper + + + + + + + + + + + + +
+
org.loklak.data
+

Class DAOWrapper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.DAOWrapper
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class DAOWrapper
    +extends java.lang.Object
    +
    The json below is the minimum json + { + "statuses": [ + { + "id_str": "yourmessageid_1234", + "screen_name": "testuser", + "created_at": "2016-07-22T07:53:24.000Z", + "text": "The rain is spain stays always in the plain", + "source_type": "GENERIC", + "place_name": "Georgia, USA", + "location_point": [3.058579854228782,50.63296878274201], + "location_radius": 0, + "user": { + "user_id": "youruserid_5678", + "name": "Mr. Bob", + } + } + ] + }
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/ElasticsearchClient.BulkEntry.html b/javadoc/org/loklak/data/ElasticsearchClient.BulkEntry.html new file mode 100644 index 0000000..4678618 --- /dev/null +++ b/javadoc/org/loklak/data/ElasticsearchClient.BulkEntry.html @@ -0,0 +1,294 @@ + + + + + +ElasticsearchClient.BulkEntry + + + + + + + + + + + + +
+
org.loklak.data
+

Class ElasticsearchClient.BulkEntry

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.ElasticsearchClient.BulkEntry
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    ElasticsearchClient
    +
    +
    +
    +
    public static class ElasticsearchClient.BulkEntry
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.Map<java.lang.String,java.lang.Object>jsonMap 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BulkEntry(java.lang.String id, + java.lang.String type, + java.lang.String timestamp_fieldname, + java.lang.Long version, + java.util.Map<java.lang.String,java.lang.Object> jsonMap) +
      initialize entry for bulk writes
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        jsonMap

        +
        public java.util.Map<java.lang.String,java.lang.Object> jsonMap
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BulkEntry

        +
        public BulkEntry(java.lang.String id,
        +                 java.lang.String type,
        +                 java.lang.String timestamp_fieldname,
        +                 java.lang.Long version,
        +                 java.util.Map<java.lang.String,java.lang.Object> jsonMap)
        +
        initialize entry for bulk writes
        +
        +
        Parameters:
        +
        id - the id of the entry
        +
        type - the type name
        +
        timestamp_fieldname - the name of the timestamp field, null for unused. If a name is given here, then this field is filled with the current time
        +
        version - the version number >= 0 for external versioning or null for forced updates without versioning
        +
        jsonMap - the payload object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/ElasticsearchClient.BulkWriteResult.html b/javadoc/org/loklak/data/ElasticsearchClient.BulkWriteResult.html new file mode 100644 index 0000000..701d8f3 --- /dev/null +++ b/javadoc/org/loklak/data/ElasticsearchClient.BulkWriteResult.html @@ -0,0 +1,286 @@ + + + + + +ElasticsearchClient.BulkWriteResult + + + + + + + + + + + + +
+
org.loklak.data
+

Class ElasticsearchClient.BulkWriteResult

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.ElasticsearchClient.BulkWriteResult
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    ElasticsearchClient
    +
    +
    +
    +
    public static class ElasticsearchClient.BulkWriteResult
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BulkWriteResult() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.Set<java.lang.String>getCreated() 
      java.util.Map<java.lang.String,java.lang.String>getErrors() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BulkWriteResult

        +
        public BulkWriteResult()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getErrors

        +
        public java.util.Map<java.lang.String,java.lang.String> getErrors()
        +
      • +
      + + + +
        +
      • +

        getCreated

        +
        public java.util.Set<java.lang.String> getCreated()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/ElasticsearchClient.Query.html b/javadoc/org/loklak/data/ElasticsearchClient.Query.html new file mode 100644 index 0000000..8836323 --- /dev/null +++ b/javadoc/org/loklak/data/ElasticsearchClient.Query.html @@ -0,0 +1,330 @@ + + + + + +ElasticsearchClient.Query + + + + + + + + + + + + +
+
org.loklak.data
+

Class ElasticsearchClient.Query

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.ElasticsearchClient.Query
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    ElasticsearchClient
    +
    +
    +
    +
    public class ElasticsearchClient.Query
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.Map<java.lang.String,java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Long>>>aggregations 
      inthitCount 
      java.util.List<java.util.Map<java.lang.String,java.lang.Object>>result 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Query(java.lang.String indexName, + QueryBuilder queryBuilder, + java.lang.String order_field, + int timezoneOffset, + int resultCount, + long histogram_interval, + java.lang.String histogram_timefield, + int aggregationLimit, + java.lang.String... aggregationFields) +
      Search the local message cache using a elasticsearch query.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        result

        +
        public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> result
        +
      • +
      + + + +
        +
      • +

        hitCount

        +
        public int hitCount
        +
      • +
      + + + +
        +
      • +

        aggregations

        +
        public java.util.Map<java.lang.String,java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Long>>> aggregations
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Query

        +
        public Query(java.lang.String indexName,
        +             QueryBuilder queryBuilder,
        +             java.lang.String order_field,
        +             int timezoneOffset,
        +             int resultCount,
        +             long histogram_interval,
        +             java.lang.String histogram_timefield,
        +             int aggregationLimit,
        +             java.lang.String... aggregationFields)
        +
        Search the local message cache using a elasticsearch query.
        +
        +
        Parameters:
        +
        q - - the query, for aggregation this which should include a time frame in the form since:yyyy-MM-dd until:yyyy-MM-dd
        +
        order_field - - the field to order the results, i.e. Timeline.Order.CREATED_AT
        +
        timezoneOffset - - an offset in minutes that is applied on dates given in the query of the form since:date until:date
        +
        resultCount - - the number of messages in the result; can be zero if only aggregations are wanted
        +
        dateHistogrammInterval - - the date aggregation interval or null, if no aggregation wanted
        +
        aggregationLimit - - the maximum count of facet entities, not search results
        +
        aggregationFields - - names of the aggregation fields. If no aggregation is wanted, pass no (zero) field(s)
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/ElasticsearchClient.html b/javadoc/org/loklak/data/ElasticsearchClient.html new file mode 100644 index 0000000..72a42f7 --- /dev/null +++ b/javadoc/org/loklak/data/ElasticsearchClient.html @@ -0,0 +1,1291 @@ + + + + + +ElasticsearchClient + + + + + + + + + + + + +
+
org.loklak.data
+

Class ElasticsearchClient

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.ElasticsearchClient
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ElasticsearchClient
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ElasticsearchClient(Settings.Builder settings) +
      create a elasticsearch node client (embedded elasticsearch)
      +
      ElasticsearchClient(java.lang.String[] addresses, + java.lang.String clusterName) +
      create a elasticsearch transport client (remote elasticsearch)
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>classifierScore(java.lang.String index, + java.lang.String classifierName, + java.util.List<java.lang.String> classes) +
      Get all time aggregations without any geographical constraints.
      +
      java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>classifierScore(java.lang.String index, + java.lang.String classifierName, + java.util.List<java.lang.String> classes, + java.lang.String startDate, + java.lang.String endDate) +
      Get limited time aggregations without any geographical constraints.
      +
      java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>>classifierScoreForCountry(java.lang.String index, + java.lang.String classifierName, + java.util.List<java.lang.String> classes) +
      Get all time aggregation by country for all available countries.
      +
      java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>>classifierScoreForCountry(java.lang.String index, + java.lang.String classifierName, + java.util.List<java.lang.String> classes, + java.util.List<java.lang.String> countries) +
      Get all time aggregation by country for required countries.
      +
      java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>>classifierScoreForCountry(java.lang.String index, + java.lang.String classifierName, + java.util.List<java.lang.String> classes, + java.lang.String startDate, + java.lang.String endDate) +
      Get limited time aggregation by country code for all available countries.
      +
      java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>>classifierScoreForCountry(java.lang.String index, + java.lang.String classifierName, + java.util.List<java.lang.String> classes, + java.lang.String startDate, + java.lang.String endDate, + java.util.List<java.lang.String> countries) +
      Get limited time aggregation by country code for required countries.
      +
      voidclose() +
      Close the connection to the remote elasticsearch client.
      +
      booleanclusterReady() 
      java.lang.StringclusterStats() 
      longcount(QueryBuilder q, + java.lang.String indexName) +
      Get the number of documents in the search index for a given search query
      +
      longcount(java.lang.String indexName) +
      Get the number of documents in the search index
      +
      longcount(java.lang.String index, + java.lang.String histogram_timefield, + long millis) 
      longcountLocal(java.lang.String index, + java.lang.String provider_hash) 
      voidcreateIndexIfNotExists(java.lang.String indexName, + int shards, + int replicas) 
      booleandelete(java.lang.String indexName, + java.lang.String typeName, + java.lang.String id) +
      Delete a document for a given id.
      +
      intdeleteBulk(java.lang.String indexName, + java.util.Map<java.lang.String,java.lang.String> ids) +
      Delete a list of documents for a given set of ids + ATTENTION: read about the time-out of version number checking in the method above.
      +
      intdeleteByQuery(java.lang.String indexName, + QueryBuilder q) +
      Delete documents using a query.
      +
      booleanexist(java.lang.String indexName, + java.lang.String typeName, + java.lang.String id) +
      Get the document for a given id.
      +
      java.util.Set<java.lang.String>existBulk(java.lang.String indexName, + java.lang.String typeName, + java.util.Collection<java.lang.String> ids) 
      voidfinalize() +
      A finalize method is added to ensure that close() is always called.
      +
      java.util.LinkedHashMap<java.lang.String,java.lang.Long>fullDateHistogram(java.lang.String indexName, + int timezoneOffset, + java.lang.String histogram_timefield) 
      ResultList<java.util.Map<java.lang.String,java.lang.Object>>fuzzyquery(java.lang.String indexName, + java.lang.String fieldName, + java.lang.String q, + int resultCount, + java.lang.String sort_field, + java.lang.String default_sort_type, + SortOrder sort_order, + java.util.Date since, + java.util.Date until, + java.lang.String range_field) +
      Search the local message cache using a elasticsearch query.
      +
      ClusterStatsNodesgetClusterStatsNodes() 
      protected static java.util.Map<java.lang.String,java.lang.Object>getMap(GetResponse response) 
      ClusterStatsNodesgetStats() +
      Retrieve a statistic object from the connected elasticsearch cluster
      +
      java.lang.StringgetType(java.lang.String indexName, + java.lang.String id) +
      Get the type name of a document or null if the document does not exist.
      +
      java.util.Map<java.lang.String,java.lang.String>nodeSettings() 
      java.lang.StringpendingClusterTasks() 
      ElasticsearchClient.Queryquery(java.lang.String indexName, + QueryBuilder queryBuilder, + java.lang.String order_field, + int timezoneOffset, + int resultCount, + long histogram_interval, + java.lang.String histogram_timefield, + int aggregationLimit, + java.lang.String... aggregationFields) 
      java.util.List<java.util.Map<java.lang.String,java.lang.Object>>query(java.lang.String indexName, + java.lang.String q, + Operator operator, + int offset, + int count) +
      Query with a string and boundaries.
      +
      java.util.Map<java.lang.String,java.lang.Object>query(java.lang.String indexName, + java.lang.String field_name, + java.lang.String field_value) 
      java.util.List<java.util.Map<java.lang.String,java.lang.Object>>queryWithConstraints(java.lang.String indexName, + java.lang.String fieldName, + java.lang.String fieldValue, + java.util.Map<java.lang.String,java.lang.String> constraints, + boolean latest) 
      java.util.Map<java.lang.String,java.lang.Object>readMap(java.lang.String indexName, + java.lang.String id) +
      Read a json document from the search index for a given id.
      +
      byte[]readSource(java.lang.String indexName, + java.lang.String id) +
      Read a document from the search index for a given id.
      +
      voidsetMapping(java.lang.String indexName, + XContentBuilder mapping) 
      booleanwait_ready(long maxtimemillis, + ClusterHealthStatus status) 
      booleanwriteMap(java.lang.String indexName, + java.util.Map<java.lang.String,java.lang.Object> jsonMap, + java.lang.String typeName, + java.lang.String id) +
      Write a json document into the search index.
      +
      ElasticsearchClient.BulkWriteResultwriteMapBulk(java.lang.String indexName, + java.util.List<ElasticsearchClient.BulkEntry> jsonMapList) +
      bulk message write
      +
      IndexResponsewriteSource(java.lang.String indexName, + XContentBuilder json, + java.lang.String id, + java.lang.String typeName, + long version, + VersionType versionType) +
      Write a json document into the search index.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ElasticsearchClient

        +
        public ElasticsearchClient(java.lang.String[] addresses,
        +                           java.lang.String clusterName)
        +
        create a elasticsearch transport client (remote elasticsearch)
        +
        +
        Parameters:
        +
        addresses - an array of host:port addresses
        +
        clusterName -
        +
        +
      • +
      + + + +
        +
      • +

        ElasticsearchClient

        +
        public ElasticsearchClient(Settings.Builder settings)
        +
        create a elasticsearch node client (embedded elasticsearch)
        +
        +
        Parameters:
        +
        settings -
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getClusterStatsNodes

        +
        public ClusterStatsNodes getClusterStatsNodes()
        +
      • +
      + + + +
        +
      • +

        clusterReady

        +
        public boolean clusterReady()
        +
      • +
      + + + +
        +
      • +

        wait_ready

        +
        public boolean wait_ready(long maxtimemillis,
        +                          ClusterHealthStatus status)
        +
      • +
      + + + +
        +
      • +

        createIndexIfNotExists

        +
        public void createIndexIfNotExists(java.lang.String indexName,
        +                                   int shards,
        +                                   int replicas)
        +
      • +
      + + + +
        +
      • +

        setMapping

        +
        public void setMapping(java.lang.String indexName,
        +                       XContentBuilder mapping)
        +
      • +
      + + + +
        +
      • +

        pendingClusterTasks

        +
        public java.lang.String pendingClusterTasks()
        +
      • +
      + + + +
        +
      • +

        clusterStats

        +
        public java.lang.String clusterStats()
        +
      • +
      + + + +
        +
      • +

        nodeSettings

        +
        public java.util.Map<java.lang.String,java.lang.String> nodeSettings()
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
        Close the connection to the remote elasticsearch client. This should only be called when the application is + terminated. + Please avoid to open and close the ElasticsearchClient for the same cluster and index more than once. + To avoid that this method is called more than once, the elasticsearch_client object is set to null + as soon this was called the first time. This is needed because the finalize method calls this + method as well.
        +
      • +
      + + + +
        +
      • +

        finalize

        +
        public void finalize()
        +
        A finalize method is added to ensure that close() is always called.
        +
        +
        Overrides:
        +
        finalize in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        getStats

        +
        public ClusterStatsNodes getStats()
        +
        Retrieve a statistic object from the connected elasticsearch cluster
        +
        +
        Returns:
        +
        cluster stats from connected cluster
        +
        +
      • +
      + + + +
        +
      • +

        count

        +
        public long count(java.lang.String indexName)
        +
        Get the number of documents in the search index
        +
        +
        Returns:
        +
        the count of all documents in the index
        +
        +
      • +
      + + + +
        +
      • +

        count

        +
        public long count(QueryBuilder q,
        +                  java.lang.String indexName)
        +
        Get the number of documents in the search index for a given search query
        +
        +
        Parameters:
        +
        q - the query
        +
        Returns:
        +
        the count of all documents in the index which matches with the query
        +
        +
      • +
      + + + +
        +
      • +

        count

        +
        public long count(java.lang.String index,
        +                  java.lang.String histogram_timefield,
        +                  long millis)
        +
      • +
      + + + +
        +
      • +

        countLocal

        +
        public long countLocal(java.lang.String index,
        +                       java.lang.String provider_hash)
        +
      • +
      + + + +
        +
      • +

        exist

        +
        public boolean exist(java.lang.String indexName,
        +                     java.lang.String typeName,
        +                     java.lang.String id)
        +
        Get the document for a given id. If you don't know the typeName of the index, then it is not recommended + to use this method. You can set typeName to null and get the correct answer, but you still need the information + in which type the document was found if you want to call this API with the type afterwards. In such a case, + use the method getType() which returns null if the document does not exist and the type name if the document exist. + DO NOT USE THIS METHOD if you call getType anyway. I.e. replace a code like + if (exist(id()) { + String type = getType(id); + ... + } + with + String type = getType(id); + if (type != null) { + ... + }
        +
        +
        Parameters:
        +
        indexName - the name of the index
        +
        typeName - the type name, can be set to NULL for all types (see also: getType())
        +
        id - the unique identifier of a document
        +
        Returns:
        +
        the document, if it exists or null otherwise;
        +
        +
      • +
      + + + +
        +
      • +

        existBulk

        +
        public java.util.Set<java.lang.String> existBulk(java.lang.String indexName,
        +                                                 java.lang.String typeName,
        +                                                 java.util.Collection<java.lang.String> ids)
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType(java.lang.String indexName,
        +                                java.lang.String id)
        +
        Get the type name of a document or null if the document does not exist. + This is a replacement of the exist() method which does exactly the same as exist() + but is able to return the type name in case that exist is successful. + Please read the comment to exist() for details.
        +
        +
        Parameters:
        +
        indexName - the name of the index
        +
        id - the unique identifier of a document
        +
        Returns:
        +
        the type name of the document if it exists, null otherwise
        +
        +
      • +
      + + + +
        +
      • +

        delete

        +
        public boolean delete(java.lang.String indexName,
        +                      java.lang.String typeName,
        +                      java.lang.String id)
        +
        Delete a document for a given id. + ATTENTION: deleted documents cannot be re-inserted again if version number + checking is used and the new document does not comply to the version number + rule. The information which document was deleted persists for one minute and + then inserting documents with the same version number as before is possible. + To modify this behavior, change the configuration setting index.gc_deletes
        +
        +
        Parameters:
        +
        id - the unique identifier of a document
        +
        Returns:
        +
        true if the document existed and was deleted, false otherwise
        +
        +
      • +
      + + + +
        +
      • +

        deleteBulk

        +
        public int deleteBulk(java.lang.String indexName,
        +                      java.util.Map<java.lang.String,java.lang.String> ids)
        +
        Delete a list of documents for a given set of ids + ATTENTION: read about the time-out of version number checking in the method above.
        +
        +
        Parameters:
        +
        ids - a map from the unique identifier of a document to the document type
        +
        Returns:
        +
        the number of deleted documents
        +
        +
      • +
      + + + +
        +
      • +

        deleteByQuery

        +
        public int deleteByQuery(java.lang.String indexName,
        +                         QueryBuilder q)
        +
        Delete documents using a query. Check what would be deleted first with a normal search query! + Elasticsearch once provided a native prepareDeleteByQuery method, but this was removed + in later versions. Instead, there is a plugin which iterates over search results, + see https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html + We simulate the same behaviour here without the need of that plugin.
        +
        +
        Parameters:
        +
        q -
        +
        Returns:
        +
        delete document count
        +
        +
      • +
      + + + +
        +
      • +

        readSource

        +
        public byte[] readSource(java.lang.String indexName,
        +                         java.lang.String id)
        +
        Read a document from the search index for a given id. + This is the cheapest document retrieval from the '_source' field because + elasticsearch does not do any json transformation or parsing. We + get simply the text from the '_source' field. This might be useful to + make a dump from the index content.
        +
        +
        Parameters:
        +
        id - the unique identifier of a document
        +
        Returns:
        +
        the document as source text
        +
        +
      • +
      + + + +
        +
      • +

        readMap

        +
        public java.util.Map<java.lang.String,java.lang.Object> readMap(java.lang.String indexName,
        +                                                                java.lang.String id)
        +
        Read a json document from the search index for a given id. + Elasticsearch reads the '_source' field and parses the content as json.
        +
        +
        Parameters:
        +
        id - the unique identifier of a document
        +
        Returns:
        +
        the document as json, matched on a Map object instance
        +
        +
      • +
      + + + +
        +
      • +

        getMap

        +
        protected static java.util.Map<java.lang.String,java.lang.Object> getMap(GetResponse response)
        +
      • +
      + + + +
        +
      • +

        writeSource

        +
        public IndexResponse writeSource(java.lang.String indexName,
        +                                 XContentBuilder json,
        +                                 java.lang.String id,
        +                                 java.lang.String typeName,
        +                                 long version,
        +                                 VersionType versionType)
        +
        Write a json document into the search index. + Writing using a XContentBuilder is the most efficient way to add content to elasticsearch
        +
        +
        Parameters:
        +
        jsonMap - the json document to be indexed in elasticsearch
        +
        id - the unique identifier of a document
        +
        indexName - the name of the index
        +
        typeName - the type of the index
        +
        +
      • +
      + + + +
        +
      • +

        writeMap

        +
        public boolean writeMap(java.lang.String indexName,
        +                        java.util.Map<java.lang.String,java.lang.Object> jsonMap,
        +                        java.lang.String typeName,
        +                        java.lang.String id)
        +
        Write a json document into the search index. The id must be calculated by the calling environment. + This id should be unique for the json. The best way to calculate this id is, to use an existing + field from the jsonMap which contains a unique identifier for the jsonMap.
        +
        +
        Parameters:
        +
        indexName - the name of the index
        +
        jsonMap - the json document to be indexed in elasticsearch
        +
        typeName - the type of the index
        +
        id - the unique identifier of a document
        +
        Returns:
        +
        true if the document with given id did not exist before, false if it existed and was overwritten
        +
        +
      • +
      + + + +
        +
      • +

        writeMapBulk

        +
        public ElasticsearchClient.BulkWriteResult writeMapBulk(java.lang.String indexName,
        +                                                        java.util.List<ElasticsearchClient.BulkEntry> jsonMapList)
        +
        bulk message write
        +
        +
        Parameters:
        +
        jsonMapList - a list of json documents to be indexed
        +
        indexName - the name of the index
        +
        typeName - the type of the index
        +
        Returns:
        +
        a list with error messages. + The key is the id of the document, the value is an error string. + The method was only successful if this list is empty. + This must be a list, because keys may appear several times.
        +
        +
      • +
      + + + +
        +
      • +

        query

        +
        public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> query(java.lang.String indexName,
        +                                                                              java.lang.String q,
        +                                                                              Operator operator,
        +                                                                              int offset,
        +                                                                              int count)
        +
        Query with a string and boundaries. + The string is supposed to be something that the user types in without a technical syntax. + The mapping of the search terms into the index can be different according + to a search type. Please see + https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html. + A better way to do this would be the usage of a cursor. + See the delete method to find out how cursors work.
        +
        +
        Parameters:
        +
        q - a search query string
        +
        operator - either AND or OR, the default operator for the query tokens
        +
        offset - the first document number, 0 is the first one
        +
        count - the number of documents to be returned
        +
        Returns:
        +
        a list of json objects, mapped as Map for each json
        +
        +
      • +
      + + + +
        +
      • +

        query

        +
        public java.util.Map<java.lang.String,java.lang.Object> query(java.lang.String indexName,
        +                                                              java.lang.String field_name,
        +                                                              java.lang.String field_value)
        +
      • +
      + + + +
        +
      • +

        query

        +
        public ElasticsearchClient.Query query(java.lang.String indexName,
        +                                       QueryBuilder queryBuilder,
        +                                       java.lang.String order_field,
        +                                       int timezoneOffset,
        +                                       int resultCount,
        +                                       long histogram_interval,
        +                                       java.lang.String histogram_timefield,
        +                                       int aggregationLimit,
        +                                       java.lang.String... aggregationFields)
        +
      • +
      + + + +
        +
      • +

        fuzzyquery

        +
        public ResultList<java.util.Map<java.lang.String,java.lang.Object>> fuzzyquery(java.lang.String indexName,
        +                                                                               java.lang.String fieldName,
        +                                                                               java.lang.String q,
        +                                                                               int resultCount,
        +                                                                               java.lang.String sort_field,
        +                                                                               java.lang.String default_sort_type,
        +                                                                               SortOrder sort_order,
        +                                                                               java.util.Date since,
        +                                                                               java.util.Date until,
        +                                                                               java.lang.String range_field)
        +
        Search the local message cache using a elasticsearch query.
        +
        +
        Parameters:
        +
        q - - the query, can be empty for a matchall-query
        +
        resultCount - - the number of messages in the result
        +
        sort_field - - the field name to sort the result list, i.e. "query_first"
        +
        sort_order - - the sort order (you want to use SortOrder.DESC here)
        +
        +
      • +
      + + + +
        +
      • +

        queryWithConstraints

        +
        public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> queryWithConstraints(java.lang.String indexName,
        +                                                                                             java.lang.String fieldName,
        +                                                                                             java.lang.String fieldValue,
        +                                                                                             java.util.Map<java.lang.String,java.lang.String> constraints,
        +                                                                                             boolean latest)
        +                                                                                      throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        fullDateHistogram

        +
        public java.util.LinkedHashMap<java.lang.String,java.lang.Long> fullDateHistogram(java.lang.String indexName,
        +                                                                                  int timezoneOffset,
        +                                                                                  java.lang.String histogram_timefield)
        +
      • +
      + + + +
        +
      • +

        classifierScore

        +
        public final java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> classifierScore(java.lang.String index,
        +                                                                                                                      java.lang.String classifierName,
        +                                                                                                                      java.util.List<java.lang.String> classes)
        +
        Get all time aggregations without any geographical constraints.
        +
        +
        Parameters:
        +
        index - Name of ES index
        +
        classifierName - Classifier for aggregation
        +
        classes - Classes to consider
        +
        Returns:
        +
        HashMap with required aggregations
        +
        +
      • +
      + + + +
        +
      • +

        classifierScore

        +
        public final java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>> classifierScore(java.lang.String index,
        +                                                                                                                      java.lang.String classifierName,
        +                                                                                                                      java.util.List<java.lang.String> classes,
        +                                                                                                                      java.lang.String startDate,
        +                                                                                                                      java.lang.String endDate)
        +
        Get limited time aggregations without any geographical constraints.
        +
        +
        Parameters:
        +
        index - Name of ES index
        +
        classifierName - Classifier for aggregation
        +
        classes - Classes to consider
        +
        startDate - Start date for creation of row
        +
        endDate - End date for creation of row
        +
        Returns:
        +
        HashMap with required aggregations
        +
        +
      • +
      + + + +
        +
      • +

        classifierScoreForCountry

        +
        public final java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>> classifierScoreForCountry(java.lang.String index,
        +                                                                                                                                                                    java.lang.String classifierName,
        +                                                                                                                                                                    java.util.List<java.lang.String> classes,
        +                                                                                                                                                                    java.lang.String startDate,
        +                                                                                                                                                                    java.lang.String endDate)
        +
        Get limited time aggregation by country code for all available countries.
        +
        +
        Parameters:
        +
        index - Name of ES index
        +
        classifierName - Name of classifier
        +
        classes - Classes to consider
        +
        startDate - Start date for creation of row
        +
        endDate - End date for creation of row
        +
        Returns:
        +
        HashMap with required aggregations
        +
        +
      • +
      + + + +
        +
      • +

        classifierScoreForCountry

        +
        public final java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>> classifierScoreForCountry(java.lang.String index,
        +                                                                                                                                                                    java.lang.String classifierName,
        +                                                                                                                                                                    java.util.List<java.lang.String> classes,
        +                                                                                                                                                                    java.lang.String startDate,
        +                                                                                                                                                                    java.lang.String endDate,
        +                                                                                                                                                                    java.util.List<java.lang.String> countries)
        +
        Get limited time aggregation by country code for required countries.
        +
        +
        Parameters:
        +
        index - Name of ES index
        +
        classifierName - Name of classifier
        +
        classes - Classes to consider
        +
        startDate - Start date for creation of row
        +
        endDate - End date for creation of row
        +
        countries - Country codes to consider
        +
        Returns:
        +
        HashMap with required aggregations
        +
        +
      • +
      + + + +
        +
      • +

        classifierScoreForCountry

        +
        public final java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>> classifierScoreForCountry(java.lang.String index,
        +                                                                                                                                                                    java.lang.String classifierName,
        +                                                                                                                                                                    java.util.List<java.lang.String> classes)
        +
        Get all time aggregation by country for all available countries.
        +
        +
        Parameters:
        +
        index - Name of ES index
        +
        classifierName - Name of classifier
        +
        classes - Classes to consider
        +
        Returns:
        +
        HashMap with required aggregations
        +
        +
      • +
      + + + +
        +
      • +

        classifierScoreForCountry

        +
        public final java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Double>>> classifierScoreForCountry(java.lang.String index,
        +                                                                                                                                                                    java.lang.String classifierName,
        +                                                                                                                                                                    java.util.List<java.lang.String> classes,
        +                                                                                                                                                                    java.util.List<java.lang.String> countries)
        +
        Get all time aggregation by country for required countries.
        +
        +
        Parameters:
        +
        index - Name of ES index
        +
        classifierName - Name of classifier
        +
        classes - Classes to consider
        +
        countries - Countiries to consider
        +
        Returns:
        +
        HashMap with required aggregations
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/ImportProfileFactory.html b/javadoc/org/loklak/data/ImportProfileFactory.html new file mode 100644 index 0000000..0768187 --- /dev/null +++ b/javadoc/org/loklak/data/ImportProfileFactory.html @@ -0,0 +1,321 @@ + + + + + +ImportProfileFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Class ImportProfileFactory

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/IncomingMessageBuffer.html b/javadoc/org/loklak/data/IncomingMessageBuffer.html new file mode 100644 index 0000000..a20a587 --- /dev/null +++ b/javadoc/org/loklak/data/IncomingMessageBuffer.html @@ -0,0 +1,447 @@ + + + + + +IncomingMessageBuffer + + + + + + + + + + + + +
+
org.loklak.data
+

Class IncomingMessageBuffer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Thread
    • +
    • +
        +
      • org.loklak.data.IncomingMessageBuffer
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class IncomingMessageBuffer
    +extends java.lang.Thread
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        +java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        +MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidaddScheduler(Timeline tl, + boolean dump) 
      static voidaddScheduler(TwitterScraper.TwitterTweet t, + UserEntry u, + boolean dump) 
      static booleanaddSchedulerAvailable() 
      static intgetMessageQueueClients() 
      static intgetMessageQueueMaxSize() 
      static intgetMessageQueueSize() 
      booleanisBusy() 
      TwitterScraper.TwitterTweetreadMessage(java.lang.String id) 
      voidrun() 
      voidshutdown() +
      ask the thread to shut down
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        +activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IncomingMessageBuffer

        +
        public IncomingMessageBuffer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMessageQueueSize

        +
        public static int getMessageQueueSize()
        +
      • +
      + + + +
        +
      • +

        getMessageQueueMaxSize

        +
        public static int getMessageQueueMaxSize()
        +
      • +
      + + + +
        +
      • +

        getMessageQueueClients

        +
        public static int getMessageQueueClients()
        +
      • +
      + + + + + + + +
        +
      • +

        shutdown

        +
        public void shutdown()
        +
        ask the thread to shut down
        +
      • +
      + + + +
        +
      • +

        isBusy

        +
        public boolean isBusy()
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Overrides:
        +
        run in class java.lang.Thread
        +
        +
      • +
      + + + +
        +
      • +

        addScheduler

        +
        public static void addScheduler(Timeline tl,
        +                                boolean dump)
        +
      • +
      + + + + + + + +
        +
      • +

        addSchedulerAvailable

        +
        public static boolean addSchedulerAvailable()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/IndexEntry.html b/javadoc/org/loklak/data/IndexEntry.html new file mode 100644 index 0000000..a73b7f8 --- /dev/null +++ b/javadoc/org/loklak/data/IndexEntry.html @@ -0,0 +1,301 @@ + + + + + +IndexEntry + + + + + + + + + + + + +
+
org.loklak.data
+

Class IndexEntry<IndexObject extends ObjectEntry>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.IndexEntry<IndexObject>
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class IndexEntry<IndexObject extends ObjectEntry>
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getId

        +
        public java.lang.String getId()
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/IndexFactory.html b/javadoc/org/loklak/data/IndexFactory.html new file mode 100644 index 0000000..63efe9b --- /dev/null +++ b/javadoc/org/loklak/data/IndexFactory.html @@ -0,0 +1,344 @@ + + + + + +IndexFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Interface IndexFactory<Entry extends ObjectEntry>

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        Entry init(JSONObject json)
        +    throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        exists

        +
        boolean exists(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        existsCache

        +
        boolean existsCache(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        existsBulk

        +
        java.util.Set<java.lang.String> existsBulk(java.util.Collection<java.lang.String> ids)
        +
      • +
      + + + +
        +
      • +

        delete

        +
        boolean delete(java.lang.String id,
        +               SourceType sourceType)
        +
      • +
      + + + +
        +
      • +

        readJSON

        +
        JSONObject readJSON(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        writeEntry

        +
        boolean writeEntry(IndexEntry<Entry> entry)
        +            throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + + + + + +
        +
      • +

        close

        +
        void close()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/Insertable.html b/javadoc/org/loklak/data/Insertable.html new file mode 100644 index 0000000..28cd11e --- /dev/null +++ b/javadoc/org/loklak/data/Insertable.html @@ -0,0 +1,275 @@ + + + + + +Insertable + + + + + + + + + + + + +
+
org.loklak.data
+

Interface Insertable

+
+
+
+
    +
  • +
    +
    +
    public interface Insertable
    +
    This is the interface that allow you to store data in elasticseach index + This is a lower level implemention of DAOWrapper. DAOWrapper may be a better solution if you don't care how we store data in elasticsearch index + + However, this one is apparently more flexible
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getText

        +
        java.lang.String getText()
        +
      • +
      + + + +
        +
      • +

        getUsername

        +
        java.lang.String getUsername()
        +
      • +
      + + + +
        +
      • +

        getUserID

        +
        java.lang.String getUserID()
        +
      • +
      + + + +
        +
      • +

        getDomain

        +
        java.lang.String getDomain()
        +
      • +
      + + + +
        +
      • +

        getExtraField

        +
        java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> getExtraField()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/MessageFactory.html b/javadoc/org/loklak/data/MessageFactory.html new file mode 100644 index 0000000..8718a00 --- /dev/null +++ b/javadoc/org/loklak/data/MessageFactory.html @@ -0,0 +1,318 @@ + + + + + +MessageFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Class MessageFactory

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/OutgoingMessageBuffer.html b/javadoc/org/loklak/data/OutgoingMessageBuffer.html new file mode 100644 index 0000000..77bd510 --- /dev/null +++ b/javadoc/org/loklak/data/OutgoingMessageBuffer.html @@ -0,0 +1,326 @@ + + + + + +OutgoingMessageBuffer + + + + + + + + + + + + +
+
org.loklak.data
+

Class OutgoingMessageBuffer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.data.OutgoingMessageBuffer
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class OutgoingMessageBuffer
    +extends java.lang.Object
    +
    Buffer for outgoing messages which must be pushed to the index with a scheduler
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OutgoingMessageBuffer

        +
        public OutgoingMessageBuffer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        transmitTimelineToBackend

        +
        public void transmitTimelineToBackend(Timeline tl)
        +
      • +
      + + + + + + + +
        +
      • +

        takeTimelineMin

        +
        public Timeline takeTimelineMin(Timeline.Order order,
        +                                int minsize,
        +                                int maxsize)
        +
        if the given list of timelines contain at least the wanted minimum size of messages, they are flushed from the queue + and combined into a new timeline
        +
        +
        Parameters:
        +
        order -
        +
        minsize -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        timelineSize

        +
        public int timelineSize()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/QueryFactory.html b/javadoc/org/loklak/data/QueryFactory.html new file mode 100644 index 0000000..08d2574 --- /dev/null +++ b/javadoc/org/loklak/data/QueryFactory.html @@ -0,0 +1,318 @@ + + + + + +QueryFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Class QueryFactory

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/UserFactory.html b/javadoc/org/loklak/data/UserFactory.html new file mode 100644 index 0000000..c8e038e --- /dev/null +++ b/javadoc/org/loklak/data/UserFactory.html @@ -0,0 +1,318 @@ + + + + + +UserFactory + + + + + + + + + + + + +
+
org.loklak.data
+

Class UserFactory

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/data/package-frame.html b/javadoc/org/loklak/data/package-frame.html new file mode 100644 index 0000000..c75b0e6 --- /dev/null +++ b/javadoc/org/loklak/data/package-frame.html @@ -0,0 +1,51 @@ + + + + + +org.loklak.data + + + + + +

org.loklak.data

+ + + diff --git a/javadoc/org/loklak/data/package-summary.html b/javadoc/org/loklak/data/package-summary.html new file mode 100644 index 0000000..5926ff3 --- /dev/null +++ b/javadoc/org/loklak/data/package-summary.html @@ -0,0 +1,289 @@ + + + + + +org.loklak.data + + + + + + + + + + + +
+

Package org.loklak.data

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/data/package-tree.html b/javadoc/org/loklak/data/package-tree.html new file mode 100644 index 0000000..965bf17 --- /dev/null +++ b/javadoc/org/loklak/data/package-tree.html @@ -0,0 +1,183 @@ + + + + + +org.loklak.data Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.data

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/geo/AbstractGeoPoint.html b/javadoc/org/loklak/geo/AbstractGeoPoint.html new file mode 100644 index 0000000..96fb6fe --- /dev/null +++ b/javadoc/org/loklak/geo/AbstractGeoPoint.html @@ -0,0 +1,332 @@ + + + + + +AbstractGeoPoint + + + + + + + + + + + + +
+
org.loklak.geo
+

Class AbstractGeoPoint

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.AbstractGeoPoint
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GeoPoint
    +
    +
    +
    Direct Known Subclasses:
    +
    IntegerGeoPoint
    +
    +
    +
    +
    public abstract class AbstractGeoPoint
    +extends java.lang.Object
    +implements GeoPoint
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AbstractGeoPoint() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractGeoPoint

        +
        public AbstractGeoPoint()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        distance

        +
        public double distance(GeoPoint othr)
        +
        compute the distance between two points using the Haversine Algorithm + https://en.wikipedia.org/wiki/Haversine_formula
        +
        +
        Specified by:
        +
        distance in interface GeoPoint
        +
        Parameters:
        +
        othr - the other point
        +
        Returns:
        +
        the distance of this point and the other point in meter
        +
        +
      • +
      + + + +
        +
      • +

        distance

        +
        public static double distance(double lat1,
        +                              double lon1,
        +                              double lat2,
        +                              double lon2)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoJsonReader.Feature.html b/javadoc/org/loklak/geo/GeoJsonReader.Feature.html new file mode 100644 index 0000000..cde97ab --- /dev/null +++ b/javadoc/org/loklak/geo/GeoJsonReader.Feature.html @@ -0,0 +1,369 @@ + + + + + +GeoJsonReader.Feature + + + + + + + + + + + + +
+
org.loklak.geo
+

Class GeoJsonReader.Feature

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.GeoJsonReader.Feature
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    GeoJsonReader
    +
    +
    +
    +
    public static class GeoJsonReader.Feature
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.lang.Stringfeature_type 
      java.lang.Stringgeometry_type 
      java.lang.Stringid 
      java.util.Map<java.lang.String,java.lang.String>properties 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Feature() 
      Feature(JsonParser parser) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        public java.lang.String id
        +
      • +
      + + + +
        +
      • +

        feature_type

        +
        public java.lang.String feature_type
        +
      • +
      + + + +
        +
      • +

        geometry_type

        +
        public java.lang.String geometry_type
        +
      • +
      + + + +
        +
      • +

        properties

        +
        public java.util.Map<java.lang.String,java.lang.String> properties
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Feature

        +
        public Feature()
        +
      • +
      + + + +
        +
      • +

        Feature

        +
        public Feature(JsonParser parser)
        +        throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoJsonReader.html b/javadoc/org/loklak/geo/GeoJsonReader.html new file mode 100644 index 0000000..76eb34b --- /dev/null +++ b/javadoc/org/loklak/geo/GeoJsonReader.html @@ -0,0 +1,376 @@ + + + + + +GeoJsonReader + + + + + + + + + + + + +
+
org.loklak.geo
+

Class GeoJsonReader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.GeoJsonReader
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class GeoJsonReader
    +extends java.lang.Object
    +implements java.lang.Runnable
    +
    High-efficient GeoJson parser (high-efficient because it is able to handle very large input files, much larger than + the main memory can hold (i.e. terabytes) using a stream parser within a multi-core environment. Parsed feature records + can be processed concurrently while the parser is stream-reading them.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class GeoJsonReader.Feature 
      +
    • +
    + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GeoJsonReader(java.io.InputStream is, + int concurrency) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeoJsonReader

        +
        public GeoJsonReader(java.io.InputStream is,
        +                     int concurrency)
        +              throws JsonParseException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        JsonParseException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      + + + +
        +
      • +

        take

        +
        public GeoJsonReader.Feature take()
        +                           throws java.lang.InterruptedException
        +
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoLocation.html b/javadoc/org/loklak/geo/GeoLocation.html new file mode 100644 index 0000000..ac15d9d --- /dev/null +++ b/javadoc/org/loklak/geo/GeoLocation.html @@ -0,0 +1,482 @@ + + + + + +GeoLocation + + + + + + + + + + + + +
+
org.loklak.geo
+

Class GeoLocation

+
+
+ +
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GeoLocation(double lat, + double lon, + java.util.Collection<java.lang.String> names, + java.lang.String iso3166cc) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcompare(GeoLocation o1, + GeoLocation o2) 
      intcompareTo(GeoLocation o) +
      comparator that is needed to use the object inside TreeMap/TreeSet + a Location is smaller than another if it has a _greater_ population + this order is used to get sorted lists of locations where the first elements + have the greatest population
      +
      static intdegreeToKm(double degree) 
      booleanequals(java.lang.Object loc) +
      equality test that is needed to use the class inside HashMap/HashSet
      +
      java.lang.StringgetISO3166cc() 
      java.util.Collection<java.lang.String>getNames() 
      longgetPopulation() 
      voidsetPopulation(long population2) 
      java.lang.StringtoString() +
      printout format of the point
      +
      + + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeoLocation

        +
        public GeoLocation(double lat,
        +                   double lon,
        +                   java.util.Collection<java.lang.String> names,
        +                   java.lang.String iso3166cc)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNames

        +
        public java.util.Collection<java.lang.String> getNames()
        +
      • +
      + + + +
        +
      • +

        getISO3166cc

        +
        public java.lang.String getISO3166cc()
        +
      • +
      + + + +
        +
      • +

        setPopulation

        +
        public void setPopulation(long population2)
        +
      • +
      + + + +
        +
      • +

        getPopulation

        +
        public long getPopulation()
        +
      • +
      + + + + + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object loc)
        +
        Description copied from class: IntegerGeoPoint
        +
        equality test that is needed to use the class inside HashMap/HashSet
        +
        +
        Specified by:
        +
        equals in interface java.util.Comparator<GeoLocation>
        +
        Specified by:
        +
        equals in interface GeoPoint
        +
        Overrides:
        +
        equals in class IntegerGeoPoint
        +
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(GeoLocation o)
        +
        comparator that is needed to use the object inside TreeMap/TreeSet + a Location is smaller than another if it has a _greater_ population + this order is used to get sorted lists of locations where the first elements + have the greatest population
        +
        +
        Specified by:
        +
        compareTo in interface java.lang.Comparable<GeoLocation>
        +
        +
      • +
      + + + + + + + +
        +
      • +

        degreeToKm

        +
        public static int degreeToKm(double degree)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoMark.html b/javadoc/org/loklak/geo/GeoMark.html new file mode 100644 index 0000000..b4d3703 --- /dev/null +++ b/javadoc/org/loklak/geo/GeoMark.html @@ -0,0 +1,383 @@ + + + + + +GeoMark + + + + + + + + + + + + +
+
org.loklak.geo
+

Class GeoMark

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeoMark

        +
        public GeoMark(GeoLocation loc,
        +               double mlat,
        +               double mlon)
        +
      • +
      + + + +
        +
      • +

        GeoMark

        +
        public GeoMark(GeoLocation loc,
        +               java.lang.String salt)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mlon

        +
        public double mlon()
        +
      • +
      + + + +
        +
      • +

        mlat

        +
        public double mlat()
        +
      • +
      + + + +
        +
      • +

        toJSON

        +
        public JSONObject toJSON(boolean minified)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoNames.CountryBounds.html b/javadoc/org/loklak/geo/GeoNames.CountryBounds.html new file mode 100644 index 0000000..f9b74bf --- /dev/null +++ b/javadoc/org/loklak/geo/GeoNames.CountryBounds.html @@ -0,0 +1,348 @@ + + + + + +GeoNames.CountryBounds + + + + + + + + + + + + +
+
org.loklak.geo
+

Class GeoNames.CountryBounds

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.GeoNames.CountryBounds
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    GeoNames
    +
    +
    +
    +
    public static class GeoNames.CountryBounds
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CountryBounds() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidextend(GeoLocation loc) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        lon_west

        +
        public double lon_west
        +
      • +
      + + + +
        +
      • +

        lon_east

        +
        public double lon_east
        +
      • +
      + + + +
        +
      • +

        lat_north

        +
        public double lat_north
        +
      • +
      + + + +
        +
      • +

        lat_south

        +
        public double lat_south
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CountryBounds

        +
        public CountryBounds()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoNames.html b/javadoc/org/loklak/geo/GeoNames.html new file mode 100644 index 0000000..e709048 --- /dev/null +++ b/javadoc/org/loklak/geo/GeoNames.html @@ -0,0 +1,520 @@ + + + + + +GeoNames + + + + + + + + + + + + +
+
org.loklak.geo
+

Class GeoNames

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.GeoNames
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class GeoNames
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class GeoNames.CountryBounds 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GeoNames(java.io.File cities1000_zip, + java.io.File iso3166json, + long minPopulation) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      GeoMarkanalyse(java.lang.String text, + java.lang.String[] tags, + int maxlength, + java.lang.String salt) +
      Analyse a text for the presence of a location name
      +
      java.util.List<GeoLocation>citiesInBB(double lon_west, + double lat_south, + double lon_east, + double lat_north) 
      GeoMarkcityNear(double lat, + double lon) +
      try to find a place close to the given location
      +
      double[]getCountryCenter(java.lang.String cc) 
      java.lang.StringgetCountryName(java.lang.String iso3166cc) 
      GeoLocationgetLargestCity(double lon_west, + double lat_south, + double lon_east, + double lat_north) 
      static voidmain(java.lang.String[] args) 
      static java.util.LinkedHashMap<java.lang.Integer,java.lang.String>mix(java.util.ArrayList<java.util.Map.Entry<java.lang.String,java.lang.String>> text, + int maxlength) +
      Create sequences of words from a word token list.
      +
      static java.util.LinkedHashMap<java.lang.Integer,java.lang.String>nomix(java.lang.String[] tags) +
      Helper function which generates the same result as the mix method using a list of single-word tags.
      +
      static java.lang.Stringnormalize(java.lang.String text) 
      static java.util.ArrayList<java.util.Map.Entry<java.lang.String,java.lang.String>>split(java.lang.String text) +
      Split the text into word tokens.
      +
      java.util.LinkedHashSet<java.lang.String>suggest(java.lang.String q, + int count, + int distance) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GeoNames

        +
        public GeoNames(java.io.File cities1000_zip,
        +                java.io.File iso3166json,
        +                long minPopulation)
        +         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCountryName

        +
        public java.lang.String getCountryName(java.lang.String iso3166cc)
        +
      • +
      + + + +
        +
      • +

        analyse

        +
        public GeoMark analyse(java.lang.String text,
        +                       java.lang.String[] tags,
        +                       int maxlength,
        +                       java.lang.String salt)
        +
        Analyse a text for the presence of a location name
        +
        +
        Parameters:
        +
        text - to be analyzed
        +
        tags - which could be location names (in favor of texts in the text string)
        +
        maxlength - the maximum number of words in the text that are tried to be combined to a location name
        +
        salt - a salt which is used for fuzzyness of the mark location
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        cityNear

        +
        public GeoMark cityNear(double lat,
        +                        double lon)
        +
        try to find a place close to the given location
        +
        +
        Parameters:
        +
        lat -
        +
        lon -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        citiesInBB

        +
        public java.util.List<GeoLocation> citiesInBB(double lon_west,
        +                                              double lat_south,
        +                                              double lon_east,
        +                                              double lat_north)
        +
      • +
      + + + +
        +
      • +

        getLargestCity

        +
        public GeoLocation getLargestCity(double lon_west,
        +                                  double lat_south,
        +                                  double lon_east,
        +                                  double lat_north)
        +
      • +
      + + + +
        +
      • +

        nomix

        +
        public static java.util.LinkedHashMap<java.lang.Integer,java.lang.String> nomix(java.lang.String[] tags)
        +
        Helper function which generates the same result as the mix method using a list of single-word tags. + Because these words are not sorted in any way the creation of the mix result is much easier.
        +
        +
        Parameters:
        +
        tags -
        +
        Returns:
        +
        a hastable where the key is the hash code of the lowercase of the tags and the value is the original tag
        +
        +
      • +
      + + + +
        +
      • +

        mix

        +
        public static java.util.LinkedHashMap<java.lang.Integer,java.lang.String> mix(java.util.ArrayList<java.util.Map.Entry<java.lang.String,java.lang.String>> text,
        +                                                                              int maxlength)
        +
        Create sequences of words from a word token list. The sequence has also normalized (lowercased) names and original Text. + The creates sequences is a full set of all sequence combinations which are possible from the given tokens. + The text sequences are then reverse-sorted by the length of the combines text sequence. The result is a hashtable + where the key is the hash of the lowercase text sequence and the value is the original text without lowercase. + This allows a rapid matching with stored word sequences using the hash of the sequence
        +
        +
        Parameters:
        +
        text -
        +
        maxlength - the maximum sequence length, counts number of words
        +
        Returns:
        +
        an ordered hashtable where the order is the reverse length of the sequence, the key is the hash of the lowercase string sequence and the value is the original word sequence
        +
        +
      • +
      + + + +
        +
      • +

        split

        +
        public static java.util.ArrayList<java.util.Map.Entry<java.lang.String,java.lang.String>> split(java.lang.String text)
        +
        Split the text into word tokens. The tokens are lower-cased. To maintain the original spelling + of the word without lowercasing them, the original word is attached too.
        +
        +
        Parameters:
        +
        text -
        +
        Returns:
        +
        a List of Map.Entry objects where the key is the lower-cased word token and the value is the original word
        +
        +
      • +
      + + + +
        +
      • +

        suggest

        +
        public java.util.LinkedHashSet<java.lang.String> suggest(java.lang.String q,
        +                                                         int count,
        +                                                         int distance)
        +
      • +
      + + + +
        +
      • +

        normalize

        +
        public static java.lang.String normalize(java.lang.String text)
        +
      • +
      + + + +
        +
      • +

        getCountryCenter

        +
        public double[] getCountryCenter(java.lang.String cc)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/GeoPoint.html b/javadoc/org/loklak/geo/GeoPoint.html new file mode 100644 index 0000000..bb05e2b --- /dev/null +++ b/javadoc/org/loklak/geo/GeoPoint.html @@ -0,0 +1,416 @@ + + + + + +GeoPoint + + + + + + + + + + + + +
+
org.loklak.geo
+

Interface GeoPoint

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    AbstractGeoPoint, GeoLocation, GeoMark, IntegerGeoPoint
    +
    +
    +
    +
    public interface GeoPoint
    +
    Geolocation storage may vary using different data structures for the points. + The reason to have different implementation is to save memory for the point storage. + With each version of a point storage comes a accuracy level which can be returned by the object.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static doublemeter 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      doubleaccuracyLat() +
      get the implementation-dependent accuracy of the latitude
      +
      doubleaccuracyLon() +
      get the implementation-dependent accuracy of the longitude
      +
      doubledistance(GeoPoint othr) +
      compute the distance between two points using the Haversine Algorithm + https://en.wikipedia.org/wiki/Haversine_formula
      +
      booleanequals(java.lang.Object o) +
      equality test that is needed to use the class inside HashMap/HashSet
      +
      inthashCode() +
      compute the hash code of a coordinate + this produces identical hash codes for locations that are close to each other
      +
      doublelat() +
      get the latitude of the point
      +
      doublelon() +
      get the longitude of the point
      +
      java.lang.StringtoString() +
      printout format of the point
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        lat

        +
        double lat()
        +
        get the latitude of the point
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        lon

        +
        double lon()
        +
        get the longitude of the point
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        accuracyLat

        +
        double accuracyLat()
        +
        get the implementation-dependent accuracy of the latitude
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        accuracyLon

        +
        double accuracyLon()
        +
        get the implementation-dependent accuracy of the longitude
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        int hashCode()
        +
        compute the hash code of a coordinate + this produces identical hash codes for locations that are close to each other
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        boolean equals(java.lang.Object o)
        +
        equality test that is needed to use the class inside HashMap/HashSet
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        distance

        +
        double distance(GeoPoint othr)
        +
        compute the distance between two points using the Haversine Algorithm + https://en.wikipedia.org/wiki/Haversine_formula
        +
        +
        Parameters:
        +
        othr - the other point
        +
        Returns:
        +
        the distance of this point and the other point in meter
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        java.lang.String toString()
        +
        printout format of the point
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        Returns:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/IntegerGeoPoint.html b/javadoc/org/loklak/geo/IntegerGeoPoint.html new file mode 100644 index 0000000..c8855c8 --- /dev/null +++ b/javadoc/org/loklak/geo/IntegerGeoPoint.html @@ -0,0 +1,484 @@ + + + + + +IntegerGeoPoint + + + + + + + + + + + + +
+
org.loklak.geo
+

Class IntegerGeoPoint

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    GeoPoint
    +
    +
    +
    Direct Known Subclasses:
    +
    GeoLocation
    +
    +
    +
    +
    public class IntegerGeoPoint
    +extends AbstractGeoPoint
    +implements GeoPoint
    +
    GeoPoint implementation with Integer accuracy
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      IntegerGeoPoint(double lat, + double lon) 
      IntegerGeoPoint(int lat, + int lon) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      doubleaccuracyLat() +
      get the implementation-dependent accuracy of the latitude
      +
      doubleaccuracyLon() +
      get the implementation-dependent accuracy of the longitude
      +
      booleanequals(java.lang.Object o) +
      equality test that is needed to use the class inside HashMap/HashSet
      +
      inthashCode() +
      compute the hash code of a coordinate + this produces identical hash codes for locations that are close to each other
      +
      doublelat() +
      get the latitude of the point
      +
      doublelon() +
      get the longitude of the point
      +
      static voidmain(java.lang.String[] args) 
      java.lang.StringtoString() +
      printout format of the point
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerGeoPoint

        +
        public IntegerGeoPoint(double lat,
        +                       double lon)
        +
      • +
      + + + +
        +
      • +

        IntegerGeoPoint

        +
        public IntegerGeoPoint(int lat,
        +                       int lon)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        lat

        +
        public double lat()
        +
        Description copied from interface: GeoPoint
        +
        get the latitude of the point
        +
        +
        Specified by:
        +
        lat in interface GeoPoint
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        lon

        +
        public double lon()
        +
        Description copied from interface: GeoPoint
        +
        get the longitude of the point
        +
        +
        Specified by:
        +
        lon in interface GeoPoint
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        accuracyLat

        +
        public double accuracyLat()
        +
        get the implementation-dependent accuracy of the latitude
        +
        +
        Specified by:
        +
        accuracyLat in interface GeoPoint
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        accuracyLon

        +
        public double accuracyLon()
        +
        get the implementation-dependent accuracy of the longitude
        +
        +
        Specified by:
        +
        accuracyLon in interface GeoPoint
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        compute the hash code of a coordinate + this produces identical hash codes for locations that are close to each other
        +
        +
        Specified by:
        +
        hashCode in interface GeoPoint
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        equality test that is needed to use the class inside HashMap/HashSet
        +
        +
        Specified by:
        +
        equals in interface GeoPoint
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Description copied from interface: GeoPoint
        +
        printout format of the point
        +
        +
        Specified by:
        +
        toString in interface GeoPoint
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/LocationSource.html b/javadoc/org/loklak/geo/LocationSource.html new file mode 100644 index 0000000..c824c18 --- /dev/null +++ b/javadoc/org/loklak/geo/LocationSource.html @@ -0,0 +1,363 @@ + + + + + +LocationSource + + + + + + + + + + + + +
+
org.loklak.geo
+

Enum LocationSource

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<LocationSource>
    • +
    • +
        +
      • org.loklak.geo.LocationSource
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<LocationSource>
    +
    +
    +
    +
    public enum LocationSource
    +extends java.lang.Enum<LocationSource>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      ANNOTATION 
      PLACE 
      REPORT 
      USER 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static LocationSourcevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static LocationSource[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static LocationSource[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (LocationSource c : LocationSource.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static LocationSource valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/OSMTile.TileCoordinates.html b/javadoc/org/loklak/geo/OSMTile.TileCoordinates.html new file mode 100644 index 0000000..8bd9ee8 --- /dev/null +++ b/javadoc/org/loklak/geo/OSMTile.TileCoordinates.html @@ -0,0 +1,420 @@ + + + + + +OSMTile.TileCoordinates + + + + + + + + + + + + +
+
org.loklak.geo
+

Class OSMTile.TileCoordinates

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.OSMTile.TileCoordinates
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    OSMTile
    +
    +
    +
    +
    public static class OSMTile.TileCoordinates
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      TileCoordinates(double lat_deg, + double lon_deg, + int zoom) 
      TileCoordinates(int xtile, + int ytile, + int zoom) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Stringurl(int retry) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        xtile

        +
        public int xtile
        +
      • +
      + + + +
        +
      • +

        ytile

        +
        public int ytile
        +
      • +
      + + + +
        +
      • +

        zoom

        +
        public int zoom
        +
      • +
      + + + +
        +
      • +

        n

        +
        public int n
        +
      • +
      + + + +
        +
      • +

        north_lat

        +
        public double north_lat
        +
      • +
      + + + +
        +
      • +

        south_lat

        +
        public double south_lat
        +
      • +
      + + + +
        +
      • +

        east_lon

        +
        public double east_lon
        +
      • +
      + + + +
        +
      • +

        west_lon

        +
        public double west_lon
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TileCoordinates

        +
        public TileCoordinates(double lat_deg,
        +                       double lon_deg,
        +                       int zoom)
        +
      • +
      + + + +
        +
      • +

        TileCoordinates

        +
        public TileCoordinates(int xtile,
        +                       int ytile,
        +                       int zoom)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        url

        +
        public java.lang.String url(int retry)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/OSMTile.html b/javadoc/org/loklak/geo/OSMTile.html new file mode 100644 index 0000000..190933b --- /dev/null +++ b/javadoc/org/loklak/geo/OSMTile.html @@ -0,0 +1,321 @@ + + + + + +OSMTile + + + + + + + + + + + + +
+
org.loklak.geo
+

Class OSMTile

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.geo.OSMTile
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class OSMTile
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class OSMTile.TileCoordinates 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      OSMTile() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OSMTile

        +
        public OSMTile()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCombinedTiles

        +
        public static RasterPlotter getCombinedTiles(OSMTile.TileCoordinates t,
        +                                             int width,
        +                                             int height)
        +
        generate a image according to a given coordinate of a middle tile + and a width and height of tile numbers. The tile number width and height must + always be impair since the given tile must be always in the middle
        +
        +
        Parameters:
        +
        t - the middle tile
        +
        width - number of tiles
        +
        height - number of tiles
        +
        Returns:
        +
        the image
        +
        +
      • +
      + + + +
        +
      • +

        getSingleTile

        +
        public static java.awt.image.BufferedImage getSingleTile(OSMTile.TileCoordinates tile,
        +                                                         int retry)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/geo/package-frame.html b/javadoc/org/loklak/geo/package-frame.html new file mode 100644 index 0000000..40e99bf --- /dev/null +++ b/javadoc/org/loklak/geo/package-frame.html @@ -0,0 +1,37 @@ + + + + + +org.loklak.geo + + + + + +

org.loklak.geo

+ + + diff --git a/javadoc/org/loklak/geo/package-summary.html b/javadoc/org/loklak/geo/package-summary.html new file mode 100644 index 0000000..49e291f --- /dev/null +++ b/javadoc/org/loklak/geo/package-summary.html @@ -0,0 +1,213 @@ + + + + + +org.loklak.geo + + + + + + + + + + + +
+

Package org.loklak.geo

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/geo/package-tree.html b/javadoc/org/loklak/geo/package-tree.html new file mode 100644 index 0000000..567eee3 --- /dev/null +++ b/javadoc/org/loklak/geo/package-tree.html @@ -0,0 +1,169 @@ + + + + + +org.loklak.geo Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.geo

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/graphics/AnimationGIF.html b/javadoc/org/loklak/graphics/AnimationGIF.html new file mode 100644 index 0000000..5a35c00 --- /dev/null +++ b/javadoc/org/loklak/graphics/AnimationGIF.html @@ -0,0 +1,325 @@ + + + + + +AnimationGIF + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class AnimationGIF

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.AnimationGIF
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class AnimationGIF
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AnimationGIF(int loops) +
      create a gif animation producer
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddImage(java.awt.image.RenderedImage image, + int delayMillis, + int transparencyColorIndex) +
      add an image to the animation
      +
      byte[]get() +
      produce the gif image as byte array
      +
      static voidmain(java.lang.String[] args) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AnimationGIF

        +
        public AnimationGIF(int loops)
        +
        create a gif animation producer
        +
        +
        Parameters:
        +
        loops - - number of loops for the animated images. -1 = no loops; 0 = indefinitely loops; else: number of loops
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addImage

        +
        public void addImage(java.awt.image.RenderedImage image,
        +                     int delayMillis,
        +                     int transparencyColorIndex)
        +              throws java.io.IOException
        +
        add an image to the animation
        +
        +
        Parameters:
        +
        image - the image
        +
        delayMillis - the frame time of the image in milliseconds
        +
        transparencyColorIndex - the index of the transparent color, -1 if not used
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public byte[] get()
        +
        produce the gif image as byte array
        +
        +
        Returns:
        +
        the gif image
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/AnimationPlotter.Frame.html b/javadoc/org/loklak/graphics/AnimationPlotter.Frame.html new file mode 100644 index 0000000..881cac7 --- /dev/null +++ b/javadoc/org/loklak/graphics/AnimationPlotter.Frame.html @@ -0,0 +1,241 @@ + + + + + +AnimationPlotter.Frame + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class AnimationPlotter.Frame

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.AnimationPlotter.Frame
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    AnimationPlotter
    +
    +
    +
    +
    public static class AnimationPlotter.Frame
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Frame(java.awt.image.BufferedImage image, + int delayMillis) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Frame

        +
        public Frame(java.awt.image.BufferedImage image,
        +             int delayMillis)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/AnimationPlotter.html b/javadoc/org/loklak/graphics/AnimationPlotter.html new file mode 100644 index 0000000..79988af --- /dev/null +++ b/javadoc/org/loklak/graphics/AnimationPlotter.html @@ -0,0 +1,328 @@ + + + + + +AnimationPlotter + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class AnimationPlotter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.AnimationPlotter
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class AnimationPlotter
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class AnimationPlotter.Frame 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AnimationPlotter() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddFrame(java.awt.image.BufferedImage image, + int delayMillis) 
      voidsave(java.io.File path, + java.lang.String filestub, + java.lang.String type) 
      voidshow() +
      show the images as stream of JFrame on desktop
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AnimationPlotter

        +
        public AnimationPlotter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addFrame

        +
        public void addFrame(java.awt.image.BufferedImage image,
        +                     int delayMillis)
        +
      • +
      + + + +
        +
      • +

        save

        +
        public void save(java.io.File path,
        +                 java.lang.String filestub,
        +                 java.lang.String type)
        +          throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        show

        +
        public void show()
        +
        show the images as stream of JFrame on desktop
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/ChartPlotter.html b/javadoc/org/loklak/graphics/ChartPlotter.html new file mode 100644 index 0000000..202c411 --- /dev/null +++ b/javadoc/org/loklak/graphics/ChartPlotter.html @@ -0,0 +1,568 @@ + + + + + +ChartPlotter + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class ChartPlotter

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChartPlotter

        +
        public ChartPlotter(int width,
        +                    int height,
        +                    java.lang.Long backgroundColor,
        +                    java.lang.Long foregroundColor,
        +                    java.lang.Long lightColor,
        +                    int leftborder,
        +                    int rightborder,
        +                    int topborder,
        +                    int bottomborder,
        +                    java.lang.String name,
        +                    java.lang.String subline)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        declareDimension

        +
        public void declareDimension(int dimensionType,
        +                             int scale,
        +                             int pixelperscale,
        +                             int offset,
        +                             java.lang.Long colorNaming,
        +                             java.lang.Long colorScale,
        +                             java.lang.String name)
        +
        assign a metric to a graph. The dimension can be left or right (the measure at the side-border of the graph)
        +
        +
        Parameters:
        +
        dimensionType -
        +
        scale - is the measure (the number) to be printed on the border per pixelscale
        +
        pixelperscale - is the number of pixel points per scale
        +
        offset - is an offset on the 'scale' number
        +
        colorNaming - the colour of the legend for the scale
        +
        colorScale - the colour of the line drawing for the vertical scale
        +
        name - printed on the vertical bar
        +
        +
      • +
      + + + +
        +
      • +

        chartDot

        +
        public void chartDot(int dimension_x,
        +                     int dimension_y,
        +                     float coord_x,
        +                     int coord_y,
        +                     int dotsize,
        +                     java.lang.String anot,
        +                     int anotAngle)
        +
      • +
      + + + +
        +
      • +

        chartLine

        +
        public void chartLine(int dimension_x,
        +                      int dimension_y,
        +                      float coord_x1,
        +                      int coord_y1,
        +                      float coord_x2,
        +                      int coord_y2)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/CircleTool.html b/javadoc/org/loklak/graphics/CircleTool.html new file mode 100644 index 0000000..6901220 --- /dev/null +++ b/javadoc/org/loklak/graphics/CircleTool.html @@ -0,0 +1,313 @@ + + + + + +CircleTool + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class CircleTool

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.CircleTool
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CircleTool
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CircleTool() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidcircle(RasterPlotter matrix, + int xc, + int yc, + int radius, + int intensity) 
      static voidcircle(RasterPlotter matrix, + int xc, + int yc, + int radius, + int fromArc, + int toArc) 
      static voidclearcache() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CircleTool

        +
        public CircleTool()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clearcache

        +
        public static void clearcache()
        +
      • +
      + + + +
        +
      • +

        circle

        +
        public static void circle(RasterPlotter matrix,
        +                          int xc,
        +                          int yc,
        +                          int radius,
        +                          int intensity)
        +
      • +
      + + + +
        +
      • +

        circle

        +
        public static void circle(RasterPlotter matrix,
        +                          int xc,
        +                          int yc,
        +                          int radius,
        +                          int fromArc,
        +                          int toArc)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/GraphPlotter.Point.html b/javadoc/org/loklak/graphics/GraphPlotter.Point.html new file mode 100644 index 0000000..eb37ebb --- /dev/null +++ b/javadoc/org/loklak/graphics/GraphPlotter.Point.html @@ -0,0 +1,348 @@ + + + + + +GraphPlotter.Point + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class GraphPlotter.Point

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.GraphPlotter.Point
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Cloneable
    +
    +
    +
    Enclosing class:
    +
    GraphPlotter
    +
    +
    +
    +
    public static class GraphPlotter.Point
    +extends java.lang.Object
    +implements java.lang.Cloneable
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      intlayer 
      doublex 
      doubley 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Point(double x, + double y, + int layer) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectclone() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        x

        +
        public double x
        +
      • +
      + + + +
        +
      • +

        y

        +
        public double y
        +
      • +
      + + + +
        +
      • +

        layer

        +
        public int layer
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Point

        +
        public Point(double x,
        +             double y,
        +             int layer)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clone

        +
        public java.lang.Object clone()
        +
        +
        Overrides:
        +
        clone in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/GraphPlotter.Ribbon.html b/javadoc/org/loklak/graphics/GraphPlotter.Ribbon.html new file mode 100644 index 0000000..b160588 --- /dev/null +++ b/javadoc/org/loklak/graphics/GraphPlotter.Ribbon.html @@ -0,0 +1,243 @@ + + + + + +GraphPlotter.Ribbon + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class GraphPlotter.Ribbon

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.GraphPlotter.Ribbon
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    GraphPlotter
    +
    +
    +
    +
    public static class GraphPlotter.Ribbon
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Ribbon(double length, + double attraction, + double repulsion) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Ribbon

        +
        public Ribbon(double length,
        +              double attraction,
        +              double repulsion)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/GraphPlotter.html b/javadoc/org/loklak/graphics/GraphPlotter.html new file mode 100644 index 0000000..f671c17 --- /dev/null +++ b/javadoc/org/loklak/graphics/GraphPlotter.html @@ -0,0 +1,518 @@ + + + + + +GraphPlotter + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class GraphPlotter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.GraphPlotter
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Cloneable
    +
    +
    +
    +
    public class GraphPlotter
    +extends java.lang.Object
    +implements java.lang.Cloneable
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GraphPlotter

        +
        public GraphPlotter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clone

        +
        public java.lang.Object clone()
        +
        +
        Overrides:
        +
        clone in class java.lang.Object
        +
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        normalizeVertical

        +
        public int normalizeVertical()
        +
      • +
      + + + +
        +
      • +

        normalizeHorizontal

        +
        public int normalizeHorizontal()
        +
      • +
      + + + +
        +
      • +

        normalize

        +
        public void normalize()
        +
      • +
      + + + + + + + +
        +
      • +

        addNode

        +
        public void addNode(java.lang.String node,
        +                    double x,
        +                    double y,
        +                    int layer)
        +
      • +
      + + + +
        +
      • +

        hasEdge

        +
        public boolean hasEdge(java.lang.String fromNode,
        +                       java.lang.String toNode)
        +
      • +
      + + + +
        +
      • +

        setEdge

        +
        public void setEdge(java.lang.String fromNode,
        +                    java.lang.String toNode)
        +
      • +
      + + + +
        +
      • +

        getEdges

        +
        public java.util.Collection<java.lang.String> getEdges(java.lang.String node,
        +                                                       boolean start)
        +
      • +
      + + + +
        +
      • +

        print

        +
        public void print()
        +
      • +
      + + + +
        +
      • +

        draw

        +
        public RasterPlotter draw(int width,
        +                          int height,
        +                          int leftborder,
        +                          int rightborder,
        +                          int topborder,
        +                          int bottomborder,
        +                          int xraster,
        +                          int yraster,
        +                          java.lang.String color_back,
        +                          java.lang.String color_dot0,
        +                          java.lang.String color_dota,
        +                          java.lang.String color_line,
        +                          java.lang.String color_lineend,
        +                          java.lang.String color_text)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/HexGridPlotter.html b/javadoc/org/loklak/graphics/HexGridPlotter.html new file mode 100644 index 0000000..e5c1f05 --- /dev/null +++ b/javadoc/org/loklak/graphics/HexGridPlotter.html @@ -0,0 +1,500 @@ + + + + + +HexGridPlotter + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class HexGridPlotter

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HexGridPlotter

        +
        public HexGridPlotter(int width,
        +                      int height,
        +                      RasterPlotter.DrawMode drawMode,
        +                      java.lang.String backgroundColor,
        +                      int cellwidth)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        gridWidth

        +
        public int gridWidth()
        +
      • +
      + + + +
        +
      • +

        gridHeight

        +
        public int gridHeight()
        +
      • +
      + + + +
        +
      • +

        drawGrid

        +
        public void drawGrid(java.lang.String colorNaming)
        +
      • +
      + + + +
        +
      • +

        gridDot

        +
        public void gridDot(int x,
        +                    int y,
        +                    int radius,
        +                    boolean filled,
        +                    int intensity)
        +
      • +
      + + + +
        +
      • +

        gridDot

        +
        public void gridDot(int x,
        +                    int y,
        +                    int radius,
        +                    int fromArc,
        +                    int toArc)
        +
      • +
      + + + +
        +
      • +

        gridPrint

        +
        public void gridPrint(int x,
        +                      int y,
        +                      int radius,
        +                      java.lang.String messageHigh,
        +                      java.lang.String messageLow,
        +                      int align,
        +                      int intensity)
        +
      • +
      + + + +
        +
      • +

        gridPrint315

        +
        public void gridPrint315(int x,
        +                         int y,
        +                         int radius,
        +                         java.lang.String message315,
        +                         int intensity)
        +
      • +
      + + + +
        +
      • +

        gridLine

        +
        public void gridLine(int Ax,
        +                     int Ay,
        +                     int Bx,
        +                     int By)
        +
      • +
      + + + +
        +
      • +

        gridLine

        +
        public void gridLine(int Ax,
        +                     int Ay,
        +                     int Bx,
        +                     int By,
        +                     java.lang.String colorLine,
        +                     int intensityLine,
        +                     java.lang.String colorDot,
        +                     int intensityDot,
        +                     int dotDist,
        +                     int dotPos,
        +                     int dotRadius,
        +                     boolean dotFilled)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/PrintTool.html b/javadoc/org/loklak/graphics/PrintTool.html new file mode 100644 index 0000000..2c5fe8f --- /dev/null +++ b/javadoc/org/loklak/graphics/PrintTool.html @@ -0,0 +1,345 @@ + + + + + +PrintTool + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class PrintTool

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.PrintTool
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class PrintTool
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PrintTool() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidarcPrint(RasterPlotter matrix, + int cx, + int cy, + int radius, + double angle, + java.lang.String message, + int intensity) +
      print a string at the distance of a circle
      +
      static voidprint(RasterPlotter matrix, + int x, + int y, + int angle, + char letter, + boolean tilt, + int intensity) 
      static voidprint(RasterPlotter matrix, + int x, + int y, + int angle, + java.lang.String message, + int align, + boolean tilt, + int intensity) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PrintTool

        +
        public PrintTool()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        print

        +
        public static void print(RasterPlotter matrix,
        +                         int x,
        +                         int y,
        +                         int angle,
        +                         char letter,
        +                         boolean tilt,
        +                         int intensity)
        +
      • +
      + + + +
        +
      • +

        print

        +
        public static void print(RasterPlotter matrix,
        +                         int x,
        +                         int y,
        +                         int angle,
        +                         java.lang.String message,
        +                         int align,
        +                         boolean tilt,
        +                         int intensity)
        +
      • +
      + + + +
        +
      • +

        arcPrint

        +
        public static void arcPrint(RasterPlotter matrix,
        +                            int cx,
        +                            int cy,
        +                            int radius,
        +                            double angle,
        +                            java.lang.String message,
        +                            int intensity)
        +
        print a string at the distance of a circle
        +
        +
        Parameters:
        +
        matrix - the RasterPlotter
        +
        cx - center of circle, x
        +
        cy - center of circle, y
        +
        radius - radius == distance of text from circle center
        +
        angle - angle == position of text on a circle in distance of radius
        +
        message - the message to be printed
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/RasterPlotter.DrawMode.html b/javadoc/org/loklak/graphics/RasterPlotter.DrawMode.html new file mode 100644 index 0000000..6f0262c --- /dev/null +++ b/javadoc/org/loklak/graphics/RasterPlotter.DrawMode.html @@ -0,0 +1,355 @@ + + + + + +RasterPlotter.DrawMode + + + + + + + + + + + + +
+
org.loklak.graphics
+

Enum RasterPlotter.DrawMode

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static RasterPlotter.DrawModevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static RasterPlotter.DrawMode[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static RasterPlotter.DrawMode[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (RasterPlotter.DrawMode c : RasterPlotter.DrawMode.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static RasterPlotter.DrawMode valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/RasterPlotter.FilterMode.html b/javadoc/org/loklak/graphics/RasterPlotter.FilterMode.html new file mode 100644 index 0000000..3cfd1c7 --- /dev/null +++ b/javadoc/org/loklak/graphics/RasterPlotter.FilterMode.html @@ -0,0 +1,355 @@ + + + + + +RasterPlotter.FilterMode + + + + + + + + + + + + +
+
org.loklak.graphics
+

Enum RasterPlotter.FilterMode

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static RasterPlotter.FilterModevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static RasterPlotter.FilterMode[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static RasterPlotter.FilterMode[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (RasterPlotter.FilterMode c : RasterPlotter.FilterMode.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static RasterPlotter.FilterMode valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/RasterPlotter.html b/javadoc/org/loklak/graphics/RasterPlotter.html new file mode 100644 index 0000000..7d0a2b8 --- /dev/null +++ b/javadoc/org/loklak/graphics/RasterPlotter.html @@ -0,0 +1,1546 @@ + + + + + +RasterPlotter + + + + + + + + + + + + +
+
org.loklak.graphics
+

Class RasterPlotter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.graphics.RasterPlotter
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    ChartPlotter, HexGridPlotter
    +
    +
    +
    +
    public class RasterPlotter
    +extends java.lang.Object
    +
    This Class implements some convenience-methods to support drawing of statistical Data + It is not intended to replace existing awt-funktions even if it looks so + This class provides some drawing methods that creates transparency effects that + are not available in awt.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static longBLUE 
      static longGREEN 
      static longGREY 
      protected intheight 
      static doublePI180 
      static doublePI2 
      static doublePI32 
      static doublePI4 
      static longRED 
      static doubleTL 
      protected intwidth 
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidantialiasing(int ulx, + int uly, + int lrx, + int lry, + int bgcolor) +
      antialiasing filter for a square part of the image
      +
      voidarc(int x, + int y, + int innerRadius, + int outerRadius, + int intensity) 
      voidarc(int x, + int y, + int innerRadius, + int outerRadius, + int fromArc, + int toArc) 
      voidarcArc(int cx, + int cy, + int arcRadius, + double angle, + int innerRadius, + int outerRadius, + int intensity) 
      voidarcArc(int cx, + int cy, + int arcRadius, + double angle, + int innerRadius, + int outerRadius, + int fromArc, + int toArc) 
      voidarcConnect(int cx, + int cy, + int arcRadius, + double angle1, + double angle2, + boolean in, + java.lang.Long colorLine, + int intensityLine, + java.lang.Long colorDot, + int intensityDot, + int dotDist, + int dotPos, + int dotRadius, + boolean dotFilled, + java.lang.String message, + java.lang.Long colorMessage, + int intensityMessage) +
      draw a connecting line between two points on a circle
      +
      voidarcDot(int cx, + int cy, + int arcRadius, + double angle, + int dotRadius) 
      voidarcLine(int cx, + int cy, + int innerRadius, + int outerRadius, + double angle, + boolean in, + java.lang.Long colorLine, + java.lang.Long colorDot, + int dotDist, + int dotPos, + int dotRadius, + boolean dotFilled) +
      draw a portion of a line from the center of a circle
      +
      voidblur(int ulx, + int uly, + int lrx, + int lry) +
      blur filter for a square part of the image
      +
      voidclear() +
      Deletes all pixels of image and sets them to previously defined + background color.
      +
      static java.awt.image.BufferedImageconvertToIndexed(java.awt.image.BufferedImage src) 
      static booleandarkColor(long c) 
      static booleandarkColor(java.lang.String s) 
      static voiddemoPaint(RasterPlotter m) 
      voiddot(int x, + int y, + int radius, + boolean filled, + int intensity) 
      static java.io.ByteArrayOutputStreamexportImage(java.awt.image.BufferedImage image, + java.lang.String targetExt) 
      java.io.ByteArrayOutputStreamexportPng() 
      intgetHeight() 
      java.awt.image.BufferedImagegetImage() 
      int[]getPixel(int x, + int y) 
      int[]getPixel(int x, + int y, + int[] c) 
      intgetWidth() 
      voidinsertBitmap(java.awt.image.BufferedImage bitmap, + int x, + int y) +
      inserts image
      +
      voidinsertBitmap(java.awt.image.BufferedImage bitmap, + int x, + int y, + int transRGB) +
      inserts image where all pixels that have the same RGB value as the + pixel at (xx, yy) are transparent
      +
      voidinsertBitmap(java.awt.image.BufferedImage bitmap, + int x, + int y, + int xx, + int yy) +
      inserts image where all pixels which have the same RGB value as the + pixel at (xx, yy) are transparent
      +
      voidinsertBitmap(java.awt.image.BufferedImage bitmap, + int x, + int y, + int xx, + int yy, + RasterPlotter.FilterMode filter) +
      inserts image where all pixels that have the same RGB value as the + pixel at (xx, yy) are transparent
      +
      voidinsertBitmap(java.awt.image.BufferedImage bitmap, + int x, + int y, + int transRGB, + RasterPlotter.FilterMode filter) +
      inserts image where all pixels that have a special RGB value + pixel at (xx, yy) are transparent
      +
      voidinsertBitmap(java.awt.image.BufferedImage bitmap, + int x, + int y, + RasterPlotter.FilterMode filter) +
      inserts image
      +
      voidinvert(int ulx, + int uly, + int lrx, + int lry) +
      invert filter for a square part of the image
      +
      static longinvertColor(long color) 
      voidline(int Ax, + int Ay, + int Bx, + int By, + int intensity) 
      voidline(int Ax, + int Ay, + int Bx, + int By, + java.lang.Long colorLine, + int intensityLine, + java.lang.Long colorDot, + int intensityDot, + int dotDist, + int dotPos, + int dotRadius, + boolean dotFilled) +
      draw a line using Bresenham's line drawing algorithm.
      +
      voidlineArrow(int x0, + int y0, + int x1, + int y1, + int sidelength, + int padding, + long lineColor, + long arrowColor) +
      draw a line with an arrow at the end
      +
      voidlineDot(int x0, + int y0, + int x1, + int y1, + int radius, + int padding, + long lineColor, + long dotColor) +
      draw a line with a dot at the end
      +
      static voidmain(java.lang.String[] args) 
      voidplot(int x, + int y) 
      voidplot(int x, + int y, + int intensity) 
      byte[]pngEncode(int compressionLevel) 
      voidsave(java.io.File file, + java.lang.String type) +
      save the image to a file
      +
      voidsetColor(long c) 
      voidsetDrawMode(RasterPlotter.DrawMode drawMode) 
      voidsetPixel(int x, + int y, + int[] c) 
      voidshow() +
      show the image as JFrame on desktop
      +
      java.awt.image.BufferedImagetoIndexed() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RasterPlotter

        +
        public RasterPlotter(int width,
        +                     int height,
        +                     RasterPlotter.DrawMode drawMode,
        +                     java.lang.String backgroundColor)
        +
      • +
      + + + +
        +
      • +

        RasterPlotter

        +
        public RasterPlotter(int width,
        +                     int height,
        +                     RasterPlotter.DrawMode drawMode,
        +                     long backgroundColor)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public final void clear()
        +
        Deletes all pixels of image and sets them to previously defined + background color.
        +
      • +
      + + + +
        +
      • +

        invertColor

        +
        public static long invertColor(long color)
        +
      • +
      + + + + + + + +
        +
      • +

        getImage

        +
        public java.awt.image.BufferedImage getImage()
        +
      • +
      + + + +
        +
      • +

        getWidth

        +
        public int getWidth()
        +
      • +
      + + + +
        +
      • +

        getHeight

        +
        public int getHeight()
        +
      • +
      + + + +
        +
      • +

        darkColor

        +
        public static boolean darkColor(java.lang.String s)
        +
      • +
      + + + +
        +
      • +

        darkColor

        +
        public static boolean darkColor(long c)
        +
      • +
      + + + +
        +
      • +

        getPixel

        +
        public int[] getPixel(int x,
        +                      int y)
        +
      • +
      + + + +
        +
      • +

        getPixel

        +
        public int[] getPixel(int x,
        +                      int y,
        +                      int[] c)
        +
      • +
      + + + +
        +
      • +

        setPixel

        +
        public void setPixel(int x,
        +                     int y,
        +                     int[] c)
        +
      • +
      + + + +
        +
      • +

        setColor

        +
        public void setColor(long c)
        +
      • +
      + + + +
        +
      • +

        plot

        +
        public void plot(int x,
        +                 int y)
        +
      • +
      + + + +
        +
      • +

        plot

        +
        public void plot(int x,
        +                 int y,
        +                 int intensity)
        +
      • +
      + + + +
        +
      • +

        line

        +
        public void line(int Ax,
        +                 int Ay,
        +                 int Bx,
        +                 int By,
        +                 int intensity)
        +
      • +
      + + + +
        +
      • +

        line

        +
        public void line(int Ax,
        +                 int Ay,
        +                 int Bx,
        +                 int By,
        +                 java.lang.Long colorLine,
        +                 int intensityLine,
        +                 java.lang.Long colorDot,
        +                 int intensityDot,
        +                 int dotDist,
        +                 int dotPos,
        +                 int dotRadius,
        +                 boolean dotFilled)
        +
        draw a line using Bresenham's line drawing algorithm. + The line will be plotted together with dots on it, if wanted.
        +
        +
        Parameters:
        +
        Ax -
        +
        Ay -
        +
        Bx -
        +
        By -
        +
        colorLine -
        +
        intensityLine -
        +
        colorDot -
        +
        intensityDot -
        +
        dotDist -
        +
        dotPos -
        +
        dotRadius -
        +
        dotFilled -
        +
        +
      • +
      + + + +
        +
      • +

        lineDot

        +
        public void lineDot(int x0,
        +                    int y0,
        +                    int x1,
        +                    int y1,
        +                    int radius,
        +                    int padding,
        +                    long lineColor,
        +                    long dotColor)
        +
        draw a line with a dot at the end
        +
        +
        Parameters:
        +
        x0 - start point
        +
        y0 - start point
        +
        x1 - end point
        +
        y1 - end point
        +
        radius - radius of the dot
        +
        padding - the distance of the dot border to the end point
        +
        lineColor - the color of the line
        +
        dotColor - the color of the dot
        +
        +
      • +
      + + + +
        +
      • +

        lineArrow

        +
        public void lineArrow(int x0,
        +                      int y0,
        +                      int x1,
        +                      int y1,
        +                      int sidelength,
        +                      int padding,
        +                      long lineColor,
        +                      long arrowColor)
        +
        draw a line with an arrow at the end
        +
        +
        Parameters:
        +
        x0 - start point
        +
        y0 - start point
        +
        x1 - end point
        +
        y1 - end point
        +
        sidelength - the side length of the arrow tip (all 3 sides are equal)
        +
        padding - the distance of the arrow tip to the end point
        +
        lineColor - the color of the line
        +
        arrowColor - the color of the arrow tip
        +
        +
      • +
      + + + +
        +
      • +

        dot

        +
        public void dot(int x,
        +                int y,
        +                int radius,
        +                boolean filled,
        +                int intensity)
        +
      • +
      + + + +
        +
      • +

        arc

        +
        public void arc(int x,
        +                int y,
        +                int innerRadius,
        +                int outerRadius,
        +                int intensity)
        +
      • +
      + + + +
        +
      • +

        arc

        +
        public void arc(int x,
        +                int y,
        +                int innerRadius,
        +                int outerRadius,
        +                int fromArc,
        +                int toArc)
        +
      • +
      + + + +
        +
      • +

        arcLine

        +
        public void arcLine(int cx,
        +                    int cy,
        +                    int innerRadius,
        +                    int outerRadius,
        +                    double angle,
        +                    boolean in,
        +                    java.lang.Long colorLine,
        +                    java.lang.Long colorDot,
        +                    int dotDist,
        +                    int dotPos,
        +                    int dotRadius,
        +                    boolean dotFilled)
        +
        draw a portion of a line from the center of a circle
        +
        +
        Parameters:
        +
        cx - center of circle, x
        +
        cy - center of circle, y
        +
        innerRadius - inner radius of line
        +
        outerRadius - outer radius of line
        +
        angle - angle within the circle for the line
        +
        in - direction, if true: inward. This is the moving direction of dots, if dotRadius is alternated from 0 to 360
        +
        colorLine - the color of the line
        +
        colorDot - the color of the dot
        +
        dotDist - the distance of two dots
        +
        dotPos - the start position of the first dot
        +
        dotRadius - the radius of the dot
        +
        dotFilled - if true: dot is filled.
        +
        +
      • +
      + + + +
        +
      • +

        arcDot

        +
        public void arcDot(int cx,
        +                   int cy,
        +                   int arcRadius,
        +                   double angle,
        +                   int dotRadius)
        +
      • +
      + + + +
        +
      • +

        arcConnect

        +
        public void arcConnect(int cx,
        +                       int cy,
        +                       int arcRadius,
        +                       double angle1,
        +                       double angle2,
        +                       boolean in,
        +                       java.lang.Long colorLine,
        +                       int intensityLine,
        +                       java.lang.Long colorDot,
        +                       int intensityDot,
        +                       int dotDist,
        +                       int dotPos,
        +                       int dotRadius,
        +                       boolean dotFilled,
        +                       java.lang.String message,
        +                       java.lang.Long colorMessage,
        +                       int intensityMessage)
        +
        draw a connecting line between two points on a circle
        +
        +
        Parameters:
        +
        cx - center of circle, x
        +
        cy - center of circle, y
        +
        arcRadius - radius of circle
        +
        angle1 - position of dot 1 on circle
        +
        angle2 - position of dot 2 on circle
        +
        in - direction of dots on line; in=true means: inwards
        +
        colorLine -
        +
        intensityLine -
        +
        colorDot -
        +
        intensityDot -
        +
        dotDist -
        +
        dotPos -
        +
        dotRadius -
        +
        dotFilled -
        +
        +
      • +
      + + + +
        +
      • +

        arcArc

        +
        public void arcArc(int cx,
        +                   int cy,
        +                   int arcRadius,
        +                   double angle,
        +                   int innerRadius,
        +                   int outerRadius,
        +                   int intensity)
        +
      • +
      + + + +
        +
      • +

        arcArc

        +
        public void arcArc(int cx,
        +                   int cy,
        +                   int arcRadius,
        +                   double angle,
        +                   int innerRadius,
        +                   int outerRadius,
        +                   int fromArc,
        +                   int toArc)
        +
      • +
      + + + +
        +
      • +

        insertBitmap

        +
        public void insertBitmap(java.awt.image.BufferedImage bitmap,
        +                         int x,
        +                         int y)
        +
        inserts image
        +
        +
        Parameters:
        +
        bitmap - bitmap to be inserted
        +
        x - x-value of upper left coordinate where bitmap will be placed
        +
        y - y-value of upper left coordinate where bitmap will be placed
        +
        +
      • +
      + + + +
        +
      • +

        insertBitmap

        +
        public void insertBitmap(java.awt.image.BufferedImage bitmap,
        +                         int x,
        +                         int y,
        +                         RasterPlotter.FilterMode filter)
        +
        inserts image
        +
        +
        Parameters:
        +
        bitmap - bitmap to be inserted
        +
        x - x-value of upper left coordinate where bitmap will be placed
        +
        y - y-value of upper left coordinate where bitmap will be placed
        +
        filter - chooses filter
        +
        +
      • +
      + + + +
        +
      • +

        insertBitmap

        +
        public void insertBitmap(java.awt.image.BufferedImage bitmap,
        +                         int x,
        +                         int y,
        +                         int xx,
        +                         int yy)
        +
        inserts image where all pixels which have the same RGB value as the + pixel at (xx, yy) are transparent
        +
        +
        Parameters:
        +
        bitmap - bitmap to be inserted
        +
        x - x-value of upper left coordinate where bitmap will be placed
        +
        y - y-value of upper left coordinate where bitmap will be placed
        +
        xx - x-value of pixel that determines which color is transparent
        +
        yy - y-value of pixel that determines which color is transparent
        +
        +
      • +
      + + + +
        +
      • +

        insertBitmap

        +
        public void insertBitmap(java.awt.image.BufferedImage bitmap,
        +                         int x,
        +                         int y,
        +                         int xx,
        +                         int yy,
        +                         RasterPlotter.FilterMode filter)
        +
        inserts image where all pixels that have the same RGB value as the + pixel at (xx, yy) are transparent
        +
        +
        Parameters:
        +
        bitmap - bitmap to be inserted
        +
        x - x-value of upper left coordinate where bitmap will be placed
        +
        y - y-value of upper left coordinate where bitmap will be placed
        +
        xx - x-value of pixel that determines which color is transparent
        +
        yy - y-value of pixel that determines which color is transparent
        +
        filter - filter to be applied
        +
        +
      • +
      + + + +
        +
      • +

        insertBitmap

        +
        public void insertBitmap(java.awt.image.BufferedImage bitmap,
        +                         int x,
        +                         int y,
        +                         int transRGB)
        +
        inserts image where all pixels that have the same RGB value as the + pixel at (xx, yy) are transparent
        +
        +
        Parameters:
        +
        bitmap - bitmap to be inserted
        +
        x - x-value of upper left coordinate where bitmap will be placed
        +
        y - y-value of upper left coordinate where bitmap will be placed
        +
        rgb - RGB value which will be transparent
        +
        +
      • +
      + + + +
        +
      • +

        insertBitmap

        +
        public void insertBitmap(java.awt.image.BufferedImage bitmap,
        +                         int x,
        +                         int y,
        +                         int transRGB,
        +                         RasterPlotter.FilterMode filter)
        +
        inserts image where all pixels that have a special RGB value + pixel at (xx, yy) are transparent
        +
        +
        Parameters:
        +
        bitmap - bitmap to be inserted
        +
        x - x-value of upper left coordinate where bitmap will be placed
        +
        y - y-value of upper left coordinate where bitmap will be placed
        +
        rgb - RGB value which will be transparent
        +
        filter - filter to be applied
        +
        +
      • +
      + + + +
        +
      • +

        antialiasing

        +
        public void antialiasing(int ulx,
        +                         int uly,
        +                         int lrx,
        +                         int lry,
        +                         int bgcolor)
        +
        antialiasing filter for a square part of the image
        +
        +
        Parameters:
        +
        ulx - x-value for upper left coordinate
        +
        uly - y-value for upper left coordinate
        +
        lrx - x-value for lower right coordinate
        +
        lry - y-value for lower right coordinate
        +
        rgb - color of background
        +
        +
      • +
      + + + +
        +
      • +

        blur

        +
        public void blur(int ulx,
        +                 int uly,
        +                 int lrx,
        +                 int lry)
        +
        blur filter for a square part of the image
        +
        +
        Parameters:
        +
        ulx - x-value for upper left coordinate
        +
        uly - y-value for upper left coordinate
        +
        lrx - x-value for lower right coordinate
        +
        lry - y-value for lower right coordinate
        +
        +
      • +
      + + + +
        +
      • +

        invert

        +
        public void invert(int ulx,
        +                   int uly,
        +                   int lrx,
        +                   int lry)
        +
        invert filter for a square part of the image
        +
        +
        Parameters:
        +
        ulx - x-value for upper left coordinate
        +
        uly - y-value for upper left coordinate
        +
        lrx - x-value for lower right coordinate
        +
        lry - y-value for lower right coordinate
        +
        +
      • +
      + + + +
        +
      • +

        demoPaint

        +
        public static void demoPaint(RasterPlotter m)
        +
      • +
      + + + +
        +
      • +

        toIndexed

        +
        public java.awt.image.BufferedImage toIndexed()
        +
      • +
      + + + +
        +
      • +

        convertToIndexed

        +
        public static java.awt.image.BufferedImage convertToIndexed(java.awt.image.BufferedImage src)
        +
      • +
      + + + +
        +
      • +

        exportImage

        +
        public static java.io.ByteArrayOutputStream exportImage(java.awt.image.BufferedImage image,
        +                                                        java.lang.String targetExt)
        +
      • +
      + + + +
        +
      • +

        exportPng

        +
        public java.io.ByteArrayOutputStream exportPng()
        +
      • +
      + + + +
        +
      • +

        save

        +
        public void save(java.io.File file,
        +                 java.lang.String type)
        +          throws java.io.IOException
        +
        save the image to a file
        +
        +
        Parameters:
        +
        file - the storage file
        +
        type - the file type, may be i.e. 'png' or 'gif'
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        show

        +
        public void show()
        +
        show the image as JFrame on desktop
        +
      • +
      + + + +
        +
      • +

        pngEncode

        +
        public final byte[] pngEncode(int compressionLevel)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/graphics/package-frame.html b/javadoc/org/loklak/graphics/package-frame.html new file mode 100644 index 0000000..cc91aec --- /dev/null +++ b/javadoc/org/loklak/graphics/package-frame.html @@ -0,0 +1,35 @@ + + + + + +org.loklak.graphics + + + + + +

org.loklak.graphics

+ + + diff --git a/javadoc/org/loklak/graphics/package-summary.html b/javadoc/org/loklak/graphics/package-summary.html new file mode 100644 index 0000000..fbf26fd --- /dev/null +++ b/javadoc/org/loklak/graphics/package-summary.html @@ -0,0 +1,204 @@ + + + + + +org.loklak.graphics + + + + + + + + + + + +
+

Package org.loklak.graphics

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/graphics/package-tree.html b/javadoc/org/loklak/graphics/package-tree.html new file mode 100644 index 0000000..b537f33 --- /dev/null +++ b/javadoc/org/loklak/graphics/package-tree.html @@ -0,0 +1,161 @@ + + + + + +org.loklak.graphics Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.graphics

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/harvester/BaseScraper.html b/javadoc/org/loklak/harvester/BaseScraper.html new file mode 100644 index 0000000..2154df1 --- /dev/null +++ b/javadoc/org/loklak/harvester/BaseScraper.html @@ -0,0 +1,664 @@ + + + + + +BaseScraper + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class BaseScraper

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    APIHandler
    +
    +
    +
    Direct Known Subclasses:
    +
    YoutubeScraper
    +
    +
    +
    +
    public abstract class BaseScraper
    +extends AbstractAPIHandler
    +
    +
    Since:
    +
    07.06.2017 + + This is Base-Interface for Search-Scrappers.
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        scraperName

        +
        protected java.lang.String scraperName
        +
      • +
      + + + +
        +
      • +

        html

        +
        protected java.lang.String html
        +
      • +
      + + + +
        +
      • +

        baseUrl

        +
        protected java.lang.String baseUrl
        +
      • +
      + + + +
        +
      • +

        midUrl

        +
        protected java.lang.String midUrl
        +
      • +
      + + + +
        +
      • +

        query

        +
        protected java.lang.String query
        +
      • +
      + + + +
        +
      • +

        source_type

        +
        protected SourceType source_type
        +
      • +
      + + + +
        +
      • +

        provider_type

        +
        protected ProviderType provider_type
        +
      • +
      + + + +
        +
      • +

        extra

        +
        protected java.util.Map<java.lang.String,java.lang.String> extra
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BaseScraper

        +
        public BaseScraper()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        setExtra

        +
        protected void setExtra(Query call)
        +
      • +
      + + + +
        +
      • +

        setExtra

        +
        protected void setExtra(java.util.Map<java.lang.String,java.lang.String> _extra)
        +
      • +
      + + + +
        +
      • +

        getExtraValue

        +
        public java.lang.String getExtraValue(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        setExtraValue

        +
        protected void setExtraValue(java.lang.String key,
        +                             java.lang.String value)
        +
      • +
      + + + +
        +
      • +

        setParam

        +
        protected abstract void setParam()
        +
      • +
      + + + +
        +
      • +

        prepareSearchUrl

        +
        protected abstract java.lang.String prepareSearchUrl(java.lang.String type)
        +
      • +
      + + + +
        +
      • +

        getData

        +
        public Timeline2 getData()
        +
      • +
      + + + +
        +
      • +

        getDataFromConnection

        +
        public Post getDataFromConnection(java.lang.String url,
        +                                  java.lang.String type)
        +                           throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getDataFromConnection

        +
        public Post getDataFromConnection(java.lang.String url)
        +                           throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getDataFromConnection

        +
        public Post getDataFromConnection()
        +                           throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getHtml

        +
        public java.io.BufferedReader getHtml(ClientConnection connection)
        +
      • +
      + + + +
        +
      • +

        scrape

        +
        protected abstract Post scrape(java.io.BufferedReader br,
        +                               java.lang.String type,
        +                               java.lang.String url)
        +
      • +
      + + + +
        +
      • +

        bufferedReaderToString

        +
        public java.lang.String bufferedReaderToString(java.io.BufferedReader br)
        +                                        throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/HarvestingFrequency.html b/javadoc/org/loklak/harvester/HarvestingFrequency.html new file mode 100644 index 0000000..5b8fe78 --- /dev/null +++ b/javadoc/org/loklak/harvester/HarvestingFrequency.html @@ -0,0 +1,421 @@ + + + + + +HarvestingFrequency + + + + + + + + + + + + +
+
org.loklak.harvester
+

Enum HarvestingFrequency

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static HarvestingFrequency[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (HarvestingFrequency c : HarvestingFrequency.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static HarvestingFrequency valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getFrequency

        +
        public int getFrequency()
        +
        +
        Returns:
        +
        int : frequency in minutes
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static HarvestingFrequency valueOf(int frequency)
        +
        +
        Throws:
        +
        java.lang.IllegalArgumentException - when frequency value is not permitted (not declared as an enum)
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/JsonFieldConverter.JsonConversionSchemaEnum.html b/javadoc/org/loklak/harvester/JsonFieldConverter.JsonConversionSchemaEnum.html new file mode 100644 index 0000000..bc79dde --- /dev/null +++ b/javadoc/org/loklak/harvester/JsonFieldConverter.JsonConversionSchemaEnum.html @@ -0,0 +1,392 @@ + + + + + +JsonFieldConverter.JsonConversionSchemaEnum + + + + + + + + + + + + +
+
org.loklak.harvester
+

Enum JsonFieldConverter.JsonConversionSchemaEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static JsonFieldConverter.JsonConversionSchemaEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (JsonFieldConverter.JsonConversionSchemaEnum c : JsonFieldConverter.JsonConversionSchemaEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static JsonFieldConverter.JsonConversionSchemaEnum valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getFilename

        +
        public java.lang.String getFilename()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/JsonFieldConverter.html b/javadoc/org/loklak/harvester/JsonFieldConverter.html new file mode 100644 index 0000000..b2042e7 --- /dev/null +++ b/javadoc/org/loklak/harvester/JsonFieldConverter.html @@ -0,0 +1,316 @@ + + + + + +JsonFieldConverter + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class JsonFieldConverter

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.JsonFieldConverter
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonFieldConverter
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        convert

        +
        public JSONArray convert(JSONArray initialJson)
        +                  throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public JSONObject convert(JSONObject initialJson)
        +                   throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/JsonValidator.JsonSchemaEnum.html b/javadoc/org/loklak/harvester/JsonValidator.JsonSchemaEnum.html new file mode 100644 index 0000000..38c04ee --- /dev/null +++ b/javadoc/org/loklak/harvester/JsonValidator.JsonSchemaEnum.html @@ -0,0 +1,406 @@ + + + + + +JsonValidator.JsonSchemaEnum + + + + + + + + + + + + +
+
org.loklak.harvester
+

Enum JsonValidator.JsonSchemaEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static JsonValidator.JsonSchemaEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (JsonValidator.JsonSchemaEnum c : JsonValidator.JsonSchemaEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static JsonValidator.JsonSchemaEnum valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getFilename

        +
        public java.lang.String getFilename()
        +
      • +
      + + + +
        +
      • +

        getSourceType

        +
        public SourceType getSourceType()
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/JsonValidator.html b/javadoc/org/loklak/harvester/JsonValidator.html new file mode 100644 index 0000000..00678a1 --- /dev/null +++ b/javadoc/org/loklak/harvester/JsonValidator.html @@ -0,0 +1,299 @@ + + + + + +JsonValidator + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class JsonValidator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.JsonValidator
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonValidator
    +extends java.lang.Object
    +
    Validate json file against json schema
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      ProcessingReportvalidate(java.lang.String jsonText) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonValidator

        +
        public JsonValidator(JsonValidator.JsonSchemaEnum schemaEnum)
        +              throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        validate

        +
        public ProcessingReport validate(java.lang.String jsonText)
        +                          throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/Post.html b/javadoc/org/loklak/harvester/Post.html new file mode 100644 index 0000000..e26d129 --- /dev/null +++ b/javadoc/org/loklak/harvester/Post.html @@ -0,0 +1,481 @@ + + + + + +Post + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class Post

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    AbstractObjectEntry
    +
    +
    +
    +
    public class Post
    +extends JSONObject
    +
    +
    Since:
    +
    07.06.2017 + + Post abstract class for data objects.
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        timestamp

        +
        protected long timestamp
        +
      • +
      + + + +
        +
      • +

        postId

        +
        protected java.lang.String postId
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Post

        +
        public Post()
        +
      • +
      + + + +
        +
      • +

        Post

        +
        public Post(boolean wrapper)
        +
      • +
      + + + + + + + +
        +
      • +

        Post

        +
        public Post(java.lang.String data,
        +            java.lang.String query)
        +
      • +
      + + + +
        +
      • +

        Post

        +
        protected Post(long timestamp)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTimestamp

        +
        public long getTimestamp()
        +
      • +
      + + + +
        +
      • +

        setTimestamp

        +
        public void setTimestamp(long timestamp)
        +
      • +
      + + + +
        +
      • +

        setTimestamp

        +
        public void setTimestamp()
        +
      • +
      + + + +
        +
      • +

        getTimestampDate

        +
        public java.util.Date getTimestampDate()
        +
      • +
      + + + +
        +
      • +

        setPostId

        +
        public void setPostId(java.lang.String postId)
        +
      • +
      + + + +
        +
      • +

        getPostId

        +
        public java.lang.String getPostId()
        +
      • +
      + + + +
        +
      • +

        isWrapper

        +
        public boolean isWrapper()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/PushThread.html b/javadoc/org/loklak/harvester/PushThread.html new file mode 100644 index 0000000..c45c7c1 --- /dev/null +++ b/javadoc/org/loklak/harvester/PushThread.html @@ -0,0 +1,280 @@ + + + + + +PushThread + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class PushThread

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.PushThread
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class PushThread
    +extends java.lang.Object
    +implements java.lang.Runnable
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PushThread(java.lang.String peer, + Timeline tl) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrun() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PushThread

        +
        public PushThread(java.lang.String peer,
        +                  Timeline tl)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/RedirectUnshortener.html b/javadoc/org/loklak/harvester/RedirectUnshortener.html new file mode 100644 index 0000000..1c222b6 --- /dev/null +++ b/javadoc/org/loklak/harvester/RedirectUnshortener.html @@ -0,0 +1,282 @@ + + + + + +RedirectUnshortener + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class RedirectUnshortener

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.RedirectUnshortener
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class RedirectUnshortener
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] args) 
      static java.lang.StringunShorten(java.lang.String urlstring) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RedirectUnshortener

        +
        public RedirectUnshortener()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        unShorten

        +
        public static java.lang.String unShorten(java.lang.String urlstring)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/TwitterAPI.html b/javadoc/org/loklak/harvester/TwitterAPI.html new file mode 100644 index 0000000..69cde42 --- /dev/null +++ b/javadoc/org/loklak/harvester/TwitterAPI.html @@ -0,0 +1,555 @@ + + + + + +TwitterAPI + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class TwitterAPI

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.TwitterAPI
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class TwitterAPI
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TwitterAPI

        +
        public TwitterAPI()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAppTwitterFactory

        +
        public static TwitterFactory getAppTwitterFactory()
        +
      • +
      + + + +
        +
      • +

        getUserTwitterFactory

        +
        public static TwitterFactory getUserTwitterFactory(java.lang.String screen_name)
        +
      • +
      + + + +
        +
      • +

        getRateLimitStatus

        +
        public static RateLimitStatus getRateLimitStatus(java.lang.String rate_type)
        +                                          throws TwitterException
        +
        +
        Throws:
        +
        TwitterException
        +
        +
      • +
      + + + +
        +
      • +

        getUserRemaining

        +
        public static int getUserRemaining()
        +
      • +
      + + + +
        +
      • +

        getUser

        +
        public static JSONObject getUser(java.lang.String screen_name,
        +                                 boolean forceReload)
        +                          throws TwitterException,
        +                                 java.io.IOException
        +
        +
        Throws:
        +
        TwitterException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        user2json

        +
        public static JSONObject user2json(User user)
        +                            throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        enrichLocation

        +
        public static void enrichLocation(JSONObject map)
        +
        enrich the user data with geocoding information
        +
        +
        Parameters:
        +
        map - the user json
        +
        +
      • +
      + + + +
        +
      • +

        correctLocation

        +
        public static void correctLocation(JSONObject map)
        +
        beautify given location information. This should only be called before an export is done, not for storage
        +
        +
        Parameters:
        +
        map -
        +
        +
      • +
      + + + +
        +
      • +

        getNetwork

        +
        public static JSONObject getNetwork(java.lang.String screen_name,
        +                                    int maxFollowers,
        +                                    int maxFollowing)
        +                             throws java.io.IOException,
        +                                    TwitterException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        TwitterException
        +
        +
      • +
      + + + +
        +
      • +

        getFollowerIdRemaining

        +
        public static int getFollowerIdRemaining()
        +
      • +
      + + + +
        +
      • +

        getFollowingIdRemaining

        +
        public static int getFollowingIdRemaining()
        +
      • +
      + + + +
        +
      • +

        getFollowersNames

        +
        public static JSONObject getFollowersNames(java.lang.String screen_name,
        +                                           int max_count)
        +                                    throws java.io.IOException,
        +                                           TwitterException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        TwitterException
        +
        +
      • +
      + + + +
        +
      • +

        getFollowingNames

        +
        public static JSONObject getFollowingNames(java.lang.String screen_name,
        +                                           int max_count)
        +                                    throws java.io.IOException,
        +                                           TwitterException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        TwitterException
        +
        +
      • +
      + + + +
        +
      • +

        getNetworkerNames

        +
        public static JSONObject getNetworkerNames(java.lang.String screen_name,
        +                                           int max_count,
        +                                           org.loklak.harvester.TwitterAPI.Networker networkRelation)
        +                                    throws java.io.IOException,
        +                                           TwitterException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        TwitterException
        +
        +
      • +
      + + + +
        +
      • +

        getScreenName

        +
        public static java.util.Map<java.lang.String,java.lang.Number> getScreenName(java.util.Set<java.lang.Number> id_strs,
        +                                                                             int maxFollowers,
        +                                                                             boolean lookupLocalUsersByUserId)
        +                                                                      throws java.io.IOException,
        +                                                                             TwitterException
        +
        search for twitter user names by a given set of user id's
        +
        +
        Parameters:
        +
        id_strs -
        +
        lookupLocalUsersByUserId - if this is true and successful, the resulting names may contain users without user info in the user dump
        +
        Returns:
        +
        Throws:
        +
        java.io.IOException
        +
        TwitterException
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/TwitterScraper.TwitterTweet.html b/javadoc/org/loklak/harvester/TwitterScraper.TwitterTweet.html new file mode 100644 index 0000000..10edddf --- /dev/null +++ b/javadoc/org/loklak/harvester/TwitterScraper.TwitterTweet.html @@ -0,0 +1,493 @@ + + + + + +TwitterScraper.TwitterTweet + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class TwitterScraper.TwitterTweet

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable, ObjectEntry
    +
    +
    +
    Enclosing class:
    +
    TwitterScraper
    +
    +
    +
    +
    public static class TwitterScraper.TwitterTweet
    +extends MessageEntry
    +implements java.lang.Runnable
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TwitterTweet

        +
        public TwitterTweet(java.lang.String user_screen_name_raw,
        +                    long created_at_raw,
        +                    java.lang.String created_at_name_raw,
        +                    java.lang.String status_id_url_raw,
        +                    java.lang.String text_raw,
        +                    long retweets,
        +                    long favourites,
        +                    java.util.Collection<java.lang.String> images,
        +                    java.util.Collection<java.lang.String> videos,
        +                    java.lang.String place_name,
        +                    java.lang.String place_id,
        +                    UserEntry user,
        +                    boolean writeToIndex,
        +                    boolean writeToBackend)
        +             throws java.net.MalformedURLException
        +
        +
        Throws:
        +
        java.net.MalformedURLException
        +
        +
      • +
      + + + +
        +
      • +

        TwitterTweet

        +
        public TwitterTweet(JSONObject json)
        +
      • +
      + + + +
        +
      • +

        TwitterTweet

        +
        public TwitterTweet()
        +             throws java.net.MalformedURLException
        +
        +
        Throws:
        +
        java.net.MalformedURLException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getUser

        +
        public UserEntry getUser()
        +
      • +
      + + + +
        +
      • +

        willBeTimeConsuming

        +
        public boolean willBeTimeConsuming()
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      + + + +
        +
      • +

        isReady

        +
        public boolean isReady()
        +
      • +
      + + + +
        +
      • +

        waitReady

        +
        public boolean waitReady(long millis)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/TwitterScraper.html b/javadoc/org/loklak/harvester/TwitterScraper.html new file mode 100644 index 0000000..4da6921 --- /dev/null +++ b/javadoc/org/loklak/harvester/TwitterScraper.html @@ -0,0 +1,414 @@ + + + + + +TwitterScraper + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class TwitterScraper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.TwitterScraper
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class TwitterScraper
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.regex.Patternemoji_pattern_span 
      static java.util.concurrent.ExecutorServiceexecutor 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TwitterScraper() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.lang.String[]fetchTwitterVideos(java.lang.String tweetUrl) 
      static voidmain(java.lang.String[] args) +
      Usage: java twitter4j.examples.search.SearchTweets [query]
      +
      static Timelinesearch(java.lang.String query, + java.util.ArrayList<java.lang.String> filterList, + Timeline.Order order, + boolean writeToIndex, + boolean writeToBackend, + int jointime) 
      static Timelinesearch(java.lang.String query, + Timeline.Order order, + boolean writeToIndex, + boolean writeToBackend, + int jointime) 
      static java.lang.Stringunshorten(java.lang.String text) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        executor

        +
        public static final java.util.concurrent.ExecutorService executor
        +
      • +
      + + + +
        +
      • +

        emoji_pattern_span

        +
        public static final java.util.regex.Pattern emoji_pattern_span
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TwitterScraper

        +
        public TwitterScraper()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        search

        +
        public static Timeline search(java.lang.String query,
        +                              java.util.ArrayList<java.lang.String> filterList,
        +                              Timeline.Order order,
        +                              boolean writeToIndex,
        +                              boolean writeToBackend,
        +                              int jointime)
        +
      • +
      + + + +
        +
      • +

        search

        +
        public static Timeline search(java.lang.String query,
        +                              Timeline.Order order,
        +                              boolean writeToIndex,
        +                              boolean writeToBackend,
        +                              int jointime)
        +
      • +
      + + + +
        +
      • +

        fetchTwitterVideos

        +
        public static java.lang.String[] fetchTwitterVideos(java.lang.String tweetUrl)
        +
      • +
      + + + +
        +
      • +

        unshorten

        +
        public static java.lang.String unshorten(java.lang.String text)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
        Usage: java twitter4j.examples.search.SearchTweets [query]
        +
        +
        Parameters:
        +
        args - search query
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/WeiboInfoScraper.html b/javadoc/org/loklak/harvester/WeiboInfoScraper.html new file mode 100644 index 0000000..85c9b40 --- /dev/null +++ b/javadoc/org/loklak/harvester/WeiboInfoScraper.html @@ -0,0 +1,295 @@ + + + + + +WeiboInfoScraper + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class WeiboInfoScraper

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.WeiboInfoScraper
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class WeiboInfoScraper
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      WeiboInfoScraper() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddCookie(java.lang.String cookie) 
      java.lang.Stringget(java.lang.String url) 
      static voidmain(java.lang.String[] args) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WeiboInfoScraper

        +
        public WeiboInfoScraper()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addCookie

        +
        public void addCookie(java.lang.String cookie)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.lang.String get(java.lang.String url)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/YoutubeScraper.html b/javadoc/org/loklak/harvester/YoutubeScraper.html new file mode 100644 index 0000000..5c236a3 --- /dev/null +++ b/javadoc/org/loklak/harvester/YoutubeScraper.html @@ -0,0 +1,512 @@ + + + + + +YoutubeScraper + + + + + + + + + + + + +
+
org.loklak.harvester
+

Class YoutubeScraper

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    APIHandler
    +
    +
    +
    +
    public class YoutubeScraper
    +extends BaseScraper
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        YoutubeScraper

        +
        public YoutubeScraper()
        +
      • +
      + + + +
        +
      • +

        YoutubeScraper

        +
        public YoutubeScraper(java.util.Map<java.lang.String,java.lang.String> _extra)
        +
      • +
      + + + +
        +
      • +

        YoutubeScraper

        +
        public YoutubeScraper(java.lang.String _query)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/package-frame.html b/javadoc/org/loklak/harvester/package-frame.html new file mode 100644 index 0000000..70fe666 --- /dev/null +++ b/javadoc/org/loklak/harvester/package-frame.html @@ -0,0 +1,36 @@ + + + + + +org.loklak.harvester + + + + + +

org.loklak.harvester

+ + + diff --git a/javadoc/org/loklak/harvester/package-summary.html b/javadoc/org/loklak/harvester/package-summary.html new file mode 100644 index 0000000..4e9d4ed --- /dev/null +++ b/javadoc/org/loklak/harvester/package-summary.html @@ -0,0 +1,205 @@ + + + + + +org.loklak.harvester + + + + + + + + + + + +
+

Package org.loklak.harvester

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/harvester/package-tree.html b/javadoc/org/loklak/harvester/package-tree.html new file mode 100644 index 0000000..c155be7 --- /dev/null +++ b/javadoc/org/loklak/harvester/package-tree.html @@ -0,0 +1,185 @@ + + + + + +org.loklak.harvester Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.harvester

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/ClassicHarvester.html b/javadoc/org/loklak/harvester/strategy/ClassicHarvester.html new file mode 100644 index 0000000..6b8225c --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/ClassicHarvester.html @@ -0,0 +1,371 @@ + + + + + +ClassicHarvester + + + + + + + + + + + + +
+
org.loklak.harvester.strategy
+

Class ClassicHarvester

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.strategy.ClassicHarvester
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Harvester
    +
    +
    +
    +
    public class ClassicHarvester
    +extends java.lang.Object
    +implements Harvester
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      java.util.concurrent.ExecutorServiceexecutor 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ClassicHarvester() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidcheckContext(java.lang.String s, + boolean front) 
      voidcheckContext(Timeline tl, + boolean front) 
      intharvest() +
      This method is in-charge of harvesting and scraping messages
      +
      voidstop() +
      This method is executed when Loklak is shutting down
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        executor

        +
        public final java.util.concurrent.ExecutorService executor
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClassicHarvester

        +
        public ClassicHarvester()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        checkContext

        +
        public void checkContext(Timeline tl,
        +                         boolean front)
        +
      • +
      + + + +
        +
      • +

        checkContext

        +
        public void checkContext(java.lang.String s,
        +                         boolean front)
        +
      • +
      + + + +
        +
      • +

        harvest

        +
        public int harvest()
        +
        Description copied from interface: Harvester
        +
        This method is in-charge of harvesting and scraping messages
        +
        +
        Specified by:
        +
        harvest in interface Harvester
        +
        Returns:
        +
        the amount of messages that was harvested or -1 if it isn't harvesting
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
        Description copied from interface: Harvester
        +
        This method is executed when Loklak is shutting down
        +
        +
        Specified by:
        +
        stop in interface Harvester
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/Harvester.html b/javadoc/org/loklak/harvester/strategy/Harvester.html new file mode 100644 index 0000000..f61ae9a --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/Harvester.html @@ -0,0 +1,246 @@ + + + + + +Harvester + + + + + + + + + + + + +
+
org.loklak.harvester.strategy
+

Interface Harvester

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      intharvest() +
      This method is in-charge of harvesting and scraping messages
      +
      voidstop() +
      This method is executed when Loklak is shutting down
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        harvest

        +
        int harvest()
        +
        This method is in-charge of harvesting and scraping messages
        +
        +
        Returns:
        +
        the amount of messages that was harvested or -1 if it isn't harvesting
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        void stop()
        +
        This method is executed when Loklak is shutting down
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/KaizenHarvester.html b/javadoc/org/loklak/harvester/strategy/KaizenHarvester.html new file mode 100644 index 0000000..764a0aa --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/KaizenHarvester.html @@ -0,0 +1,352 @@ + + + + + +KaizenHarvester + + + + + + + + + + + + +
+
org.loklak.harvester.strategy
+

Class KaizenHarvester

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.strategy.KaizenHarvester
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Harvester
    +
    +
    +
    Direct Known Subclasses:
    +
    PriorityKaizenHarvester
    +
    +
    +
    +
    public class KaizenHarvester
    +extends java.lang.Object
    +implements Harvester
    +
    KaizenHarvester + + Kaizen is targeted to do more information and query grabbing, whether it + uses the official Twitter API, meta-data from collected tweets, or the + analysis of tweets.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KaizenHarvester

        +
        public KaizenHarvester(KaizenQueries queries)
        +
      • +
      + + + +
        +
      • +

        KaizenHarvester

        +
        public KaizenHarvester()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        shallHarvest

        +
        protected boolean shallHarvest()
        +
      • +
      + + + + + + + +
        +
      • +

        harvest

        +
        public int harvest()
        +
        Description copied from interface: Harvester
        +
        This method is in-charge of harvesting and scraping messages
        +
        +
        Specified by:
        +
        harvest in interface Harvester
        +
        Returns:
        +
        the amount of messages that was harvested or -1 if it isn't harvesting
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
        Description copied from interface: Harvester
        +
        This method is executed when Loklak is shutting down
        +
        +
        Specified by:
        +
        stop in interface Harvester
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/KaizenQueries.html b/javadoc/org/loklak/harvester/strategy/KaizenQueries.html new file mode 100644 index 0000000..c4b3494 --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/KaizenQueries.html @@ -0,0 +1,354 @@ + + + + + +KaizenQueries + + + + + + + + + + + + +
+
org.loklak.harvester.strategy
+

Class KaizenQueries

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.harvester.strategy.KaizenQueries
    • +
    +
  • +
+
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    PriorityKaizenHarvester.PriorityKaizenQueries
    +
    +
    +
    +
    public abstract class KaizenQueries
    +extends java.lang.Object
    +
    KaizenQueries are objects that holds the query strings for KaizenHarvester.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        KaizenQueries

        +
        public KaizenQueries()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addQuery

        +
        public boolean addQuery(java.lang.String query)
        +
      • +
      + + + +
        +
      • +

        addQuery

        +
        public abstract boolean addQuery(java.lang.String query,
        +                                 double score)
        +
      • +
      + + + +
        +
      • +

        getQuery

        +
        public abstract java.lang.String getQuery()
        +
      • +
      + + + +
        +
      • +

        getSize

        +
        public abstract int getSize()
        +
      • +
      + + + +
        +
      • +

        getMaxSize

        +
        public abstract int getMaxSize()
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
      • +
      + + + +
        +
      • +

        getDefaultKaizenQueries

        +
        public static KaizenQueries getDefaultKaizenQueries(int qLimit)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.PriorityKaizenQueries.html b/javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.PriorityKaizenQueries.html new file mode 100644 index 0000000..5b27dc0 --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.PriorityKaizenQueries.html @@ -0,0 +1,342 @@ + + + + + +PriorityKaizenHarvester.PriorityKaizenQueries + + + + + + + + + + + + +
+
org.loklak.harvester.strategy
+

Class PriorityKaizenHarvester.PriorityKaizenQueries

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PriorityKaizenQueries

        +
        public PriorityKaizenQueries(int size)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.html b/javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.html new file mode 100644 index 0000000..ad8c885 --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/PriorityKaizenHarvester.html @@ -0,0 +1,270 @@ + + + + + +PriorityKaizenHarvester + + + + + + + + + + + + +
+
org.loklak.harvester.strategy
+

Class PriorityKaizenHarvester

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PriorityKaizenHarvester

        +
        public PriorityKaizenHarvester()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/package-frame.html b/javadoc/org/loklak/harvester/strategy/package-frame.html new file mode 100644 index 0000000..39f353d --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/package-frame.html @@ -0,0 +1,28 @@ + + + + + +org.loklak.harvester.strategy + + + + + +

org.loklak.harvester.strategy

+ + + diff --git a/javadoc/org/loklak/harvester/strategy/package-summary.html b/javadoc/org/loklak/harvester/strategy/package-summary.html new file mode 100644 index 0000000..4e26d15 --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/package-summary.html @@ -0,0 +1,179 @@ + + + + + +org.loklak.harvester.strategy + + + + + + + + + + + +
+

Package org.loklak.harvester.strategy

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/harvester/strategy/package-tree.html b/javadoc/org/loklak/harvester/strategy/package-tree.html new file mode 100644 index 0000000..81c5777 --- /dev/null +++ b/javadoc/org/loklak/harvester/strategy/package-tree.html @@ -0,0 +1,149 @@ + + + + + +org.loklak.harvester.strategy Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.harvester.strategy

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/http/AccessTracker.Track.html b/javadoc/org/loklak/http/AccessTracker.Track.html new file mode 100644 index 0000000..db1b81e --- /dev/null +++ b/javadoc/org/loklak/http/AccessTracker.Track.html @@ -0,0 +1,480 @@ + + + + + +AccessTracker.Track + + + + + + + + + + + + +
+
org.loklak.http
+

Class AccessTracker.Track

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Track

        +
        public Track(java.lang.String servlet,
        +             java.lang.String clientHost,
        +             java.lang.String referrer)
        +
      • +
      + + + +
        +
      • +

        Track

        +
        public Track(java.lang.String serialized)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getClientHost

        +
        public java.lang.String getClientHost()
        +
      • +
      + + + +
        +
      • +

        getDate

        +
        public java.util.Date getDate()
        +
      • +
      + + + +
        +
      • +

        getTimeSinceLastAccess

        +
        public long getTimeSinceLastAccess()
        +
      • +
      + + + +
        +
      • +

        setTimeSinceLastAccess

        +
        public void setTimeSinceLastAccess(long time_since_last_access)
        +
      • +
      + + + +
        +
      • +

        isDoSBlackout

        +
        public boolean isDoSBlackout()
        +
      • +
      + + + +
        +
      • +

        setDoSBlackout

        +
        public void setDoSBlackout(boolean doS_blackout)
        +
      • +
      + + + +
        +
      • +

        isDoSServicereduction

        +
        public boolean isDoSServicereduction()
        +
      • +
      + + + +
        +
      • +

        setDoSServicereduction

        +
        public void setDoSServicereduction(boolean doS_servicereduction)
        +
      • +
      + + + +
        +
      • +

        isLocalhostAccess

        +
        public boolean isLocalhostAccess()
        +
      • +
      + + + +
        +
      • +

        setQuery

        +
        public void setQuery(java.util.Map<java.lang.String,java.lang.String> qm)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Description copied from class: JSONObject
        +
        Make a JSON text of this JSONObject. For compactness, no whitespace is + added. If this would not result in a syntactically correct JSON text, + then null will be returned instead. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Overrides:
        +
        toString in class JSONObject
        +
        Returns:
        +
        a printable, displayable, portable, transmittable representation + of the object, beginning with { (left + brace) and ending with } (right + brace).
        +
        +
      • +
      + + + +
        +
      • +

        finalize

        +
        public void finalize()
        +
        +
        Overrides:
        +
        finalize in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/AccessTracker.html b/javadoc/org/loklak/http/AccessTracker.html new file mode 100644 index 0000000..c92c780 --- /dev/null +++ b/javadoc/org/loklak/http/AccessTracker.html @@ -0,0 +1,435 @@ + + + + + +AccessTracker + + + + + + + + + + + + +
+
org.loklak.http
+

Class AccessTracker

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Thread
    • +
    • +
        +
      • org.loklak.http.AccessTracker
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class AccessTracker
    +extends java.lang.Thread
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      class AccessTracker.Track 
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        +java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringEVENT_PREFIX 
      static intMAX_FINISHED 
      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        +MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AccessTracker(java.io.File dump_dir, + java.lang.String dump_file_prefix, + long track_timeout, + long schedule_period) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() 
      java.util.Collection<AccessTracker.Track>getTracks() 
      voidrun() 
      AccessTracker.TrackstartTracking(java.lang.String servlet, + java.lang.String clientHost, + java.lang.String referrer) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        +activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AccessTracker

        +
        public AccessTracker(java.io.File dump_dir,
        +                     java.lang.String dump_file_prefix,
        +                     long track_timeout,
        +                     long schedule_period)
        +              throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        Overrides:
        +
        run in class java.lang.Thread
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
      • +
      + + + +
        +
      • +

        startTracking

        +
        public AccessTracker.Track startTracking(java.lang.String servlet,
        +                                         java.lang.String clientHost,
        +                                         java.lang.String referrer)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/ClientConnection.html b/javadoc/org/loklak/http/ClientConnection.html new file mode 100644 index 0000000..957b7b4 --- /dev/null +++ b/javadoc/org/loklak/http/ClientConnection.html @@ -0,0 +1,734 @@ + + + + + +ClientConnection + + + + + + + + + + + + +
+
org.loklak.http
+

Class ClientConnection

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.http.ClientConnection
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ClientConnection
    +extends java.lang.Object
    +
    Helper class to provide BufferedReader Objects for get and post connections
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringCHARSET 
      static PoolingHttpClientConnectionManagercm 
      static byte[]CRLF 
      java.io.BufferedInputStreaminputStream 
      static java.lang.StringUSER_AGENT 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ClientConnection(java.lang.String urlstring) +
      GET request
      +
      ClientConnection(java.lang.String urlstring, + boolean useAuthentication) +
      GET request
      +
      ClientConnection(java.lang.String urlstring, + java.util.Map<java.lang.String,byte[]> map) +
      POST request
      +
      ClientConnection(java.lang.String urlstring, + java.util.Map<java.lang.String,byte[]> map, + boolean useAuthentication) +
      POST request
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() 
      static byte[]download(java.lang.String source_url) 
      static byte[]download(java.lang.String source_url, + boolean useAuthentication) 
      static voiddownload(java.lang.String source_url, + java.io.File target_file) 
      static voiddownload(java.lang.String source_url, + java.io.File target_file, + boolean useAuthentication) 
      static byte[]downloadPeer(java.lang.String source_url) 
      static voiddownloadPeer(java.lang.String source_url, + java.io.File target_file) 
      static CloseableHttpClientgetCustomClosableHttpClient(boolean useAuthentication) 
      static java.lang.StringgetHTML(HttpEntity httpEntity) +
      Get body of HttpEntity as String
      +
      static java.lang.StringgetLocationHeader(HttpResponse httpResponse) +
      Find value of location header from the given HttpResponse
      +
      static java.lang.StringgetMetaRedirectURL(HttpEntity httpEntity) +
      Get redirect URL from Meta tag in response body
      +
      static java.lang.StringgetRedirect(java.lang.String urlstring) +
      get a redirect for an url: this method shall be called if it is expected that a url + is redirected to another url.
      +
      static java.lang.StringgetRedirect(java.lang.String urlstring, + boolean useAuthentication) 
      static java.lang.StringgetRedirect(java.lang.String urlstring, + boolean useAuthentication, + boolean isGet) +
      get a redirect for an url: this method shall be called if it is expected that a url + is redirected to another url.
      +
      intgetStatusCode() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        USER_AGENT

        +
        public static java.lang.String USER_AGENT
        +
      • +
      + + + + + + + +
        +
      • +

        CRLF

        +
        public static final byte[] CRLF
        +
      • +
      + + + +
        +
      • +

        cm

        +
        public static PoolingHttpClientConnectionManager cm
        +
      • +
      + + + +
        +
      • +

        inputStream

        +
        public java.io.BufferedInputStream inputStream
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientConnection

        +
        public ClientConnection(java.lang.String urlstring,
        +                        boolean useAuthentication)
        +                 throws java.io.IOException
        +
        GET request
        +
        +
        Parameters:
        +
        urlstring -
        +
        useAuthentication -
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        ClientConnection

        +
        public ClientConnection(java.lang.String urlstring)
        +                 throws java.io.IOException
        +
        GET request
        +
        +
        Parameters:
        +
        urlstring -
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        ClientConnection

        +
        public ClientConnection(java.lang.String urlstring,
        +                        java.util.Map<java.lang.String,byte[]> map,
        +                        boolean useAuthentication)
        +                 throws ClientProtocolException,
        +                        java.io.IOException
        +
        POST request
        +
        +
        Parameters:
        +
        urlstring -
        +
        map -
        +
        useAuthentication -
        +
        Throws:
        +
        ClientProtocolException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        ClientConnection

        +
        public ClientConnection(java.lang.String urlstring,
        +                        java.util.Map<java.lang.String,byte[]> map)
        +                 throws ClientProtocolException,
        +                        java.io.IOException
        +
        POST request
        +
        +
        Parameters:
        +
        urlstring -
        +
        map -
        +
        Throws:
        +
        ClientProtocolException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCustomClosableHttpClient

        +
        public static CloseableHttpClient getCustomClosableHttpClient(boolean useAuthentication)
        +
      • +
      + + + +
        +
      • +

        getHTML

        +
        public static java.lang.String getHTML(HttpEntity httpEntity)
        +                                throws java.io.IOException
        +
        Get body of HttpEntity as String
        +
        +
        Parameters:
        +
        httpREntity -
        +
        Returns:
        +
        response body
        +
        Throws:
        +
        java.io.IOException - when readLine fails
        +
        +
      • +
      + + + +
        +
      • +

        getMetaRedirectURL

        +
        public static java.lang.String getMetaRedirectURL(HttpEntity httpEntity)
        +                                           throws java.io.IOException
        +
        Get redirect URL from Meta tag in response body
        +
        +
        Parameters:
        +
        httpEntity -
        +
        Returns:
        +
        redirect URL if any else null
        +
        Throws:
        +
        java.io.IOException - when getHTML() fails
        +
        +
      • +
      + + + +
        +
      • +

        getLocationHeader

        +
        public static java.lang.String getLocationHeader(HttpResponse httpResponse)
        +
        Find value of location header from the given HttpResponse
        +
        +
        Parameters:
        +
        httpResponse -
        +
        Returns:
        +
        Value of location field if exists, null otherwise
        +
        +
      • +
      + + + +
        +
      • +

        getRedirect

        +
        public static java.lang.String getRedirect(java.lang.String urlstring,
        +                                           boolean useAuthentication,
        +                                           boolean isGet)
        +                                    throws java.io.IOException
        +
        get a redirect for an url: this method shall be called if it is expected that a url + is redirected to another url. This method then discovers the redirect.
        +
        +
        Parameters:
        +
        urlstring -
        +
        useAuthentication -
        +
        isGet -
        +
        Returns:
        +
        the redirect url for the given urlstring
        +
        Throws:
        +
        java.io.IOException - if there is some error with the link
        +
        +
      • +
      + + + +
        +
      • +

        getRedirect

        +
        public static java.lang.String getRedirect(java.lang.String urlstring)
        +                                    throws java.io.IOException
        +
        get a redirect for an url: this method shall be called if it is expected that a url + is redirected to another url. This method then discovers the redirect.
        +
        +
        Parameters:
        +
        urlstring -
        +
        Returns:
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getRedirect

        +
        public static java.lang.String getRedirect(java.lang.String urlstring,
        +                                           boolean useAuthentication)
        +                                    throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
      • +
      + + + +
        +
      • +

        download

        +
        public static void download(java.lang.String source_url,
        +                            java.io.File target_file,
        +                            boolean useAuthentication)
        +
      • +
      + + + +
        +
      • +

        download

        +
        public static void download(java.lang.String source_url,
        +                            java.io.File target_file)
        +
      • +
      + + + +
        +
      • +

        downloadPeer

        +
        public static void downloadPeer(java.lang.String source_url,
        +                                java.io.File target_file)
        +
      • +
      + + + +
        +
      • +

        download

        +
        public static byte[] download(java.lang.String source_url,
        +                              boolean useAuthentication)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getStatusCode

        +
        public int getStatusCode()
        +
      • +
      + + + +
        +
      • +

        download

        +
        public static byte[] download(java.lang.String source_url)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        downloadPeer

        +
        public static byte[] downloadPeer(java.lang.String source_url)
        +                           throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/CookieRequest.html b/javadoc/org/loklak/http/CookieRequest.html new file mode 100644 index 0000000..cb9e1fd --- /dev/null +++ b/javadoc/org/loklak/http/CookieRequest.html @@ -0,0 +1,245 @@ + + + + + +CookieRequest + + + + + + + + + + + + +
+
org.loklak.http
+

Interface CookieRequest

+
+
+
+
    +
  • +
    +
    +
    public interface CookieRequest
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        body

        +
        java.lang.String body()
        +
      • +
      + + + +
        +
      • +

        cookie

        +
        java.lang.String cookie()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/CookieRequestManager.html b/javadoc/org/loklak/http/CookieRequestManager.html new file mode 100644 index 0000000..8ebf8e7 --- /dev/null +++ b/javadoc/org/loklak/http/CookieRequestManager.html @@ -0,0 +1,352 @@ + + + + + +CookieRequestManager + + + + + + + + + + + + +
+
org.loklak.http
+

Class CookieRequestManager

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.http.CookieRequestManager
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CookieRequestManager
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CookieRequestManager

        +
        public CookieRequestManager()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addCookie

        +
        public void addCookie(java.lang.String cookie)
        +
      • +
      + + + +
        +
      • +

        delCookie

        +
        public boolean delCookie(java.lang.String cookie)
        +
      • +
      + + + +
        +
      • +

        cookieCount

        +
        public int cookieCount()
        +
      • +
      + + + +
        +
      • +

        randGetCookie

        +
        public java.lang.String randGetCookie()
        +
      • +
      + + + +
        +
      • +

        inputStream2String

        +
        public static java.lang.String inputStream2String(java.io.InputStream is)
        +                                           throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buildRequest

        +
        public CookieRequest buildRequest(java.lang.String url)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/RemoteAccess.FileType.html b/javadoc/org/loklak/http/RemoteAccess.FileType.html new file mode 100644 index 0000000..a0dc127 --- /dev/null +++ b/javadoc/org/loklak/http/RemoteAccess.FileType.html @@ -0,0 +1,391 @@ + + + + + +RemoteAccess.FileType + + + + + + + + + + + + +
+
org.loklak.http
+

Enum RemoteAccess.FileType

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      GIF 
      JPG 
      JSON 
      PNG 
      RSS 
      UNKNOWN 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static RemoteAccess.FileTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static RemoteAccess.FileType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static RemoteAccess.FileType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (RemoteAccess.FileType c : RemoteAccess.FileType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static RemoteAccess.FileType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/RemoteAccess.FileTypeEncoding.html b/javadoc/org/loklak/http/RemoteAccess.FileTypeEncoding.html new file mode 100644 index 0000000..0309d53 --- /dev/null +++ b/javadoc/org/loklak/http/RemoteAccess.FileTypeEncoding.html @@ -0,0 +1,254 @@ + + + + + +RemoteAccess.FileTypeEncoding + + + + + + + + + + + + +
+
org.loklak.http
+

Class RemoteAccess.FileTypeEncoding

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.http.RemoteAccess.FileTypeEncoding
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    RemoteAccess
    +
    +
    +
    +
    public static class RemoteAccess.FileTypeEncoding
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/RemoteAccess.html b/javadoc/org/loklak/http/RemoteAccess.html new file mode 100644 index 0000000..cb5ca9d --- /dev/null +++ b/javadoc/org/loklak/http/RemoteAccess.html @@ -0,0 +1,507 @@ + + + + + +RemoteAccess + + + + + + + + + + + + +
+
org.loklak.http
+

Class RemoteAccess

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.http.RemoteAccess
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class RemoteAccess
    +extends java.lang.Object
    +
    Storage of a peer list which can be used for peer-to-peer communication. + This is a static class to provide access to all other objects easily. + We store the IPs here only temporary, not permanently.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        history

        +
        public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,RemoteAccess>> history
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evaluate

        +
        public static Query evaluate(HttpServletRequest request)
        +
      • +
      + + + +
        +
      • +

        latestVisit

        +
        public static long latestVisit(java.lang.String servlet,
        +                               java.lang.String remoteHost)
        +
      • +
      + + + +
        +
      • +

        hostHash

        +
        public static java.lang.String hostHash(java.lang.String remoteHost)
        +
      • +
      + + + +
        +
      • +

        getRemoteHost

        +
        public java.lang.String getRemoteHost()
        +
      • +
      + + + +
        +
      • +

        getLocalPath

        +
        public java.lang.String getLocalPath()
        +
      • +
      + + + +
        +
      • +

        getAccessTime

        +
        public long getAccessTime()
        +
      • +
      + + + +
        +
      • +

        getLocalHTTPPort

        +
        public int getLocalHTTPPort()
        +
      • +
      + + + +
        +
      • +

        getLocalHTTPSPort

        +
        public int getLocalHTTPSPort()
        +
      • +
      + + + +
        +
      • +

        getPeername

        +
        public java.lang.String getPeername()
        +
      • +
      + + + +
        +
      • +

        addLocalhost

        +
        public static void addLocalhost(java.lang.String h)
        +
      • +
      + + + +
        +
      • +

        addReferrer

        +
        public static void addReferrer(java.util.regex.Pattern p)
        +
      • +
      + + + +
        +
      • +

        isLocalhost

        +
        public static boolean isLocalhost(java.lang.String host,
        +                                  java.lang.String referrer)
        +
      • +
      + + + +
        +
      • +

        getQueryMap

        +
        public static java.util.Map<java.lang.String,java.lang.String> getQueryMap(java.lang.String query)
        +
      • +
      + + + +
        +
      • +

        getPostMap

        +
        public static java.util.Map<java.lang.String,byte[]> getPostMap(HttpServletRequest request)
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/http/package-frame.html b/javadoc/org/loklak/http/package-frame.html new file mode 100644 index 0000000..d37f401 --- /dev/null +++ b/javadoc/org/loklak/http/package-frame.html @@ -0,0 +1,32 @@ + + + + + +org.loklak.http + + + + + +

org.loklak.http

+ + + diff --git a/javadoc/org/loklak/http/package-summary.html b/javadoc/org/loklak/http/package-summary.html new file mode 100644 index 0000000..6b413bc --- /dev/null +++ b/javadoc/org/loklak/http/package-summary.html @@ -0,0 +1,190 @@ + + + + + +org.loklak.http + + + + + + + + + + + +
+

Package org.loklak.http

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/http/package-tree.html b/javadoc/org/loklak/http/package-tree.html new file mode 100644 index 0000000..01c3afa --- /dev/null +++ b/javadoc/org/loklak/http/package-tree.html @@ -0,0 +1,164 @@ + + + + + +org.loklak.http Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.http

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/objects/AbstractObjectEntry.html b/javadoc/org/loklak/objects/AbstractObjectEntry.html new file mode 100644 index 0000000..f90251f --- /dev/null +++ b/javadoc/org/loklak/objects/AbstractObjectEntry.html @@ -0,0 +1,595 @@ + + + + + +AbstractObjectEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Class AbstractObjectEntry

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        TIMESTAMP_FIELDNAME

        +
        public static final java.lang.String TIMESTAMP_FIELDNAME
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        CREATED_AT_FIELDNAME

        +
        public static final java.lang.String CREATED_AT_FIELDNAME
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        utcFormatter

        +
        public static final DateTimeFormatter utcFormatter
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractObjectEntry

        +
        public AbstractObjectEntry()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Description copied from class: JSONObject
        +
        Make a JSON text of this JSONObject. For compactness, no whitespace is + added. If this would not result in a syntactically correct JSON text, + then null will be returned instead. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Specified by:
        +
        toString in interface ObjectEntry
        +
        Overrides:
        +
        toString in class JSONObject
        +
        Returns:
        +
        a printable, displayable, portable, transmittable representation + of the object, beginning with { (left + brace) and ending with } (right + brace).
        +
        +
      • +
      + + + +
        +
      • +

        toJSONBytes

        +
        public byte[] toJSONBytes()
        +
      • +
      + + + +
        +
      • +

        writeDate

        +
        public static void writeDate(JsonGenerator json,
        +                             java.lang.String fieldName,
        +                             long time)
        +                      throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        writeArray

        +
        public static void writeArray(JsonGenerator json,
        +                              java.lang.String fieldName,
        +                              java.util.Collection<java.lang.String> array)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        writeArray

        +
        public static void writeArray(JsonGenerator json,
        +                              java.lang.String fieldName,
        +                              java.lang.String[] array)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        writeArray

        +
        public static void writeArray(JsonGenerator json,
        +                              java.lang.String fieldName,
        +                              double[] array)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        parseDate

        +
        public static java.util.Date parseDate(java.lang.Object d)
        +
      • +
      + + + +
        +
      • +

        parseDate

        +
        public static java.util.Date parseDate(java.lang.Object d,
        +                                       java.util.Date dflt)
        +
      • +
      + + + +
        +
      • +

        parseString

        +
        public static java.lang.String parseString(java.lang.Object s)
        +
      • +
      + + + +
        +
      • +

        parseLong

        +
        public static long parseLong(java.lang.Object n)
        +
      • +
      + + + +
        +
      • +

        parseArrayList

        +
        public static java.util.LinkedHashSet<java.lang.String> parseArrayList(java.lang.Object l)
        +
      • +
      + + + +
        +
      • +

        lazyGet

        +
        public java.lang.Object lazyGet(JSONObject json,
        +                                java.lang.String key)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/AccountEntry.Field.html b/javadoc/org/loklak/objects/AccountEntry.Field.html new file mode 100644 index 0000000..29f7428 --- /dev/null +++ b/javadoc/org/loklak/objects/AccountEntry.Field.html @@ -0,0 +1,403 @@ + + + + + +AccountEntry.Field + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum AccountEntry.Field

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static AccountEntry.Field[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (AccountEntry.Field c : AccountEntry.Field.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static AccountEntry.Field valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/AccountEntry.html b/javadoc/org/loklak/objects/AccountEntry.html new file mode 100644 index 0000000..4864518 --- /dev/null +++ b/javadoc/org/loklak/objects/AccountEntry.html @@ -0,0 +1,509 @@ + + + + + +AccountEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Class AccountEntry

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AccountEntry

        +
        public AccountEntry(JSONObject map)
        +             throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        public void init(JSONObject extmap)
        +          throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getScreenName

        +
        public java.lang.String getScreenName()
        +
      • +
      + + + +
        +
      • +

        getAuthenticationFirst

        +
        public java.util.Date getAuthenticationFirst()
        +
      • +
      + + + +
        +
      • +

        getAuthenticationLatest

        +
        public java.util.Date getAuthenticationLatest()
        +
      • +
      + + + +
        +
      • +

        getSourceType

        +
        public SourceType getSourceType()
        +
      • +
      + + + +
        +
      • +

        getOauthToken

        +
        public java.lang.String getOauthToken()
        +
      • +
      + + + +
        +
      • +

        getOauthTokenSecret

        +
        public java.lang.String getOauthTokenSecret()
        +
      • +
      + + + +
        +
      • +

        getApps

        +
        public java.lang.String getApps()
        +
      • +
      + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/ImportProfileEntry.EntryStatus.html b/javadoc/org/loklak/objects/ImportProfileEntry.EntryStatus.html new file mode 100644 index 0000000..07120e4 --- /dev/null +++ b/javadoc/org/loklak/objects/ImportProfileEntry.EntryStatus.html @@ -0,0 +1,343 @@ + + + + + +ImportProfileEntry.EntryStatus + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum ImportProfileEntry.EntryStatus

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      ACTIVE 
      DELETED 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static ImportProfileEntry.EntryStatusvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ImportProfileEntry.EntryStatus[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ImportProfileEntry.EntryStatus[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ImportProfileEntry.EntryStatus c : ImportProfileEntry.EntryStatus.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ImportProfileEntry.EntryStatus valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/ImportProfileEntry.PrivacyStatus.html b/javadoc/org/loklak/objects/ImportProfileEntry.PrivacyStatus.html new file mode 100644 index 0000000..94f948f --- /dev/null +++ b/javadoc/org/loklak/objects/ImportProfileEntry.PrivacyStatus.html @@ -0,0 +1,343 @@ + + + + + +ImportProfileEntry.PrivacyStatus + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum ImportProfileEntry.PrivacyStatus

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      PRIVATE 
      PUBLIC 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static ImportProfileEntry.PrivacyStatusvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ImportProfileEntry.PrivacyStatus[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ImportProfileEntry.PrivacyStatus[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ImportProfileEntry.PrivacyStatus c : ImportProfileEntry.PrivacyStatus.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ImportProfileEntry.PrivacyStatus valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/ImportProfileEntry.html b/javadoc/org/loklak/objects/ImportProfileEntry.html new file mode 100644 index 0000000..e603720 --- /dev/null +++ b/javadoc/org/loklak/objects/ImportProfileEntry.html @@ -0,0 +1,973 @@ + + + + + +ImportProfileEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Class ImportProfileEntry

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        protected java.lang.String id
        +
      • +
      + + + +
        +
      • +

        created_at

        +
        protected java.util.Date created_at
        +
      • +
      + + + +
        +
      • +

        last_modified

        +
        protected java.util.Date last_modified
        +
      • +
      + + + +
        +
      • +

        last_harvested

        +
        protected java.util.Date last_harvested
        +
      • +
      + + + +
        +
      • +

        importer

        +
        protected java.lang.String importer
        +
      • +
      + + + +
        +
      • +

        client_host

        +
        protected java.lang.String client_host
        +
      • +
      + + + +
        +
      • +

        source_url

        +
        protected java.net.URL source_url
        +
      • +
      + + + +
        +
      • +

        source_hash

        +
        protected long source_hash
        +
      • +
      + + + +
        +
      • +

        source_type

        +
        protected SourceType source_type
        +
      • +
      + + + + + + + +
        +
      • +

        lifetime

        +
        protected long lifetime
        +
      • +
      + + + +
        +
      • +

        imported

        +
        protected java.util.List<java.lang.String> imported
        +
      • +
      + + + +
        +
      • +

        sharers

        +
        protected java.util.List<java.lang.String> sharers
        +
      • +
      + + + + + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ImportProfileEntry

        +
        public ImportProfileEntry(JSONObject json)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getId

        +
        public java.lang.String getId()
        +
      • +
      + + + +
        +
      • +

        setId

        +
        public void setId(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        getCreatedAt

        +
        public java.util.Date getCreatedAt()
        +
      • +
      + + + +
        +
      • +

        setCreatedAt

        +
        public void setCreatedAt(java.util.Date created_at)
        +
      • +
      + + + +
        +
      • +

        getLastModified

        +
        public java.util.Date getLastModified()
        +
      • +
      + + + +
        +
      • +

        setLastModified

        +
        public void setLastModified(java.util.Date last_modified)
        +
      • +
      + + + +
        +
      • +

        getLastHarvested

        +
        public java.util.Date getLastHarvested()
        +
      • +
      + + + +
        +
      • +

        setLastHarvested

        +
        public void setLastHarvested(java.util.Date last_harvested)
        +
      • +
      + + + +
        +
      • +

        getImporter

        +
        public java.lang.String getImporter()
        +
      • +
      + + + +
        +
      • +

        setImporter

        +
        public void setImporter(java.lang.String importer)
        +
      • +
      + + + +
        +
      • +

        getClientHost

        +
        public java.lang.String getClientHost()
        +
      • +
      + + + +
        +
      • +

        setClientHost

        +
        public void setClientHost(java.lang.String client_host)
        +
      • +
      + + + +
        +
      • +

        getSourceUrl

        +
        public java.net.URL getSourceUrl()
        +
      • +
      + + + +
        +
      • +

        setSourceUrl

        +
        public void setSourceUrl(java.net.URL source_url)
        +
      • +
      + + + +
        +
      • +

        getSourceHash

        +
        public long getSourceHash()
        +
      • +
      + + + +
        +
      • +

        setSourceHash

        +
        public void setSourceHash(long source_hash)
        +
      • +
      + + + +
        +
      • +

        getSourceType

        +
        public SourceType getSourceType()
        +
      • +
      + + + +
        +
      • +

        setSourceType

        +
        public void setSourceType(SourceType source_type)
        +
      • +
      + + + + + + + +
        +
      • +

        setHarvestingFreq

        +
        public void setHarvestingFreq(HarvestingFrequency harvesting_freq)
        +
      • +
      + + + +
        +
      • +

        getLifetime

        +
        public long getLifetime()
        +
      • +
      + + + +
        +
      • +

        setLifetime

        +
        public void setLifetime(long lifetime)
        +
      • +
      + + + +
        +
      • +

        getImported

        +
        public java.util.List<java.lang.String> getImported()
        +
      • +
      + + + +
        +
      • +

        setImported

        +
        public void setImported(java.util.List<java.lang.String> imported)
        +
      • +
      + + + +
        +
      • +

        getSharers

        +
        public java.util.List<java.lang.String> getSharers()
        +
      • +
      + + + +
        +
      • +

        setSharers

        +
        public void setSharers(java.util.List<java.lang.String> sharers)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/MessageEntry.TextLinkMap.html b/javadoc/org/loklak/objects/MessageEntry.TextLinkMap.html new file mode 100644 index 0000000..cd8aa6b --- /dev/null +++ b/javadoc/org/loklak/objects/MessageEntry.TextLinkMap.html @@ -0,0 +1,326 @@ + + + + + +MessageEntry.TextLinkMap + + + + + + + + + + + + +
+
org.loklak.objects
+

Class MessageEntry.TextLinkMap

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.objects.MessageEntry.TextLinkMap
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    MessageEntry
    +
    +
    +
    +
    public static class MessageEntry.TextLinkMap
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      JSONObjectshort2long 
      java.lang.Stringtext 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TextLinkMap() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        text

        +
        public java.lang.String text
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TextLinkMap

        +
        public TextLinkMap()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/MessageEntry.html b/javadoc/org/loklak/objects/MessageEntry.html new file mode 100644 index 0000000..d754657 --- /dev/null +++ b/javadoc/org/loklak/objects/MessageEntry.html @@ -0,0 +1,1571 @@ + + + + + +MessageEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Class MessageEntry

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        RICH_TEXT_SEPARATOR

        +
        public static final java.lang.String RICH_TEXT_SEPARATOR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        timestampDate

        +
        protected java.util.Date timestampDate
        +
      • +
      + + + +
        +
      • +

        created_at

        +
        protected java.util.Date created_at
        +
      • +
      + + + +
        +
      • +

        on

        +
        protected java.util.Date on
        +
      • +
      + + + +
        +
      • +

        to

        +
        protected java.util.Date to
        +
      • +
      + + + +
        +
      • +

        source_type

        +
        protected SourceType source_type
        +
      • +
      + + + +
        +
      • +

        provider_type

        +
        protected ProviderType provider_type
        +
      • +
      + + + +
        +
      • +

        provider_hash

        +
        protected java.lang.String provider_hash
        +
      • +
      + + + +
        +
      • +

        screen_name

        +
        protected java.lang.String screen_name
        +
      • +
      + + + +
        +
      • +

        retweet_from

        +
        protected java.lang.String retweet_from
        +
      • +
      + + + +
        +
      • +

        postId

        +
        protected java.lang.String postId
        +
      • +
      + + + +
        +
      • +

        canonical_id

        +
        protected java.lang.String canonical_id
        +
      • +
      + + + +
        +
      • +

        parent

        +
        protected java.lang.String parent
        +
      • +
      + + + +
        +
      • +

        text

        +
        protected java.lang.String text
        +
      • +
      + + + +
        +
      • +

        status_id_url

        +
        protected java.net.URL status_id_url
        +
      • +
      + + + +
        +
      • +

        retweet_count

        +
        protected long retweet_count
        +
      • +
      + + + +
        +
      • +

        favourites_count

        +
        protected long favourites_count
        +
      • +
      + + + +
        +
      • +

        images

        +
        protected java.util.LinkedHashSet<java.lang.String> images
        +
      • +
      + + + +
        +
      • +

        audio

        +
        protected java.util.LinkedHashSet<java.lang.String> audio
        +
      • +
      + + + +
        +
      • +

        videos

        +
        protected java.util.LinkedHashSet<java.lang.String> videos
        +
      • +
      + + + +
        +
      • +

        place_name

        +
        protected java.lang.String place_name
        +
      • +
      + + + +
        +
      • +

        place_id

        +
        protected java.lang.String place_id
        +
      • +
      + + + +
        +
      • +

        location_point

        +
        protected double[] location_point
        +
      • +
      + + + +
        +
      • +

        location_mark

        +
        protected double[] location_mark
        +
      • +
      + + + +
        +
      • +

        location_radius

        +
        protected int location_radius
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        place_country

        +
        protected java.lang.String place_country
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MessageEntry

        +
        public MessageEntry()
        +             throws java.net.MalformedURLException
        +
        +
        Throws:
        +
        java.net.MalformedURLException
        +
        +
      • +
      + + + +
        +
      • +

        MessageEntry

        +
        public MessageEntry(JSONObject json)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTimestampDate

        +
        public java.util.Date getTimestampDate()
        +
        +
        Overrides:
        +
        getTimestampDate in class Post
        +
        +
      • +
      + + + +
        +
      • +

        getCreatedAt

        +
        public java.util.Date getCreatedAt()
        +
      • +
      + + + +
        +
      • +

        setCreatedAt

        +
        public void setCreatedAt(java.util.Date created_at)
        +
      • +
      + + + +
        +
      • +

        getOn

        +
        public java.util.Date getOn()
        +
      • +
      + + + +
        +
      • +

        setOn

        +
        public void setOn(java.util.Date on)
        +
      • +
      + + + +
        +
      • +

        getTo

        +
        public java.util.Date getTo()
        +
      • +
      + + + +
        +
      • +

        setTo

        +
        public void setTo(java.util.Date to)
        +
      • +
      + + + +
        +
      • +

        getSourceType

        +
        public SourceType getSourceType()
        +
      • +
      + + + +
        +
      • +

        setSourceType

        +
        public void setSourceType(SourceType source_type)
        +
      • +
      + + + +
        +
      • +

        getProviderType

        +
        public ProviderType getProviderType()
        +
      • +
      + + + +
        +
      • +

        setProviderType

        +
        public void setProviderType(ProviderType provider_type)
        +
      • +
      + + + +
        +
      • +

        getProviderHash

        +
        public java.lang.String getProviderHash()
        +
      • +
      + + + +
        +
      • +

        setProviderHash

        +
        public void setProviderHash(java.lang.String provider_hash)
        +
      • +
      + + + +
        +
      • +

        getScreenName

        +
        public java.lang.String getScreenName()
        +
      • +
      + + + +
        +
      • +

        setScreenName

        +
        public void setScreenName(java.lang.String user_screen_name)
        +
      • +
      + + + +
        +
      • +

        getRetweetFrom

        +
        public java.lang.String getRetweetFrom()
        +
      • +
      + + + +
        +
      • +

        setRetweetFrom

        +
        public void setRetweetFrom(java.lang.String retweet_from)
        +
      • +
      + + + +
        +
      • +

        getStatusIdUrl

        +
        public java.net.URL getStatusIdUrl()
        +
      • +
      + + + +
        +
      • +

        setStatusIdUrl

        +
        public void setStatusIdUrl(java.net.URL status_id_url)
        +
      • +
      + + + +
        +
      • +

        getRetweetCount

        +
        public long getRetweetCount()
        +
      • +
      + + + +
        +
      • +

        setRetweetCount

        +
        public void setRetweetCount(long retweet_count)
        +
      • +
      + + + +
        +
      • +

        getFavouritesCount

        +
        public long getFavouritesCount()
        +
      • +
      + + + +
        +
      • +

        setFavouritesCount

        +
        public void setFavouritesCount(long favourites_count)
        +
      • +
      + + + +
        +
      • +

        getPlaceName

        +
        public java.lang.String getPlaceName()
        +
      • +
      + + + + + + + +
        +
      • +

        setPlaceName

        +
        public void setPlaceName(java.lang.String place_name,
        +                         QueryEntry.PlaceContext place_context)
        +
      • +
      + + + +
        +
      • +

        getPlaceId

        +
        public java.lang.String getPlaceId()
        +
      • +
      + + + +
        +
      • +

        setPlaceId

        +
        public void setPlaceId(java.lang.String place_id)
        +
      • +
      + + + +
        +
      • +

        getLocationPoint

        +
        public double[] getLocationPoint()
        +
        +
        Returns:
        +
        [longitude, latitude]
        +
        +
      • +
      + + + +
        +
      • +

        setLocationPoint

        +
        public void setLocationPoint(double[] location_point)
        +
        set the location
        +
        +
        Parameters:
        +
        location_point - in the form [longitude, latitude]
        +
        +
      • +
      + + + +
        +
      • +

        getPostId

        +
        public java.lang.String getPostId()
        +
        +
        Overrides:
        +
        getPostId in class Post
        +
        +
      • +
      + + + +
        +
      • +

        getLocationMark

        +
        public double[] getLocationMark()
        +
        +
        Returns:
        +
        [longitude, latitude] which is inside of getLocationRadius() from getLocationPoint()
        +
        +
      • +
      + + + +
        +
      • +

        setLocationMark

        +
        public void setLocationMark(double[] location_mark)
        +
        set the location
        +
        +
        Parameters:
        +
        location_point - in the form [longitude, latitude]
        +
        +
      • +
      + + + +
        +
      • +

        getLocationRadius

        +
        public int getLocationRadius()
        +
        get the radius in meter
        +
        +
        Returns:
        +
        radius in meter around getLocationPoint() (NOT getLocationMark())
        +
        +
      • +
      + + + +
        +
      • +

        setLocationRadius

        +
        public void setLocationRadius(int location_radius)
        +
      • +
      + + + +
        +
      • +

        getLocationSource

        +
        public LocationSource getLocationSource()
        +
      • +
      + + + +
        +
      • +

        setLocationSource

        +
        public void setLocationSource(LocationSource location_source)
        +
      • +
      + + + +
        +
      • +

        setText

        +
        public void setText(java.lang.String text)
        +
      • +
      + + + +
        +
      • +

        setImages

        +
        public void setImages(java.util.ArrayList<java.lang.String> images)
        +
      • +
      + + + +
        +
      • +

        setImages

        +
        public void setImages(java.lang.String[] images)
        +
      • +
      + + + +
        +
      • +

        setImages

        +
        public void setImages(java.lang.String image)
        +
      • +
      + + + +
        +
      • +

        getId

        +
        public long getId()
        +
      • +
      + + + +
        +
      • +

        getHosts

        +
        public java.lang.String[] getHosts()
        +
      • +
      + + + +
        +
      • +

        getText

        +
        public java.lang.String getText()
        +
      • +
      + + + + + + + +
        +
      • +

        getTextLength

        +
        public int getTextLength()
        +
      • +
      + + + +
        +
      • +

        getMentions

        +
        public java.lang.String[] getMentions()
        +
      • +
      + + + +
        +
      • +

        getHashtags

        +
        public java.lang.String[] getHashtags()
        +
      • +
      + + + +
        +
      • +

        getLinks

        +
        public java.lang.String[] getLinks()
        +
      • +
      + + + +
        +
      • +

        getImages

        +
        public java.util.Collection<java.lang.String> getImages()
        +
      • +
      + + + + + + + +
        +
      • +

        getClassifierProbability

        +
        public double getClassifierProbability(Classifier.Context context)
        +
      • +
      + + + +
        +
      • +

        enrich

        +
        public void enrich()
        +
        create enriched data, useful for analytics and ranking: + - identify all mentioned users, hashtags and links + - count message size without links + - count message size without links and without users
        +
      • +
      + + + + + + + +
        +
      • +

        toJSON

        +
        public Post toJSON(UserEntry user,
        +                   boolean calculatedData,
        +                   int iflinkexceedslength,
        +                   java.lang.String urlstub)
        +
      • +
      + + + +
        +
      • +

        html2utf8

        +
        public static java.lang.String html2utf8(java.lang.String s)
        +
      • +
      + + + +
        +
      • +

        html2utf8Custom

        +
        public static java.lang.String html2utf8Custom(java.lang.String str)
        +
      • +
      + + + +
        +
      • +

        getVideos

        +
        public java.util.Collection<java.lang.String> getVideos()
        +
      • +
      + + + +
        +
      • +

        getAudio

        +
        public java.util.Collection<java.lang.String> getAudio()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/ObjectEntry.html b/javadoc/org/loklak/objects/ObjectEntry.html new file mode 100644 index 0000000..7137dd3 --- /dev/null +++ b/javadoc/org/loklak/objects/ObjectEntry.html @@ -0,0 +1,240 @@ + + + + + +ObjectEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Interface ObjectEntry

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Peer.Status.html b/javadoc/org/loklak/objects/Peer.Status.html new file mode 100644 index 0000000..1b0d712 --- /dev/null +++ b/javadoc/org/loklak/objects/Peer.Status.html @@ -0,0 +1,355 @@ + + + + + +Peer.Status + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum Peer.Status

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<Peer.Status>
    • +
    • +
        +
      • org.loklak.objects.Peer.Status
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<Peer.Status>
    +
    +
    +
    Enclosing class:
    +
    Peer
    +
    +
    +
    +
    public static enum Peer.Status
    +extends java.lang.Enum<Peer.Status>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      CANDIDATE 
      JUNIOR 
      SENIOR 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static Peer.StatusvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Peer.Status[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Peer.Status[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Peer.Status c : Peer.Status.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Peer.Status valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Peer.html b/javadoc/org/loklak/objects/Peer.html new file mode 100644 index 0000000..de97200 --- /dev/null +++ b/javadoc/org/loklak/objects/Peer.html @@ -0,0 +1,281 @@ + + + + + +Peer + + + + + + + + + + + + +
+
org.loklak.objects
+

Class Peer

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Peer

        +
        public Peer()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Peers.html b/javadoc/org/loklak/objects/Peers.html new file mode 100644 index 0000000..9cecd4a --- /dev/null +++ b/javadoc/org/loklak/objects/Peers.html @@ -0,0 +1,330 @@ + + + + + +Peers + + + + + + + + + + + + +
+
org.loklak.objects
+

Class Peers

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.util.AbstractMap<K,V>
    • +
    • +
        +
      • java.util.HashMap<java.lang.String,Peer>
      • +
      • +
          +
        • org.loklak.objects.Peers
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,Peer>
    +
    +
    +
    +
    public class Peers
    +extends java.util.HashMap<java.lang.String,Peer>
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.util.AbstractMap

        +java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from interface java.util.Map

        +java.util.Map.Entry<K,V>
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Peers() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidupdate(Peer peer) 
      +
        +
      • + + +

        Methods inherited from class java.util.HashMap

        +clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.AbstractMap

        +equals, hashCode, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Map

        +equals, hashCode
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Peers

        +
        public Peers()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        update

        +
        public void update(Peer peer)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/ProviderType.html b/javadoc/org/loklak/objects/ProviderType.html new file mode 100644 index 0000000..e924580 --- /dev/null +++ b/javadoc/org/loklak/objects/ProviderType.html @@ -0,0 +1,378 @@ + + + + + +ProviderType + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum ProviderType

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<ProviderType>
    • +
    • +
        +
      • org.loklak.objects.ProviderType
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<ProviderType>
    +
    +
    +
    +
    public enum ProviderType
    +extends java.lang.Enum<ProviderType>
    +
    The ProviderType objects answers on the question "who provided that content". + Do not mix up this with the SourceType. + There can be many providers for the same SourceType.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static ProviderTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ProviderType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ProviderType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ProviderType c : ProviderType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ProviderType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/QueryEntry.ElasticsearchQuery.html b/javadoc/org/loklak/objects/QueryEntry.ElasticsearchQuery.html new file mode 100644 index 0000000..73d8c56 --- /dev/null +++ b/javadoc/org/loklak/objects/QueryEntry.ElasticsearchQuery.html @@ -0,0 +1,319 @@ + + + + + +QueryEntry.ElasticsearchQuery + + + + + + + + + + + + +
+
org.loklak.objects
+

Class QueryEntry.ElasticsearchQuery

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.objects.QueryEntry.ElasticsearchQuery
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    QueryEntry
    +
    +
    +
    +
    public static class QueryEntry.ElasticsearchQuery
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      QueryBuilderqueryBuilder 
      java.util.Datesince 
      java.util.Dateuntil 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      ElasticsearchQuery(java.lang.String q, + int timezoneOffset) 
      ElasticsearchQuery(java.lang.String q, + int timezoneOffset, + java.util.ArrayList<java.lang.String> filterList) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        queryBuilder

        +
        public QueryBuilder queryBuilder
        +
      • +
      + + + +
        +
      • +

        since

        +
        public java.util.Date since
        +
      • +
      + + + +
        +
      • +

        until

        +
        public java.util.Date until
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ElasticsearchQuery

        +
        public ElasticsearchQuery(java.lang.String q,
        +                          int timezoneOffset,
        +                          java.util.ArrayList<java.lang.String> filterList)
        +
      • +
      + + + +
        +
      • +

        ElasticsearchQuery

        +
        public ElasticsearchQuery(java.lang.String q,
        +                          int timezoneOffset)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/QueryEntry.PlaceContext.html b/javadoc/org/loklak/objects/QueryEntry.PlaceContext.html new file mode 100644 index 0000000..a938406 --- /dev/null +++ b/javadoc/org/loklak/objects/QueryEntry.PlaceContext.html @@ -0,0 +1,343 @@ + + + + + +QueryEntry.PlaceContext + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum QueryEntry.PlaceContext

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      ABOUT 
      FROM 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static QueryEntry.PlaceContextvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static QueryEntry.PlaceContext[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static QueryEntry.PlaceContext[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (QueryEntry.PlaceContext c : QueryEntry.PlaceContext.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static QueryEntry.PlaceContext valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/QueryEntry.Tokens.html b/javadoc/org/loklak/objects/QueryEntry.Tokens.html new file mode 100644 index 0000000..246a020 --- /dev/null +++ b/javadoc/org/loklak/objects/QueryEntry.Tokens.html @@ -0,0 +1,387 @@ + + + + + +QueryEntry.Tokens + + + + + + + + + + + + +
+
org.loklak.objects
+

Class QueryEntry.Tokens

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.objects.QueryEntry.Tokens
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    QueryEntry
    +
    +
    +
    +
    public static class QueryEntry.Tokens
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        original

        +
        public final java.lang.String original
        +
      • +
      + + + +
        +
      • +

        raw

        +
        public java.lang.String raw
        +
      • +
      + + + +
        +
      • +

        constraints_positive

        +
        public final java.util.HashSet<java.lang.String> constraints_positive
        +
      • +
      + + + +
        +
      • +

        constraints_negative

        +
        public final java.util.HashSet<java.lang.String> constraints_negative
        +
      • +
      + + + +
        +
      • +

        modifier

        +
        public <any> modifier
        +
      • +
      + + + + + + + +
        +
      • +

        bbox

        +
        public double[] bbox
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Tokens

        +
        public Tokens(java.lang.String q)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        translate4scraper

        +
        public java.lang.String translate4scraper()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/QueryEntry.html b/javadoc/org/loklak/objects/QueryEntry.html new file mode 100644 index 0000000..96393c3 --- /dev/null +++ b/javadoc/org/loklak/objects/QueryEntry.html @@ -0,0 +1,907 @@ + + + + + +QueryEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Class QueryEntry

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    ObjectEntry
    +
    +
    +
    +
    public class QueryEntry
    +extends AbstractObjectEntry
    +implements ObjectEntry
    +
    A Query is a recording of a search result based on the query. + THIS IS NOT RECORDED TO TRACK USER ACTIONS, THIS IS USED TO RE-SEARCH A QUERY INDEFINITELY! + Each query will be stored in elasticsearch and retrieved by the caretaker process in + order of the retrieval_next field. That date is calculated based on the number of search results + in the last time; the retrieval_next is estimated based on the time interval of all tweets in + the search results of the last query. + + Privacy is important: + TO ALL COMMITTERS: please do not add any user-identification details to the data structures + to protect the privacy of the users; TO CODE EVALUATORS: please look for yourself that this + code does not contain any user-related information (like IP, user agent etc.).
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        query

        +
        protected java.lang.String query
        +
      • +
      + + + +
        +
      • +

        query_length

        +
        protected int query_length
        +
      • +
      + + + +
        +
      • +

        source_type

        +
        public SourceType source_type
        +
      • +
      + + + +
        +
      • +

        timezoneOffset

        +
        protected int timezoneOffset
        +
      • +
      + + + +
        +
      • +

        query_first

        +
        protected java.util.Date query_first
        +
      • +
      + + + +
        +
      • +

        query_last

        +
        protected java.util.Date query_last
        +
      • +
      + + + +
        +
      • +

        retrieval_last

        +
        protected java.util.Date retrieval_last
        +
      • +
      + + + +
        +
      • +

        retrieval_next

        +
        protected java.util.Date retrieval_next
        +
      • +
      + + + +
        +
      • +

        expected_next

        +
        protected java.util.Date expected_next
        +
      • +
      + + + +
        +
      • +

        query_count

        +
        protected int query_count
        +
      • +
      + + + +
        +
      • +

        retrieval_count

        +
        protected int retrieval_count
        +
      • +
      + + + +
        +
      • +

        message_period

        +
        protected long message_period
        +
      • +
      + + + +
        +
      • +

        messages_per_day

        +
        protected int messages_per_day
        +
      • +
      + + + +
        +
      • +

        score_retrieval

        +
        protected long score_retrieval
        +
      • +
      + + + +
        +
      • +

        score_suggest

        +
        protected long score_suggest
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        QueryEntry

        +
        public QueryEntry(java.lang.String query,
        +                  int timezoneOffset,
        +                  long message_period,
        +                  SourceType source_type,
        +                  boolean byUserQuery)
        +
        This initializer can only be used for first-time creation of a query track.
        +
        +
        Parameters:
        +
        query -
        +
        timezoneOffset -
        +
        message_period -
        +
        source_type -
        +
        Throws:
        +
        java.net.MalformedURLException
        +
        +
      • +
      + + + +
        +
      • +

        QueryEntry

        +
        public QueryEntry(JSONObject json)
        +           throws java.lang.IllegalArgumentException,
        +                  JSONException
        +
        +
        Throws:
        +
        java.lang.IllegalArgumentException
        +
        JSONException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        update

        +
        public void update(long message_period,
        +                   boolean byUserQuery)
        +
        update the query entry
        +
        +
        Parameters:
        +
        message_period -
        +
        byUserQuery - is true, if the query was submitted by the user; false if the query was submitted by an automatic system
        +
        +
      • +
      + + + +
        +
      • +

        update

        +
        public void update()
        +
        A 'blind' update can be done if the user submits a query but there are rules which prevent that the target system is queried + as well. Then the query result is calculated using the already stored messages. To reflect this, only the query-related + attributes are changed.
        +
      • +
      + + + +
        +
      • +

        getQuery

        +
        public java.lang.String getQuery()
        +
      • +
      + + + +
        +
      • +

        getQueryLength

        +
        public int getQueryLength()
        +
      • +
      + + + +
        +
      • +

        getSourceType

        +
        public SourceType getSourceType()
        +
      • +
      + + + +
        +
      • +

        getQueryFirst

        +
        public java.util.Date getQueryFirst()
        +
      • +
      + + + +
        +
      • +

        getQueryLast

        +
        public java.util.Date getQueryLast()
        +
      • +
      + + + +
        +
      • +

        getRetrievalLast

        +
        public java.util.Date getRetrievalLast()
        +
      • +
      + + + +
        +
      • +

        getRetrievalNext

        +
        public java.util.Date getRetrievalNext()
        +
      • +
      + + + +
        +
      • +

        getExpectedNext

        +
        public java.util.Date getExpectedNext()
        +
      • +
      + + + +
        +
      • +

        getTimezoneOffset

        +
        public int getTimezoneOffset()
        +
      • +
      + + + +
        +
      • +

        getQueryCount

        +
        public int getQueryCount()
        +
      • +
      + + + +
        +
      • +

        getRetrievalCount

        +
        public int getRetrievalCount()
        +
      • +
      + + + +
        +
      • +

        getMessagesPerDay

        +
        public int getMessagesPerDay()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      + + + +
        +
      • +

        fixQueryMistakes

        +
        public static java.lang.String fixQueryMistakes(java.lang.String q)
        +
        fixing a query mistake covers most common wrong queries from the user
        +
        +
        Parameters:
        +
        q -
        +
        Returns:
        +
        the fixed query
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/ResultList.html b/javadoc/org/loklak/objects/ResultList.html new file mode 100644 index 0000000..bff3553 --- /dev/null +++ b/javadoc/org/loklak/objects/ResultList.html @@ -0,0 +1,407 @@ + + + + + +ResultList + + + + + + + + + + + + +
+
org.loklak.objects
+

Class ResultList<E>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.util.AbstractCollection<E>
    • +
    • +
        +
      • java.util.AbstractList<E>
      • +
      • +
          +
        • java.util.ArrayList<E>
        • +
        • +
            +
          • org.loklak.objects.ResultList<E>
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
    +
    +
    +
    +
    public class ResultList<E>
    +extends java.util.ArrayList<E>
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class java.util.AbstractList

        +modCount
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ResultList() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclear() 
      longgetHits() +
      get the number of total hits
      +
      voidsetHits(long totalHits) +
      set the number of total hits this list has
      +
      SusiThoughttoSusi() 
      +
        +
      • + + +

        Methods inherited from class java.util.ArrayList

        +add, add, addAll, addAll, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.AbstractList

        +equals, hashCode
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.AbstractCollection

        +containsAll, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.List

        +containsAll, equals, hashCode
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Collection

        +parallelStream, stream
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ResultList

        +
        public ResultList()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setHits

        +
        public void setHits(long totalHits)
        +
        set the number of total hits this list has
        +
        +
        Parameters:
        +
        totalHits -
        +
        +
      • +
      + + + +
        +
      • +

        getHits

        +
        public long getHits()
        +
        get the number of total hits
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
        +
        Specified by:
        +
        clear in interface java.util.Collection<E>
        +
        Specified by:
        +
        clear in interface java.util.List<E>
        +
        Overrides:
        +
        clear in class java.util.ArrayList<E>
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/SourceType.html b/javadoc/org/loklak/objects/SourceType.html new file mode 100644 index 0000000..ab3cb8b --- /dev/null +++ b/javadoc/org/loklak/objects/SourceType.html @@ -0,0 +1,499 @@ + + + + + +SourceType + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum SourceType

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<SourceType>
    • +
    • +
        +
      • org.loklak.objects.SourceType
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<SourceType>
    +
    +
    +
    +
    public enum SourceType
    +extends java.lang.Enum<SourceType>
    +
    The SourceType objects answers on the question "what kind of data format". + Do not mix up this with the ProviderType, because there can be many providers for the same SourceType.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static SourceTypebyName(java.lang.String typeName) 
      static booleanisValid(java.lang.String typeName) +
      we want type names to be in uppercase.
      +
      booleanpropagate() 
      static SourceTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static SourceType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static SourceType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (SourceType c : SourceType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static SourceType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        isValid

        +
        public static boolean isValid(java.lang.String typeName)
        +
        we want type names to be in uppercase. Persons who implement new types names must have a search-engine view of the meaning of types + and we want that type names are considered as constant name for similar services. The number of type names should be small and equal + to the number of services which loklak supports.
        +
        +
        Parameters:
        +
        typeName -
        +
        Returns:
        +
        true if the name is valid
        +
        +
      • +
      + + + +
        +
      • +

        byName

        +
        public static SourceType byName(java.lang.String typeName)
        +
      • +
      + + + +
        +
      • +

        propagate

        +
        public boolean propagate()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Timeline.Order.html b/javadoc/org/loklak/objects/Timeline.Order.html new file mode 100644 index 0000000..7b4daef --- /dev/null +++ b/javadoc/org/loklak/objects/Timeline.Order.html @@ -0,0 +1,393 @@ + + + + + +Timeline.Order + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum Timeline.Order

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<Timeline.Order>
    • +
    • +
        +
      • org.loklak.objects.Timeline.Order
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<Timeline.Order>
    +
    +
    +
    Enclosing class:
    +
    Timeline
    +
    +
    +
    +
    public static enum Timeline.Order
    +extends java.lang.Enum<Timeline.Order>
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringgetMessageFieldName() 
      java.lang.StringgetMessageFieldType() 
      static Timeline.OrdervalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Timeline.Order[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Timeline.Order[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Timeline.Order c : Timeline.Order.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Timeline.Order valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getMessageFieldName

        +
        public java.lang.String getMessageFieldName()
        +
      • +
      + + + +
        +
      • +

        getMessageFieldType

        +
        public java.lang.String getMessageFieldType()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Timeline.html b/javadoc/org/loklak/objects/Timeline.html new file mode 100644 index 0000000..df2975c --- /dev/null +++ b/javadoc/org/loklak/objects/Timeline.html @@ -0,0 +1,759 @@ + + + + + +Timeline + + + + + + + + + + + + +
+
org.loklak.objects
+

Class Timeline

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.objects.Timeline
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Iterable<TwitterScraper.TwitterTweet>
    +
    +
    +
    +
    public class Timeline
    +extends java.lang.Object
    +implements java.lang.Iterable<TwitterScraper.TwitterTweet>
    +
    A timeline is a structure which holds tweet for the purpose of presentation + There is no tweet retrieval method here, just an iterator which returns the tweets in reverse appearing order
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseOrder

        +
        public static Timeline.Order parseOrder(java.lang.String order)
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setScraperInfo

        +
        public Timeline setScraperInfo(java.lang.String info)
        +
      • +
      + + + +
        +
      • +

        getScraperInfo

        +
        public java.lang.String getScraperInfo()
        +
      • +
      + + + +
        +
      • +

        getAccessTime

        +
        public long getAccessTime()
        +
      • +
      + + + +
        +
      • +

        updateAccessTime

        +
        public Timeline updateAccessTime()
        +
      • +
      + + + + + + + +
        +
      • +

        getQuery

        +
        public java.lang.String getQuery()
        +
      • +
      + + + +
        +
      • +

        setQuery

        +
        public Timeline setQuery(java.lang.String query)
        +
      • +
      + + + +
        +
      • +

        getCursor

        +
        public int getCursor()
        +
        gets the outer bound of the tweets returned to the user so far
        +
        +
        Returns:
        +
        the cursor, the next starting point for tweet retrieval from the list, not shown so far to the user
        +
        +
      • +
      + + + +
        +
      • +

        setCursor

        +
        public Timeline setCursor(int newCursor)
        +
        sets the cursor to the outer bound of the visible tweet number. + That means if no tweets had been shown to the user, the number is 0.
        +
        +
        Parameters:
        +
        newCursor - the new cursor position which must be higher than the previous one.
        +
        Returns:
        +
        this
        +
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
      • +
      + + + +
        +
      • +

        reduceToMaxsize

        +
        public Timeline reduceToMaxsize(int maxsize)
        +
      • +
      + + + + + + + +
        +
      • +

        getUser

        +
        protected UserEntry getUser(java.lang.String user_screen_name)
        +
      • +
      + + + + + + + +
        +
      • +

        putAll

        +
        public void putAll(Timeline other)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toJSON

        +
        public JSONObject toJSON(boolean withEnrichedData,
        +                         java.lang.String metadata_field_name,
        +                         java.lang.String statuses_field_name)
        +                  throws JSONException
        +
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        period

        +
        public long period()
        +
        compute the average time between any two consecutive tweets
        +
        +
        Returns:
        +
        time in milliseconds
        +
        +
      • +
      + + + +
        +
      • +

        writeToIndex

        +
        public void writeToIndex()
        +
      • +
      + + + +
        +
      • +

        setHits

        +
        public Timeline setHits(int hits)
        +
      • +
      + + + +
        +
      • +

        getHits

        +
        public int getHits()
        +
      • +
      + + + +
        +
      • +

        toPostTimeline

        +
        public Timeline2 toPostTimeline()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Timeline2.Order.html b/javadoc/org/loklak/objects/Timeline2.Order.html new file mode 100644 index 0000000..9d219a4 --- /dev/null +++ b/javadoc/org/loklak/objects/Timeline2.Order.html @@ -0,0 +1,393 @@ + + + + + +Timeline2.Order + + + + + + + + + + + + +
+
org.loklak.objects
+

Enum Timeline2.Order

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<Timeline2.Order>
    • +
    • +
        +
      • org.loklak.objects.Timeline2.Order
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<Timeline2.Order>
    +
    +
    +
    Enclosing class:
    +
    Timeline2
    +
    +
    +
    +
    public static enum Timeline2.Order
    +extends java.lang.Enum<Timeline2.Order>
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Timeline2.Order[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Timeline2.Order c : Timeline2.Order.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Timeline2.Order valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        getMessageFieldName

        +
        public java.lang.String getMessageFieldName()
        +
      • +
      + + + +
        +
      • +

        getMessageFieldType

        +
        public java.lang.String getMessageFieldType()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/Timeline2.html b/javadoc/org/loklak/objects/Timeline2.html new file mode 100644 index 0000000..9c87443 --- /dev/null +++ b/javadoc/org/loklak/objects/Timeline2.html @@ -0,0 +1,855 @@ + + + + + +Timeline2 + + + + + + + + + + + + +
+
org.loklak.objects
+

Class Timeline2

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.objects.Timeline2
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Iterable<Post>
    +
    +
    +
    +
    public class Timeline2
    +extends java.lang.Object
    +implements java.lang.Iterable<Post>
    +
    A timeline2 is a structure which holds tweet for the purpose of presentation + There is no tweet retrieval method here, just an iterator which returns the tweets in reverse appearing order
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parseOrder

        +
        public static Timeline2.Order parseOrder(java.lang.String order)
        +
      • +
      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setScraperInfo

        +
        public Timeline2 setScraperInfo(java.lang.String info)
        +
      • +
      + + + +
        +
      • +

        getScraperInfo

        +
        public java.lang.String getScraperInfo()
        +
      • +
      + + + +
        +
      • +

        getAccessTime

        +
        public long getAccessTime()
        +
      • +
      + + + +
        +
      • +

        updateAccessTime

        +
        public Timeline2 updateAccessTime()
        +
      • +
      + + + + + + + +
        +
      • +

        getQuery

        +
        public java.lang.String getQuery()
        +
      • +
      + + + +
        +
      • +

        setQuery

        +
        public Timeline2 setQuery(java.lang.String query)
        +
      • +
      + + + +
        +
      • +

        getCursor

        +
        public int getCursor()
        +
        gets the outer bound of the tweets returned to the user so far
        +
        +
        Returns:
        +
        the cursor, the next starting point for tweet retrieval from the list, not shown so far to the user
        +
        +
      • +
      + + + +
        +
      • +

        setCursor

        +
        public Timeline2 setCursor(int newCursor)
        +
        sets the cursor to the outer bound of the visible tweet number. + That means if no tweets had been shown to the user, the number is 0.
        +
        +
        Parameters:
        +
        newCursor - the new cursor position which must be higher than the previous one.
        +
        Returns:
        +
        this
        +
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
      • +
      + + + +
        +
      • +

        reduceToMaxsize

        +
        public Timeline2 reduceToMaxsize(int maxsize)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        mergePost

        +
        public void mergePost(Timeline2 list)
        +
      • +
      + + + +
        +
      • +

        mergePost

        +
        public void mergePost(Timeline2[] lists)
        +
      • +
      + + + +
        +
      • +

        getUser

        +
        protected UserEntry getUser(java.lang.String user_screen_name)
        +
      • +
      + + + + + + + +
        +
      • +

        putAll

        +
        public void putAll(Timeline2 other)
        +
      • +
      + + + +
        +
      • +

        getBottomTweet

        +
        public Post getBottomTweet()
        +
      • +
      + + + +
        +
      • +

        getTopTweet

        +
        public Post getTopTweet()
        +
      • +
      + + + +
        +
      • +

        getNextTweets

        +
        public java.util.List<Post> getNextTweets(int start,
        +                                          int maxCount)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toJSON

        +
        public JSONObject toJSON(boolean withEnrichedData,
        +                         java.lang.String metadata_field_name,
        +                         java.lang.String statuses_field_name)
        +                  throws JSONException
        +
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        iterator

        +
        public java.util.Iterator<Post> iterator()
        +
        the tweet iterator returns tweets in descending appearance order (top first)
        +
        +
        Specified by:
        +
        iterator in interface java.lang.Iterable<Post>
        +
        +
      • +
      + + + +
        +
      • +

        period

        +
        public long period()
        +
        compute the average time between any two consecutive tweets
        +
        +
        Returns:
        +
        time in milliseconds
        +
        +
      • +
      + + + +
        +
      • +

        toArray

        +
        public JSONArray toArray()
        +
      • +
      + + + +
        +
      • +

        writeToIndex

        +
        public void writeToIndex()
        +
      • +
      + + + +
        +
      • +

        setHits

        +
        public Timeline2 setHits(int hits)
        +
      • +
      + + + +
        +
      • +

        getHits

        +
        public int getHits()
        +
      • +
      + + + +
        +
      • +

        toTimeline

        +
        public Timeline toTimeline()
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/TimelineCache.html b/javadoc/org/loklak/objects/TimelineCache.html new file mode 100644 index 0000000..d841b3a --- /dev/null +++ b/javadoc/org/loklak/objects/TimelineCache.html @@ -0,0 +1,289 @@ + + + + + +TimelineCache + + + + + + + + + + + + +
+
org.loklak.objects
+

Class TimelineCache

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.objects.TimelineCache
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class TimelineCache
    +extends java.lang.Object
    +
    The purpose of the timeline cache is, to provide a storage for paginated search
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/UserEntry.html b/javadoc/org/loklak/objects/UserEntry.html new file mode 100644 index 0000000..13cdaec --- /dev/null +++ b/javadoc/org/loklak/objects/UserEntry.html @@ -0,0 +1,759 @@ + + + + + +UserEntry + + + + + + + + + + + + +
+
org.loklak.objects
+

Class UserEntry

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        field_screen_name

        +
        public static final java.lang.String field_screen_name
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_user_id

        +
        public static final java.lang.String field_user_id
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_name

        +
        public static final java.lang.String field_name
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_profile_image_url_http

        +
        public static final java.lang.String field_profile_image_url_http
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_profile_image_url_https

        +
        public static final java.lang.String field_profile_image_url_https
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_profile_image

        +
        public static final java.lang.String field_profile_image
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_appearance_first

        +
        public static final java.lang.String field_appearance_first
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        field_appearance_latest

        +
        public static final java.lang.String field_appearance_latest
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UserEntry

        +
        public UserEntry(java.lang.String user_id,
        +                 java.lang.String screen_name_raw,
        +                 java.lang.String profile_image_url,
        +                 java.lang.String name_raw)
        +
      • +
      + + + +
        +
      • +

        UserEntry

        +
        public UserEntry(JSONObject json)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getUser

        +
        public java.lang.Number getUser()
        +
      • +
      + + + +
        +
      • +

        getUserId

        +
        public java.lang.String getUserId()
        +
      • +
      + + + +
        +
      • +

        getScreenName

        +
        public java.lang.String getScreenName()
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
      • +
      + + + +
        +
      • +

        getProfileImageUrl

        +
        public java.lang.String getProfileImageUrl()
        +
      • +
      + + + +
        +
      • +

        containsProfileImage

        +
        public boolean containsProfileImage()
        +
      • +
      + + + +
        +
      • +

        getProfileImage

        +
        public byte[] getProfileImage()
        +
      • +
      + + + +
        +
      • +

        setProfileImageUrl

        +
        public void setProfileImageUrl(java.lang.String url)
        +
      • +
      + + + +
        +
      • +

        setName

        +
        public void setName(java.lang.String Name)
        +
      • +
      + + + +
        +
      • +

        setProfileImage

        +
        public void setProfileImage(byte[] image)
        +
      • +
      + + + +
        +
      • +

        getAppearanceFirst

        +
        public java.util.Date getAppearanceFirst()
        +
      • +
      + + + +
        +
      • +

        getAppearanceLatest

        +
        public java.util.Date getAppearanceLatest()
        +
      • +
      + + + +
        +
      • +

        toJSON

        +
        public void toJSON(JsonGenerator json)
        +
      • +
      + + + + + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        Description copied from class: JSONObject
        +
        Make a JSON text of this JSONObject. For compactness, no whitespace is + added. If this would not result in a syntactically correct JSON text, + then null will be returned instead. +

        + Warning: This method assumes that the data structure is acyclical.

        +
        +
        Specified by:
        +
        toString in interface ObjectEntry
        +
        Overrides:
        +
        toString in class AbstractObjectEntry
        +
        Returns:
        +
        a printable, displayable, portable, transmittable representation + of the object, beginning with { (left + brace) and ending with } (right + brace).
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/objects/package-frame.html b/javadoc/org/loklak/objects/package-frame.html new file mode 100644 index 0000000..881a097 --- /dev/null +++ b/javadoc/org/loklak/objects/package-frame.html @@ -0,0 +1,50 @@ + + + + + +org.loklak.objects + + + + + +

org.loklak.objects

+ + + diff --git a/javadoc/org/loklak/objects/package-summary.html b/javadoc/org/loklak/objects/package-summary.html new file mode 100644 index 0000000..e09d809 --- /dev/null +++ b/javadoc/org/loklak/objects/package-summary.html @@ -0,0 +1,272 @@ + + + + + +org.loklak.objects + + + + + + + + + + + +
+

Package org.loklak.objects

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/objects/package-tree.html b/javadoc/org/loklak/objects/package-tree.html new file mode 100644 index 0000000..3a7453f --- /dev/null +++ b/javadoc/org/loklak/objects/package-tree.html @@ -0,0 +1,204 @@ + + + + + +org.loklak.objects Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.objects

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/rss/RSSFeed.html b/javadoc/org/loklak/rss/RSSFeed.html new file mode 100644 index 0000000..d05559c --- /dev/null +++ b/javadoc/org/loklak/rss/RSSFeed.html @@ -0,0 +1,475 @@ + + + + + +RSSFeed + + + + + + + + + + + + +
+
org.loklak.rss
+

Class RSSFeed

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.rss.RSSFeed
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Iterable<RSSMessage>
    +
    +
    +
    +
    public class RSSFeed
    +extends java.lang.Object
    +implements java.lang.Iterable<RSSMessage>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      class RSSFeed.messageIterator 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      RSSFeed(int maxsize) 
      RSSFeed(java.util.Set<java.net.URL> links, + java.lang.String source) +
      make a RSS feed using a set of urls + the source string is assigned to all messages as author to mark the messages' origin
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RSSFeed

        +
        public RSSFeed(int maxsize)
        +
      • +
      + + + +
        +
      • +

        RSSFeed

        +
        public RSSFeed(java.util.Set<java.net.URL> links,
        +               java.lang.String source)
        +
        make a RSS feed using a set of urls + the source string is assigned to all messages as author to mark the messages' origin
        +
        +
        Parameters:
        +
        links -
        +
        source -
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        setChannel

        +
        public void setChannel(RSSMessage channelItem)
        +
      • +
      + + + +
        +
      • +

        getChannel

        +
        public RSSMessage getChannel()
        +
      • +
      + + + +
        +
      • +

        setImage

        +
        public void setImage(java.lang.String imageURL)
        +
      • +
      + + + +
        +
      • +

        getImage

        +
        public java.lang.String getImage()
        +
      • +
      + + + +
        +
      • +

        getLinks

        +
        public java.util.Set<java.net.URL> getLinks()
        +
      • +
      + + + +
        +
      • +

        addMessage

        +
        public void addMessage(RSSMessage item)
        +
      • +
      + + + +
        +
      • +

        getMessage

        +
        public RSSMessage getMessage(java.lang.String guid)
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
      • +
      + + + +
        +
      • +

        iterator

        +
        public java.util.Iterator<RSSMessage> iterator()
        +
        +
        Specified by:
        +
        iterator in interface java.lang.Iterable<RSSMessage>
        +
        +
      • +
      + + + +
        +
      • +

        pollMessage

        +
        public RSSMessage pollMessage()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/rss/RSSFeed.messageIterator.html b/javadoc/org/loklak/rss/RSSFeed.messageIterator.html new file mode 100644 index 0000000..72de6f8 --- /dev/null +++ b/javadoc/org/loklak/rss/RSSFeed.messageIterator.html @@ -0,0 +1,323 @@ + + + + + +RSSFeed.messageIterator + + + + + + + + + + + + +
+
org.loklak.rss
+

Class RSSFeed.messageIterator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.rss.RSSFeed.messageIterator
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.Iterator<RSSMessage>
    +
    +
    +
    Enclosing class:
    +
    RSSFeed
    +
    +
    +
    +
    public class RSSFeed.messageIterator
    +extends java.lang.Object
    +implements java.util.Iterator<RSSMessage>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      messageIterator() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanhasNext() 
      RSSMessagenext() 
      voidremove() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Iterator

        +forEachRemaining
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        messageIterator

        +
        public messageIterator()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        hasNext

        +
        public boolean hasNext()
        +
        +
        Specified by:
        +
        hasNext in interface java.util.Iterator<RSSMessage>
        +
        +
      • +
      + + + +
        +
      • +

        next

        +
        public RSSMessage next()
        +
        +
        Specified by:
        +
        next in interface java.util.Iterator<RSSMessage>
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public void remove()
        +
        +
        Specified by:
        +
        remove in interface java.util.Iterator<RSSMessage>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/rss/RSSMessage.Token.html b/javadoc/org/loklak/rss/RSSMessage.Token.html new file mode 100644 index 0000000..d5c4cda --- /dev/null +++ b/javadoc/org/loklak/rss/RSSMessage.Token.html @@ -0,0 +1,556 @@ + + + + + +RSSMessage.Token + + + + + + + + + + + + +
+
org.loklak.rss
+

Enum RSSMessage.Token

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<RSSMessage.Token>
    +
    +
    +
    Enclosing class:
    +
    RSSMessage
    +
    +
    +
    +
    public static enum RSSMessage.Token
    +extends java.lang.Enum<RSSMessage.Token>
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.Set<java.lang.String>keys() 
      java.lang.StringtoString() 
      java.lang.StringvalueFrom(java.util.Map<java.lang.String,java.lang.String> map, + java.lang.String dflt) 
      static RSSMessage.TokenvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static RSSMessage.Token[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static RSSMessage.Token[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (RSSMessage.Token c : RSSMessage.Token.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static RSSMessage.Token valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        valueFrom

        +
        public java.lang.String valueFrom(java.util.Map<java.lang.String,java.lang.String> map,
        +                                  java.lang.String dflt)
        +
      • +
      + + + +
        +
      • +

        keys

        +
        public java.util.Set<java.lang.String> keys()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Enum<RSSMessage.Token>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/rss/RSSMessage.html b/javadoc/org/loklak/rss/RSSMessage.html new file mode 100644 index 0000000..17ed4aa --- /dev/null +++ b/javadoc/org/loklak/rss/RSSMessage.html @@ -0,0 +1,949 @@ + + + + + +RSSMessage + + + + + + + + + + + + +
+
org.loklak.rss
+

Class RSSMessage

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.rss.RSSMessage
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class RSSMessage
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        TZ_GMT

        +
        protected static final java.util.TimeZone TZ_GMT
        +
        pattern for a W3C datetime variant of a non-localized ISO8601 date
        +
      • +
      + + + +
        +
      • +

        FORMAT_RFC1123

        +
        public static final java.text.SimpleDateFormat FORMAT_RFC1123
        +
      • +
      + + + +
        +
      • +

        FORMAT_RFC1036

        +
        public static final java.text.SimpleDateFormat FORMAT_RFC1036
        +
      • +
      + + + +
        +
      • +

        FORMAT_ANSIC

        +
        public static final java.text.SimpleDateFormat FORMAT_ANSIC
        +
      • +
      + + + +
        +
      • +

        POISON

        +
        public static final RSSMessage POISON
        +
      • +
      + + + +
        +
      • +

        tags

        +
        public static final java.util.HashSet<java.lang.String> tags
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RSSMessage

        +
        public RSSMessage(java.lang.String title,
        +                  java.lang.String description,
        +                  java.lang.String link)
        +
      • +
      + + + +
        +
      • +

        RSSMessage

        +
        public RSSMessage(java.lang.String title,
        +                  java.lang.String description,
        +                  java.net.URL link,
        +                  java.lang.String guid)
        +
      • +
      + + + +
        +
      • +

        RSSMessage

        +
        public RSSMessage()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        valueOfNick

        +
        public static RSSMessage.Token valueOfNick(java.lang.String nick)
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue(RSSMessage.Token token,
        +                     java.lang.String value)
        +
      • +
      + + + +
        +
      • +

        getTitle

        +
        public java.lang.String getTitle()
        +
      • +
      + + + +
        +
      • +

        getLink

        +
        public java.lang.String getLink()
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(RSSMessage o)
        +
      • +
      + + + + + + + +
        +
      • +

        getDescriptions

        +
        public java.util.List<java.lang.String> getDescriptions()
        +
      • +
      + + + +
        +
      • +

        getAuthor

        +
        public java.lang.String getAuthor()
        +
      • +
      + + + +
        +
      • +

        getCopyright

        +
        public java.lang.String getCopyright()
        +
      • +
      + + + +
        +
      • +

        getCategory

        +
        public java.lang.String getCategory()
        +
      • +
      + + + +
        +
      • +

        getSubject

        +
        public java.lang.String[] getSubject()
        +
      • +
      + + + +
        +
      • +

        getReferrer

        +
        public java.lang.String getReferrer()
        +
      • +
      + + + +
        +
      • +

        getLanguage

        +
        public java.lang.String getLanguage()
        +
      • +
      + + + +
        +
      • +

        getPubDate

        +
        public java.util.Date getPubDate()
        +
      • +
      + + + +
        +
      • +

        parseHTTPDate

        +
        public static java.util.Date parseHTTPDate(java.lang.String s)
        +
      • +
      + + + +
        +
      • +

        getGuid

        +
        public java.lang.String getGuid()
        +
      • +
      + + + +
        +
      • +

        getTTL

        +
        public java.lang.String getTTL()
        +
      • +
      + + + +
        +
      • +

        getDocs

        +
        public java.lang.String getDocs()
        +
      • +
      + + + +
        +
      • +

        getSize

        +
        public long getSize()
        +
      • +
      + + + +
        +
      • +

        getFulltext

        +
        public java.lang.String getFulltext()
        +
      • +
      + + + +
        +
      • +

        getLon

        +
        public float getLon()
        +
      • +
      + + + +
        +
      • +

        getLat

        +
        public float getLat()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString(boolean withItemTag)
        +
      • +
      + + + +
        +
      • +

        setAuthor

        +
        public void setAuthor(java.lang.String author)
        +
      • +
      + + + +
        +
      • +

        setCategory

        +
        public void setCategory(java.lang.String category)
        +
      • +
      + + + +
        +
      • +

        setCopyright

        +
        public void setCopyright(java.lang.String copyright)
        +
      • +
      + + + +
        +
      • +

        setSubject

        +
        public void setSubject(java.lang.String[] tags)
        +
      • +
      + + + +
        +
      • +

        setDescription

        +
        public void setDescription(java.lang.String description)
        +
      • +
      + + + +
        +
      • +

        setDocs

        +
        public void setDocs(java.lang.String docs)
        +
      • +
      + + + +
        +
      • +

        setGuid

        +
        public void setGuid(java.lang.String guid)
        +
      • +
      + + + +
        +
      • +

        setLanguage

        +
        public void setLanguage(java.lang.String language)
        +
      • +
      + + + +
        +
      • +

        setLink

        +
        public void setLink(java.lang.String link)
        +
      • +
      + + + +
        +
      • +

        setPubDate

        +
        public void setPubDate(java.util.Date pubdate)
        +
      • +
      + + + +
        +
      • +

        setReferrer

        +
        public void setReferrer(java.lang.String referrer)
        +
      • +
      + + + +
        +
      • +

        setSize

        +
        public void setSize(long size)
        +
      • +
      + + + +
        +
      • +

        setTitle

        +
        public void setTitle(java.lang.String title)
        +
      • +
      + + + +
        +
      • +

        sizename

        +
        public static java.lang.String sizename(int size)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/rss/package-frame.html b/javadoc/org/loklak/rss/package-frame.html new file mode 100644 index 0000000..cf0807e --- /dev/null +++ b/javadoc/org/loklak/rss/package-frame.html @@ -0,0 +1,25 @@ + + + + + +org.loklak.rss + + + + + +

org.loklak.rss

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/javadoc/org/loklak/rss/package-summary.html b/javadoc/org/loklak/rss/package-summary.html new file mode 100644 index 0000000..66ec2d9 --- /dev/null +++ b/javadoc/org/loklak/rss/package-summary.html @@ -0,0 +1,159 @@ + + + + + +org.loklak.rss + + + + + + + + + + + +
+

Package org.loklak.rss

+
+
+
    +
  • + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    RSSFeed 
    RSSMessage 
    +
  • +
  • + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    RSSMessage.Token 
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/rss/package-tree.html b/javadoc/org/loklak/rss/package-tree.html new file mode 100644 index 0000000..6a5f9ef --- /dev/null +++ b/javadoc/org/loklak/rss/package-tree.html @@ -0,0 +1,149 @@ + + + + + +org.loklak.rss Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.rss

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/server/APIException.html b/javadoc/org/loklak/server/APIException.html new file mode 100644 index 0000000..7e9cfe3 --- /dev/null +++ b/javadoc/org/loklak/server/APIException.html @@ -0,0 +1,296 @@ + + + + + +APIException + + + + + + + + + + + + +
+
org.loklak.server
+

Class APIException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • org.loklak.server.APIException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class APIException
    +extends java.lang.Exception
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      APIException(int statusCode, + java.lang.String message) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetStatusCode() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        APIException

        +
        public APIException(int statusCode,
        +                    java.lang.String message)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStatusCode

        +
        public int getStatusCode()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/APIHandler.html b/javadoc/org/loklak/server/APIHandler.html new file mode 100644 index 0000000..8879fa7 --- /dev/null +++ b/javadoc/org/loklak/server/APIHandler.html @@ -0,0 +1,282 @@ + + + + + +APIHandler + + + + + + + + + + + + +
+
org.loklak.server
+

Interface APIHandler

+
+
+ +
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/AbstractAPIHandler.html b/javadoc/org/loklak/server/AbstractAPIHandler.html new file mode 100644 index 0000000..40f8499 --- /dev/null +++ b/javadoc/org/loklak/server/AbstractAPIHandler.html @@ -0,0 +1,569 @@ + + + + + +AbstractAPIHandler + + + + + + + + + + + + +
+
org.loklak.server
+

Class AbstractAPIHandler

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • HttpServlet
    • +
    • +
        +
      • org.loklak.server.AbstractAPIHandler
      • +
      +
    • +
    +
  • +
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        defaultCookieTime

        +
        public static final java.lang.Long defaultCookieTime
        +
      • +
      + + + +
        +
      • +

        defaultAnonymousTime

        +
        public static final java.lang.Long defaultAnonymousTime
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractAPIHandler

        +
        public AbstractAPIHandler()
        +
      • +
      + + + +
        +
      • +

        AbstractAPIHandler

        +
        public AbstractAPIHandler(java.lang.String[] serverProtocolHostStub)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        doGet

        +
        protected void doGet(HttpServletRequest request,
        +                     HttpServletResponse response)
        +              throws ServletException,
        +                     java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        doPost

        +
        protected void doPost(HttpServletRequest request,
        +                      HttpServletResponse response)
        +               throws ServletException,
        +                      java.io.IOException
        +
        +
        Throws:
        +
        ServletException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getIdentity

        +
        public static ClientIdentity getIdentity(HttpServletRequest request,
        +                                         HttpServletResponse response,
        +                                         Query query)
        +
        Checks a request for valid login data, either a existing session, a cookie or an access token
        +
        +
        Returns:
        +
        user identity if some login is active, anonymous identity otherwise
        +
        +
      • +
      + + + +
        +
      • +

        getHash

        +
        public static java.lang.String getHash(java.lang.String input,
        +                                       java.lang.String salt)
        +
        Create a hash for an input an salt
        +
        +
        Parameters:
        +
        input -
        +
        salt -
        +
        Returns:
        +
        String hash
        +
        +
      • +
      + + + +
        +
      • +

        createRandomString

        +
        public static java.lang.String createRandomString(java.lang.Integer length)
        +
        Creates a random alphanumeric string
        +
        +
        Parameters:
        +
        length -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        deleteLoginCookie

        +
        protected static void deleteLoginCookie(HttpServletResponse response)
        +
        Delete the login cookie if present
        +
        +
        Parameters:
        +
        response -
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/Accounting.html b/javadoc/org/loklak/server/Accounting.html new file mode 100644 index 0000000..68f7013 --- /dev/null +++ b/javadoc/org/loklak/server/Accounting.html @@ -0,0 +1,346 @@ + + + + + +Accounting + + + + + + + + + + + + +
+
org.loklak.server
+

Class Accounting

+
+
+ +
+
    +
  • +
    +
    +
    public class Accounting
    +extends JSONObject
    +
    Accounting asks: what has the user done. This class holds user activities.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Accounting

        +
        public Accounting()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        cleanup

        +
        public Accounting cleanup()
        +
        cleanup deletes all old entries and frees up the memory. + some outside process muss call this frequently
        +
        +
        Returns:
        +
        self
        +
        +
      • +
      + + + +
        +
      • +

        addRequest

        +
        public Accounting addRequest(java.lang.String path,
        +                             java.lang.String query)
        +
      • +
      + + + +
        +
      • +

        getRequests

        +
        public JSONObject getRequests(java.lang.String path)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/Authentication.html b/javadoc/org/loklak/server/Authentication.html new file mode 100644 index 0000000..fe9a450 --- /dev/null +++ b/javadoc/org/loklak/server/Authentication.html @@ -0,0 +1,548 @@ + + + + + +Authentication + + + + + + + + + + + + +
+
org.loklak.server
+

Class Authentication

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.server.Authentication
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Authentication
    +extends java.lang.Object
    +
    Authentication asks: who is the user. This class holds user identification details
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleancheckExpireTime() +
      Check if the authentication is still valid
      +
      voiddelete() +
      Delete the authentication.
      +
      java.lang.Objectget(java.lang.String key) +
      Get a value from the internal JSONObject
      +
      booleangetBoolean(java.lang.String key) +
      Get a boolean form the internal JSONObject
      +
      booleangetBoolean(java.lang.String key, + boolean defVal) +
      Get a boolean form the internal JSONObject
      +
      ClientIdentitygetIdentity() +
      Get the associated ClientIdentity
      +
      java.lang.StringgetString(java.lang.String key) +
      Get a String form the internal JSONObject
      +
      java.lang.StringgetString(java.lang.String key, + java.lang.String defVal) +
      Get a String form the internal JSONObject.
      +
      booleanhas(java.lang.String key) +
      Check the internal JSONObject for a key
      +
      voidput(java.lang.String key, + java.lang.Object value) +
      Put data into the internal JSONObject
      +
      voidremove(java.lang.String key) +
      Remove an object from the internal JSONObject
      +
      voidsetExpireTime(long time) +
      Set an expire time.
      +
      AuthenticationsetIdentity(ClientIdentity id) +
      Associate a ClientIdentity with this Authentication
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Authentication

        +
        public Authentication(ClientCredential credential,
        +                      JsonTray parent)
        +
        create a new authentication object. Creates a JSONObject or reads a from the parent. + The parent is used to enable persistency.
        +
        +
        Parameters:
        +
        credential - a ClientCredential for which the Authentication should created for
        +
        parent - the storage object or null if there is no parent file (no persistency)
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setIdentity

        +
        public Authentication setIdentity(ClientIdentity id)
        +
        Associate a ClientIdentity with this Authentication
        +
        +
        Parameters:
        +
        id - the ClientIdentity to associate with
        +
        Returns:
        +
        this authentication object
        +
        +
      • +
      + + + +
        +
      • +

        getIdentity

        +
        public ClientIdentity getIdentity()
        +
        Get the associated ClientIdentity
        +
        +
        Returns:
        +
        the ClientIdentity associated with this Authentication or null if none is set
        +
        +
      • +
      + + + +
        +
      • +

        setExpireTime

        +
        public void setExpireTime(long time)
        +
        Set an expire time. Useful for anonymous users and tokens
        +
        +
        Parameters:
        +
        time - seconds from now when the Authentication expires
        +
        +
      • +
      + + + +
        +
      • +

        checkExpireTime

        +
        public boolean checkExpireTime()
        +
        Check if the authentication is still valid
        +
        +
        Returns:
        +
        true if the Authentication is still valid or does not have an expire time set. false otherwise
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.lang.Object get(java.lang.String key)
        +
        Get a value from the internal JSONObject
        +
        +
        Parameters:
        +
        key - the key for the object
        +
        Returns:
        +
        the value
        +
        +
      • +
      + + + +
        +
      • +

        getString

        +
        public java.lang.String getString(java.lang.String key)
        +
        Get a String form the internal JSONObject
        +
        +
        Parameters:
        +
        key - the key for the object
        +
        Returns:
        +
        the String
        +
        +
      • +
      + + + +
        +
      • +

        getString

        +
        public java.lang.String getString(java.lang.String key,
        +                                  java.lang.String defVal)
        +
        Get a String form the internal JSONObject.
        +
        +
        Parameters:
        +
        key - the key for the object
        +
        defVal - a default value in case the key does not exist or is not a String
        +
        Returns:
        +
        the value or, on error, the default value
        +
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        public boolean getBoolean(java.lang.String key)
        +
        Get a boolean form the internal JSONObject
        +
        +
        Parameters:
        +
        key - the key for the object
        +
        Returns:
        +
        the boolean
        +
        +
      • +
      + + + +
        +
      • +

        getBoolean

        +
        public boolean getBoolean(java.lang.String key,
        +                          boolean defVal)
        +
        Get a boolean form the internal JSONObject
        +
        +
        Parameters:
        +
        key - the key for the object
        +
        defVal - a default value in case the key does not exist or is not a boolean
        +
        Returns:
        +
        the boolean or, on error, the default value
        +
        +
      • +
      + + + +
        +
      • +

        has

        +
        public boolean has(java.lang.String key)
        +
        Check the internal JSONObject for a key
        +
        +
        Parameters:
        +
        key - the key to be looked for
        +
        Returns:
        +
        true if the key exists, false otherwise
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public void put(java.lang.String key,
        +                java.lang.Object value)
        +
        Put data into the internal JSONObject
        +
        +
        Parameters:
        +
        key - the key
        +
        value - the data
        +
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public void remove(java.lang.String key)
        +
        Remove an object from the internal JSONObject
        +
        +
        Parameters:
        +
        key - the key of the object
        +
        +
      • +
      + + + +
        +
      • +

        delete

        +
        public void delete()
        +
        Delete the authentication. That is important if the Authentication turned out to invalid. + For example during login, if no ClientIdentity was associated with the given Credentials
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/Authorization.html b/javadoc/org/loklak/server/Authorization.html new file mode 100644 index 0000000..51c5fc4 --- /dev/null +++ b/javadoc/org/loklak/server/Authorization.html @@ -0,0 +1,765 @@ + + + + + +Authorization + + + + + + + + + + + + +
+
org.loklak.server
+

Class Authorization

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.server.Authorization
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Authorization
    +extends java.lang.Object
    +
    Authorization asks: what is the user allowed to do? This class holds user rights. + An object instance of this class is handed to each serivce call to enable that + service to work according to granted service level. + One part of authorization decisions is the history of the past user action. + Therefore an authorization object has the attachment of an Accounting object;
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Authorization

        +
        public Authorization(ClientIdentity identity,
        +                     JsonTray parent,
        +                     UserRoles urs)
        +
        create a new authorization object. The given json object must be taken + as value from a parent json. If the parent json is a JsonFile, then that + file can be handed over as well to enable persistency.
        +
        +
        Parameters:
        +
        identity -
        +
        parent - the parent file or null if there is no parent file (no persistency)
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getAccounting

        +
        public Accounting getAccounting()
        +
      • +
      + + + + + + + +
        +
      • +

        isAdmin

        +
        public boolean isAdmin()
        +
      • +
      + + + +
        +
      • +

        setRequestFrequency

        +
        public Authorization setRequestFrequency(java.lang.String path,
        +                                         int reqPerHour)
        +
      • +
      + + + +
        +
      • +

        getRequestFrequency

        +
        public int getRequestFrequency(java.lang.String path)
        +
      • +
      + + + + + + + +
        +
      • +

        getService

        +
        public ClientService getService(java.lang.String serviceId)
        +
      • +
      + + + + + + + +
        +
      • +

        getBaseUserRole

        +
        public BaseUserRole getBaseUserRole()
        +
      • +
      + + + +
        +
      • +

        getUserRole

        +
        public UserRole getUserRole()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getPermissionOverrides

        +
        public JSONObject getPermissionOverrides()
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          JSONObject value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          JSONObject value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          java.lang.String value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          java.lang.String value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          int value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          int value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          long value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          long value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          double value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          double value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          java.lang.Object value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          java.lang.Object value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          boolean value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          boolean value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          java.util.Map<?,?> value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          java.util.Map<?,?> value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          java.util.Collection<?> value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          java.util.Collection<?> value)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/BaseUserRole.html b/javadoc/org/loklak/server/BaseUserRole.html new file mode 100644 index 0000000..4b63c46 --- /dev/null +++ b/javadoc/org/loklak/server/BaseUserRole.html @@ -0,0 +1,363 @@ + + + + + +BaseUserRole + + + + + + + + + + + + +
+
org.loklak.server
+

Enum BaseUserRole

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<BaseUserRole>
    • +
    • +
        +
      • org.loklak.server.BaseUserRole
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<BaseUserRole>
    +
    +
    +
    +
    public enum BaseUserRole
    +extends java.lang.Enum<BaseUserRole>
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static BaseUserRolevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static BaseUserRole[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BaseUserRole[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BaseUserRole c : BaseUserRole.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BaseUserRole valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/Client.html b/javadoc/org/loklak/server/Client.html new file mode 100644 index 0000000..ea40166 --- /dev/null +++ b/javadoc/org/loklak/server/Client.html @@ -0,0 +1,333 @@ + + + + + +Client + + + + + + + + + + + + +
+
org.loklak.server
+

Class Client

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.server.Client
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      ModifierConstructor and Description
      protected Client(java.lang.String rawIdString) 
      protected Client(java.lang.String typeName, + java.lang.String untypedId) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected java.lang.StringgetKey() 
      java.lang.StringgetName() 
      JSONObjecttoJSON() 
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Client

        +
        protected Client(java.lang.String rawIdString)
        +
      • +
      + + + +
        +
      • +

        Client

        +
        protected Client(java.lang.String typeName,
        +                 java.lang.String untypedId)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getKey

        +
        protected java.lang.String getKey()
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/ClientCredential.Type.html b/javadoc/org/loklak/server/ClientCredential.Type.html new file mode 100644 index 0000000..6fb3bfa --- /dev/null +++ b/javadoc/org/loklak/server/ClientCredential.Type.html @@ -0,0 +1,404 @@ + + + + + +ClientCredential.Type + + + + + + + + + + + + +
+
org.loklak.server
+

Enum ClientCredential.Type

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ClientCredential.Type[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ClientCredential.Type c : ClientCredential.Type.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ClientCredential.Type valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        isPersistent

        +
        public boolean isPersistent()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/ClientCredential.html b/javadoc/org/loklak/server/ClientCredential.html new file mode 100644 index 0000000..aa05446 --- /dev/null +++ b/javadoc/org/loklak/server/ClientCredential.html @@ -0,0 +1,406 @@ + + + + + +ClientCredential + + + + + + + + + + + + +
+
org.loklak.server
+

Class ClientCredential

+
+
+ +
+
    +
  • +
    +
    +
    public class ClientCredential
    +extends Client
    +
    A credential is used as key in DAO.authentication
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientCredential

        +
        public ClientCredential(java.lang.String rawIdString)
        +
      • +
      + + + +
        +
      • +

        ClientCredential

        +
        public ClientCredential(ClientCredential.Type type,
        +                        java.lang.String untypedId)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isPersistent

        +
        public boolean isPersistent()
        +
      • +
      + + + +
        +
      • +

        isPasswdLogin

        +
        public boolean isPasswdLogin()
        +
      • +
      + + + +
        +
      • +

        isCookie

        +
        public boolean isCookie()
        +
      • +
      + + + +
        +
      • +

        isToken

        +
        public boolean isToken()
        +
      • +
      + + + +
        +
      • +

        isResetToken

        +
        public boolean isResetToken()
        +
      • +
      + + + +
        +
      • +

        isPubkeyChallange

        +
        public boolean isPubkeyChallange()
        +
      • +
      + + + +
        +
      • +

        isAnonymous

        +
        public boolean isAnonymous()
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/ClientIdentity.Type.html b/javadoc/org/loklak/server/ClientIdentity.Type.html new file mode 100644 index 0000000..713d1b6 --- /dev/null +++ b/javadoc/org/loklak/server/ClientIdentity.Type.html @@ -0,0 +1,356 @@ + + + + + +ClientIdentity.Type + + + + + + + + + + + + +
+
org.loklak.server
+

Enum ClientIdentity.Type

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      email 
      host 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanisPersistent() 
      static ClientIdentity.TypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ClientIdentity.Type[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ClientIdentity.Type[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ClientIdentity.Type c : ClientIdentity.Type.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ClientIdentity.Type valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        isPersistent

        +
        public boolean isPersistent()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/ClientIdentity.html b/javadoc/org/loklak/server/ClientIdentity.html new file mode 100644 index 0000000..4d719f4 --- /dev/null +++ b/javadoc/org/loklak/server/ClientIdentity.html @@ -0,0 +1,372 @@ + + + + + +ClientIdentity + + + + + + + + + + + + +
+
org.loklak.server
+

Class ClientIdentity

+
+
+ +
+
    +
  • +
    +
    +
    public class ClientIdentity
    +extends Client
    +
    an identity is only a string which contains details sufficient enough to + identify a user and to send data to that user
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientIdentity

        +
        public ClientIdentity(java.lang.String rawIdString)
        +
      • +
      + + + +
        +
      • +

        ClientIdentity

        +
        public ClientIdentity(ClientIdentity.Type type,
        +                      java.lang.String untypedId)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isPersistent

        +
        public boolean isPersistent()
        +
      • +
      + + + +
        +
      • +

        isEmail

        +
        public boolean isEmail()
        +
      • +
      + + + +
        +
      • +

        isAnonymous

        +
        public boolean isAnonymous()
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/ClientService.Type.html b/javadoc/org/loklak/server/ClientService.Type.html new file mode 100644 index 0000000..701ca08 --- /dev/null +++ b/javadoc/org/loklak/server/ClientService.Type.html @@ -0,0 +1,331 @@ + + + + + +ClientService.Type + + + + + + + + + + + + +
+
org.loklak.server
+

Enum ClientService.Type

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      apiAccess 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static ClientService.TypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ClientService.Type[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ClientService.Type[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ClientService.Type c : ClientService.Type.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ClientService.Type valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/ClientService.html b/javadoc/org/loklak/server/ClientService.html new file mode 100644 index 0000000..c40fb31 --- /dev/null +++ b/javadoc/org/loklak/server/ClientService.html @@ -0,0 +1,396 @@ + + + + + +ClientService + + + + + + + + + + + + +
+
org.loklak.server
+

Class ClientService

+
+
+ +
+
    +
  • +
    +
    +
    public class ClientService
    +extends Client
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientService

        +
        public ClientService(java.lang.String rawIdString)
        +
      • +
      + + + +
        +
      • +

        ClientService

        +
        public ClientService(ClientService.Type type,
        +                     java.lang.String untypedId)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/FileHandler.html b/javadoc/org/loklak/server/FileHandler.html new file mode 100644 index 0000000..25dcdf1 --- /dev/null +++ b/javadoc/org/loklak/server/FileHandler.html @@ -0,0 +1,339 @@ + + + + + +FileHandler + + + + + + + + + + + + +
+
org.loklak.server
+

Class FileHandler

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ResourceHandler
    • +
    • +
        +
      • org.loklak.server.FileHandler
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class FileHandler
    +extends ResourceHandler
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FileHandler(int expiresSeconds) +
      cerate a custom ResourceHandler with more caching
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddoResponseHeaders(HttpServletResponse response, + Resource resource, + java.lang.String mimeType) 
      ResourcegetResource(java.lang.String path) 
      voidhandle(java.lang.String target, + Request baseRequest, + HttpServletRequest request, + HttpServletResponse response) 
      static voidsetCaching(HttpServletResponse response, + int expiresSeconds) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FileHandler

        +
        public FileHandler(int expiresSeconds)
        +
        cerate a custom ResourceHandler with more caching
        +
        +
        Parameters:
        +
        expiresSeconds - the time each file shall stay in the cache
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        handle

        +
        public void handle(java.lang.String target,
        +                   Request baseRequest,
        +                   HttpServletRequest request,
        +                   HttpServletResponse response)
        +            throws java.io.IOException,
        +                   ServletException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        ServletException
        +
        +
      • +
      + + + +
        +
      • +

        doResponseHeaders

        +
        protected void doResponseHeaders(HttpServletResponse response,
        +                                 Resource resource,
        +                                 java.lang.String mimeType)
        +
      • +
      + + + +
        +
      • +

        setCaching

        +
        public static void setCaching(HttpServletResponse response,
        +                              int expiresSeconds)
        +
      • +
      + + + +
        +
      • +

        getResource

        +
        public Resource getResource(java.lang.String path)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/HttpsMode.html b/javadoc/org/loklak/server/HttpsMode.html new file mode 100644 index 0000000..79aff46 --- /dev/null +++ b/javadoc/org/loklak/server/HttpsMode.html @@ -0,0 +1,428 @@ + + + + + +HttpsMode + + + + + + + + + + + + +
+
org.loklak.server
+

Enum HttpsMode

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<HttpsMode>
    • +
    • +
        +
      • org.loklak.server.HttpsMode
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<HttpsMode>
    +
    +
    +
    +
    public enum HttpsMode
    +extends java.lang.Enum<HttpsMode>
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static HttpsMode[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (HttpsMode c : HttpsMode.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static HttpsMode valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(HttpsMode other)
        +
      • +
      + + + +
        +
      • +

        isSmallerThan

        +
        public boolean isSmallerThan(HttpsMode other)
        +
      • +
      + + + +
        +
      • +

        isSmallerOrEqualTo

        +
        public boolean isSmallerOrEqualTo(HttpsMode other)
        +
      • +
      + + + +
        +
      • +

        isGreaterThan

        +
        public boolean isGreaterThan(HttpsMode other)
        +
      • +
      + + + +
        +
      • +

        isGreaterOrEqualTo

        +
        public boolean isGreaterOrEqualTo(HttpsMode other)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/Query.html b/javadoc/org/loklak/server/Query.html new file mode 100644 index 0000000..971c5d5 --- /dev/null +++ b/javadoc/org/loklak/server/Query.html @@ -0,0 +1,612 @@ + + + + + +Query + + + + + + + + + + + + +
+
org.loklak.server
+

Class Query

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.server.Query
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Query
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Query(HttpServletRequest request) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and TypeMethod and Description
      voidfinalize() 
      booleanget(java.lang.String key, + boolean dflt) 
      java.util.Dateget(java.lang.String key, + java.util.Date dflt, + int timezoneOffset) 
      doubleget(java.lang.String key, + double dflt) 
      intget(java.lang.String key, + int dflt) 
      longget(java.lang.String key, + long dflt) 
      java.lang.Stringget(java.lang.String key, + java.lang.String dflt) 
      java.lang.String[]get(java.lang.String key, + java.lang.String[] dflt, + java.lang.String delim) 
      longgetAccessTime() 
      java.lang.StringgetClientHost() 
      java.util.Set<java.lang.String>getKeys() 
      java.util.Map<java.lang.String,java.lang.String>getMap() 
      HttpServletRequestgetRequest() 
      longgetTimeSinceLastAccess() 
      inthashCode() 
      voidinitGET(java.util.Map<java.lang.String,java.lang.String> q) 
      voidinitPOST(java.util.Map<java.lang.String,byte[]> map) +
      Deprecated. 
      +
      booleanisDoS_blackout() 
      booleanisDoS_servicereduction() 
      booleanisLocalhostAccess() 
      voidrecordEvent(java.lang.String eventName, + java.lang.Object eventValue) 
      voidsetResponse(HttpServletResponse response, + java.lang.String mime) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Query

        +
        public Query(HttpServletRequest request)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        finalize

        +
        public void finalize()
        +
        +
        Overrides:
        +
        finalize in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        initGET

        +
        public void initGET(java.util.Map<java.lang.String,java.lang.String> q)
        +
      • +
      + + + +
        +
      • +

        initPOST

        +
        @Deprecated
        +public void initPOST(java.util.Map<java.lang.String,byte[]> map)
        +
        Deprecated. 
        +
      • +
      + + + +
        +
      • +

        getClientHost

        +
        public java.lang.String getClientHost()
        +
      • +
      + + + +
        +
      • +

        isLocalhostAccess

        +
        public boolean isLocalhostAccess()
        +
      • +
      + + + +
        +
      • +

        getAccessTime

        +
        public long getAccessTime()
        +
      • +
      + + + +
        +
      • +

        getTimeSinceLastAccess

        +
        public long getTimeSinceLastAccess()
        +
      • +
      + + + +
        +
      • +

        isDoS_blackout

        +
        public boolean isDoS_blackout()
        +
      • +
      + + + +
        +
      • +

        isDoS_servicereduction

        +
        public boolean isDoS_servicereduction()
        +
      • +
      + + + +
        +
      • +

        recordEvent

        +
        public void recordEvent(java.lang.String eventName,
        +                        java.lang.Object eventValue)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.lang.String get(java.lang.String key,
        +                            java.lang.String dflt)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.lang.String[] get(java.lang.String key,
        +                              java.lang.String[] dflt,
        +                              java.lang.String delim)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public int get(java.lang.String key,
        +               int dflt)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public long get(java.lang.String key,
        +                long dflt)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public double get(java.lang.String key,
        +                  double dflt)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public boolean get(java.lang.String key,
        +                   boolean dflt)
        +
      • +
      + + + +
        +
      • +

        get

        +
        public java.util.Date get(java.lang.String key,
        +                          java.util.Date dflt,
        +                          int timezoneOffset)
        +
      • +
      + + + +
        +
      • +

        getMap

        +
        public java.util.Map<java.lang.String,java.lang.String> getMap()
        +
      • +
      + + + +
        +
      • +

        getKeys

        +
        public java.util.Set<java.lang.String> getKeys()
        +
      • +
      + + + +
        +
      • +

        setResponse

        +
        public void setResponse(HttpServletResponse response,
        +                        java.lang.String mime)
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        getRequest

        +
        public HttpServletRequest getRequest()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/Settings.html b/javadoc/org/loklak/server/Settings.html new file mode 100644 index 0000000..2714c93 --- /dev/null +++ b/javadoc/org/loklak/server/Settings.html @@ -0,0 +1,526 @@ + + + + + +Settings + + + + + + + + + + + + +
+
org.loklak.server
+

Class Settings

+
+
+ +
+
    +
  • +
    +
    +
    public class Settings
    +extends JsonFile
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Settings

        +
        public Settings(java.io.File file)
        +         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPrivateKey

        +
        public java.security.PrivateKey getPrivateKey()
        +
        Get the private key as PrivateKey
        +
        +
        Returns:
        +
        PrivateKey private_key
        +
        +
      • +
      + + + +
        +
      • +

        getPrivateKeyAsString

        +
        public java.lang.String getPrivateKeyAsString()
        +
        Get the private key as String
        +
        +
        Returns:
        +
        String representation of the private key
        +
        +
      • +
      + + + +
        +
      • +

        getPublicKey

        +
        public java.security.PublicKey getPublicKey()
        +
        Get the public key as PublicKey
        +
        +
        Returns:
        +
        PublicKey public_key
        +
        +
      • +
      + + + +
        +
      • +

        getPublicKeyAsString

        +
        public java.lang.String getPublicKeyAsString()
        +
        Get the public key as String
        +
        +
        Returns:
        +
        String representation of the public key
        +
        +
      • +
      + + + +
        +
      • +

        getKeyAlgorithm

        +
        public java.lang.String getKeyAlgorithm()
        +
        Get the key algorithm e.g. RSA
        +
        +
        Returns:
        +
        String algorithm
        +
        +
      • +
      + + + +
        +
      • +

        getPeerHash

        +
        public java.lang.String getPeerHash()
        +
        Get the hash of the public key
        +
        +
        Returns:
        +
        String hash
        +
        +
      • +
      + + + +
        +
      • +

        getPeerHashAlgorithm

        +
        public java.lang.String getPeerHashAlgorithm()
        +
        Get the hash algorithm for the public key
        +
        +
        Returns:
        +
        String hash_algorithm
        +
        +
      • +
      + + + +
        +
      • +

        loadPrivateKey

        +
        public boolean loadPrivateKey()
        +
        Load private key from file
        +
        +
        Returns:
        +
        true if a valid key is found in file
        +
        +
      • +
      + + + +
        +
      • +

        loadPublicKey

        +
        public boolean loadPublicKey()
        +
        Load public key from file
        +
        +
        Returns:
        +
        true if a valid key is found in file
        +
        +
      • +
      + + + +
        +
      • +

        setPrivateKey

        +
        public void setPrivateKey(java.security.PrivateKey key,
        +                          java.lang.String algorithm)
        +
        Set the private key
        +
        +
        Parameters:
        +
        key -
        +
        algorithm -
        +
        +
      • +
      + + + +
        +
      • +

        setPublicKey

        +
        public void setPublicKey(java.security.PublicKey key,
        +                         java.lang.String algorithm)
        +
        Set the public key
        +
        +
        Parameters:
        +
        key -
        +
        algorithm -
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/UserRole.html b/javadoc/org/loklak/server/UserRole.html new file mode 100644 index 0000000..8cc4274 --- /dev/null +++ b/javadoc/org/loklak/server/UserRole.html @@ -0,0 +1,433 @@ + + + + + +UserRole + + + + + + + + + + + + +
+
org.loklak.server
+

Class UserRole

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.server.UserRole
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class UserRole
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UserRole

        +
        public UserRole(java.lang.String name,
        +                BaseUserRole baseUserRole,
        +                UserRole parent,
        +                JSONObject sourceObject)
        +
        +
        Parameters:
        +
        name - the key in the sourceObject
        +
        baseUserRole -
        +
        parent - if a parent user role exists
        +
        sourceObject - JSONObject in some storage file. Write changes here if exist
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBaseUserRole

        +
        public BaseUserRole getBaseUserRole()
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
      • +
      + + + +
        +
      • +

        getDisplayName

        +
        public java.lang.String getDisplayName()
        +
      • +
      + + + +
        +
      • +

        setDisplayName

        +
        public void setDisplayName(java.lang.String name)
        +
      • +
      + + + +
        +
      • +

        getParent

        +
        public UserRole getParent()
        +
      • +
      + + + +
        +
      • +

        setParent

        +
        public void setParent(UserRole parent)
        +
      • +
      + + + + + + + +
        +
      • +

        getPermissionOverrides

        +
        public JSONObject getPermissionOverrides()
        +
      • +
      + + + +
        +
      • +

        getPermissionOverrides

        +
        public JSONObject getPermissionOverrides(java.lang.String servletCanonicalName)
        +
      • +
      + + + + + + + +
        +
      • +

        setPermission

        +
        public void setPermission(java.lang.String servletCanonicalName,
        +                          java.lang.String key,
        +                          JSONObject value)
        +
      • +
      + + + +
        +
      • +

        setPermission

        +
        public void setPermission(APIHandler servlet,
        +                          java.lang.String key,
        +                          JSONObject value)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/UserRoles.html b/javadoc/org/loklak/server/UserRoles.html new file mode 100644 index 0000000..f38cf44 --- /dev/null +++ b/javadoc/org/loklak/server/UserRoles.html @@ -0,0 +1,362 @@ + + + + + +UserRoles + + + + + + + + + + + + +
+
org.loklak.server
+

Class UserRoles

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.server.UserRoles
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class UserRoles
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UserRoles

        +
        public UserRoles(JSONObject obj)
        +          throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        loadDefaultUserRoles

        +
        public void loadDefaultUserRoles()
        +
        Create default user roles, use names of the BaseUserRoles
        +
      • +
      + + + +
        +
      • +

        loadUserRolesFromObject

        +
        public void loadUserRolesFromObject()
        +                             throws java.lang.IllegalArgumentException
        +
        +
        Throws:
        +
        java.lang.IllegalArgumentException
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        has

        +
        public boolean has(java.lang.String ur)
        +
      • +
      + + + +
        +
      • +

        getUserRoleFromString

        +
        public UserRole getUserRoleFromString(java.lang.String ur)
        +
      • +
      + + + +
        +
      • +

        getUserRoles

        +
        public java.util.Map<java.lang.String,UserRole> getUserRoles()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/server/package-frame.html b/javadoc/org/loklak/server/package-frame.html new file mode 100644 index 0000000..311b7aa --- /dev/null +++ b/javadoc/org/loklak/server/package-frame.html @@ -0,0 +1,48 @@ + + + + + +org.loklak.server + + + + + +

org.loklak.server

+ + + diff --git a/javadoc/org/loklak/server/package-summary.html b/javadoc/org/loklak/server/package-summary.html new file mode 100644 index 0000000..b1fddc1 --- /dev/null +++ b/javadoc/org/loklak/server/package-summary.html @@ -0,0 +1,260 @@ + + + + + +org.loklak.server + + + + + + + + + + + +
+

Package org.loklak.server

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/server/package-tree.html b/javadoc/org/loklak/server/package-tree.html new file mode 100644 index 0000000..157d247 --- /dev/null +++ b/javadoc/org/loklak/server/package-tree.html @@ -0,0 +1,195 @@ + + + + + +org.loklak.server Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.server

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/stream/MQTTPublisher.html b/javadoc/org/loklak/stream/MQTTPublisher.html new file mode 100644 index 0000000..a22ba31 --- /dev/null +++ b/javadoc/org/loklak/stream/MQTTPublisher.html @@ -0,0 +1,286 @@ + + + + + +MQTTPublisher + + + + + + + + + + + + +
+
org.loklak.stream
+

Class MQTTPublisher

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.stream.MQTTPublisher
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MQTTPublisher
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MQTTPublisher(java.lang.String address) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidpublish(java.lang.String channel, + java.lang.String message) 
      voidpublish(java.lang.String channel, + java.lang.String[] messages) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MQTTPublisher

        +
        public MQTTPublisher(java.lang.String address)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        publish

        +
        public void publish(java.lang.String channel,
        +                    java.lang.String message)
        +
      • +
      + + + +
        +
      • +

        publish

        +
        public void publish(java.lang.String channel,
        +                    java.lang.String[] messages)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/stream/package-frame.html b/javadoc/org/loklak/stream/package-frame.html new file mode 100644 index 0000000..09f4d4c --- /dev/null +++ b/javadoc/org/loklak/stream/package-frame.html @@ -0,0 +1,20 @@ + + + + + +org.loklak.stream + + + + + +

org.loklak.stream

+
+

Classes

+ +
+ + diff --git a/javadoc/org/loklak/stream/package-summary.html b/javadoc/org/loklak/stream/package-summary.html new file mode 100644 index 0000000..e367c8c --- /dev/null +++ b/javadoc/org/loklak/stream/package-summary.html @@ -0,0 +1,140 @@ + + + + + +org.loklak.stream + + + + + + + + + + + +
+

Package org.loklak.stream

+
+
+
    +
  • + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    MQTTPublisher 
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/stream/package-tree.html b/javadoc/org/loklak/stream/package-tree.html new file mode 100644 index 0000000..00781e0 --- /dev/null +++ b/javadoc/org/loklak/stream/package-tree.html @@ -0,0 +1,135 @@ + + + + + +org.loklak.stream Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.stream

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/susi/SusiProcedures.html b/javadoc/org/loklak/susi/SusiProcedures.html new file mode 100644 index 0000000..c448657 --- /dev/null +++ b/javadoc/org/loklak/susi/SusiProcedures.html @@ -0,0 +1,358 @@ + + + + + +SusiProcedures + + + + + + + + + + + + +
+
org.loklak.susi
+

Class SusiProcedures

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.util.AbstractMap<K,V>
    • +
    • +
        +
      • java.util.HashMap<K,V>
      • +
      • +
          +
        • java.util.LinkedHashMap<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,SusiThought>>
        • +
        • +
            +
          • org.loklak.susi.SusiProcedures
          • +
          +
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,SusiThought>>
    +
    +
    +
    +
    public class SusiProcedures
    +extends java.util.LinkedHashMap<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,SusiThought>>
    +implements java.util.Map<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,SusiThought>>
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.util.AbstractMap

        +java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from interface java.util.Map

        +java.util.Map.Entry<K,V>
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SusiProcedures() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      SusiThoughtdeduce(java.lang.String q) +
      Deduction is the application of an intent on perception and a world model.
      +
      +
        +
      • + + +

        Methods inherited from class java.util.LinkedHashMap

        +clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.HashMap

        +clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.AbstractMap

        +equals, hashCode, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Map

        +clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SusiProcedures

        +
        public SusiProcedures()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        deduce

        +
        public SusiThought deduce(java.lang.String q)
        +
        Deduction is the application of an intent on perception and a world model. + In this method the mappings from the intent set is applied to the perception q and previous + deduction steps as given with the flow. Every mapping that has a matcher + with the perception causes the application of the stored lambda function on the perception + producing a thought. If the thought generation is not successful (which means that the lambda + fails or produces a null output) then the next mappings from the intent set is tried. + In case that no inspiration is possible, an empty thought is produced, containing nothing.
        +
        +
        Parameters:
        +
        q - the perception
        +
        Returns:
        +
        a thought from the application of the intent set
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/susi/SusiThought.html b/javadoc/org/loklak/susi/SusiThought.html new file mode 100644 index 0000000..c496349 --- /dev/null +++ b/javadoc/org/loklak/susi/SusiThought.html @@ -0,0 +1,729 @@ + + + + + +SusiThought + + + + + + + + + + + + +
+
org.loklak.susi
+

Class SusiThought

+
+
+ +
+
    +
  • +
    +
    +
    public class SusiThought
    +extends JSONObject
    +
    A thought is a piece of data that can be remembered. The structure or the thought can be + modeled as a table which may be created using the retrieval of information from elsewhere + of the current argument.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        metadata_name

        +
        public final java.lang.String metadata_name
        +
      • +
      + + + +
        +
      • +

        data_name

        +
        public final java.lang.String data_name
        +
      • +
      + + + +
        +
      • +

        variable_pattern

        +
        public static final java.util.regex.Pattern variable_pattern
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SusiThought

        +
        public SusiThought()
        +
        create an empty thought, to be filled with single data entities.
        +
      • +
      + + + +
        +
      • +

        SusiThought

        +
        public SusiThought(JSONObject json)
        +
        create a clone of a json object as a SusiThought object
        +
        +
        Parameters:
        +
        json - the 'other' thought, probably an exported and re-imported thought
        +
        +
      • +
      + + + +
        +
      • +

        SusiThought

        +
        public SusiThought(java.util.regex.Matcher matcher)
        +
        Create an initial thought using the matcher on an expression. + Such an expression is like the input from a text source which contains keywords + that are essential for the thought. The matcher extracts such information. + Matching informations are named using the order of the appearance of the information pieces. + The first information is named '1', the second '2' and so on. The whole information which contained + the matching information is named '0'.
        +
        +
        Parameters:
        +
        matcher -
        +
        +
      • +
      + + + +
        +
      • +

        SusiThought

        +
        @Deprecated
        +public SusiThought(java.lang.String metadata_name,
        +                                java.lang.String data_name)
        +
        Deprecated. 
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        setOffset

        +
        public SusiThought setOffset(int offset)
        +
        In a series of information pieces the first information piece has number 0. + If the thought is a follow-up series of a previous set of information, an offset is needed. + That can be set here.
        +
        +
        Parameters:
        +
        offset - the offset to a previous set of information pieces.
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        getOffset

        +
        public int getOffset()
        +
      • +
      + + + +
        +
      • +

        getCount

        +
        public int getCount()
        +
        The number of information pieces in a set of informations may have a count.
        +
        +
        Returns:
        +
        hits number of information pieces
        +
        +
      • +
      + + + +
        +
      • +

        setHits

        +
        public SusiThought setHits(int hits)
        +
        While the number of information pieces in a whole has a count, the number of relevant + information pieces may have been extracted. The hits number gives the number of relevant + pieces. This can be set here.
        +
        +
        Parameters:
        +
        hits - number of information pieces
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        getHits

        +
        public int getHits()
        +
      • +
      + + + +
        +
      • +

        setProcess

        +
        public SusiThought setProcess(java.lang.String processName)
        +
        The process which created this thought may have a name or description string. + To document what happened, the process namen can be given here
        +
        +
        Parameters:
        +
        query - the process which formed this thought
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        setQuery

        +
        public SusiThought setQuery(java.lang.String query)
        +
        If this thought was the result of a retrieval using a specific expression, that expression is + called the query. The query can be attached to a thought
        +
        +
        Parameters:
        +
        query - the expression which caused that this thought was formed
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        getQuery

        +
        public java.lang.String getQuery()
        +
      • +
      + + + +
        +
      • +

        setScraperInfo

        +
        public SusiThought setScraperInfo(java.lang.String scraperInfo)
        +
        If the expression to create this thought had an agent that expressed the result set of the + information contained in this thought, it is called the scraper. The scraper name can be attached here.
        +
        +
        Parameters:
        +
        scraperInfo - the scraper that created this thought
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        setData

        +
        public SusiThought setData(JSONArray table)
        +
        Information contained in this thought has the form of a result set table, organized in rows and columns. + The columns must have all the same name in each row.
        +
        +
        Parameters:
        +
        table - the information for this thought.
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        getData

        +
        public JSONArray getData()
        +
        Information contained in this thought can get returned as a table, a set of information pieces.
        +
        +
        Returns:
        +
        a table of information pieces as a set of rows which all have the same column names.
        +
        +
      • +
      + + + +
        +
      • +

        mergeData

        +
        public SusiThought mergeData(JSONArray table1)
        +
        Merging of data is required during an mind-meld. + To meld two thoughts, we combine their data arrays into one. + The resulting table has the maximum length of the source tables
        +
        +
        Parameters:
        +
        table - the information to be melted into our existing table.
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        addObservation

        +
        public SusiThought addObservation(java.lang.String featureName,
        +                                  java.lang.String observation)
        +
        If during thinking we observe something that we want to memorize, we can memorize this here
        +
        +
        Parameters:
        +
        featureName - the object key
        +
        observation - the object value
        +
        Returns:
        +
        the thought
        +
        +
      • +
      + + + +
        +
      • +

        unify

        +
        public java.lang.String unify(java.lang.String statement)
        +
        Unification applies a piece of memory within the current argument to a statement + which creates an instantiated statement
        +
        +
        Parameters:
        +
        statement -
        +
        Returns:
        +
        the instantiated statement with elements of the argument applied as much as possible
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/susi/SusiTransfer.html b/javadoc/org/loklak/susi/SusiTransfer.html new file mode 100644 index 0000000..191a4d9 --- /dev/null +++ b/javadoc/org/loklak/susi/SusiTransfer.html @@ -0,0 +1,353 @@ + + + + + +SusiTransfer + + + + + + + + + + + + +
+
org.loklak.susi
+

Class SusiTransfer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.susi.SusiTransfer
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class SusiTransfer
    +extends java.lang.Object
    +
    Transfer is the ability to perceive a given thought in a different representation + in such a way that it applies on an intent or an intent set.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SusiTransfer(java.lang.String mappingExpression) +
      Create a new transfer.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      JSONArrayconclude(JSONArray choices) +
      A conclusion from choices is done by the application of a function on the choice set.
      +
      JSONObjectextract(JSONObject choice) +
      transfer mappings can be used to extract specific information from a json object to + create a new json object.
      +
      java.util.Set<java.lang.String>keys() +
      get the set of transfer keys
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SusiTransfer

        +
        public SusiTransfer(java.lang.String mappingExpression)
        +
        Create a new transfer. The mapping must be given in the same way as SQL column selection + statements. The selection of sub-objects of json object can be done using dot-notion. + Arrays can be accessed using brackets '[' and ']'. An example is: + mapping = "location.lon AS longitude, location.lat AS latitude" + or + mapping = "names[0] AS firstname" + As a reference, the mappingExpression shall be superset of a list of + https://mariadb.com/kb/en/mariadb/select/#select-expressions
        +
        +
        Parameters:
        +
        mapping -
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        keys

        +
        public java.util.Set<java.lang.String> keys()
        +
        get the set of transfer keys
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        extract

        +
        public JSONObject extract(JSONObject choice)
        +
        transfer mappings can be used to extract specific information from a json object to + create a new json object. In the context of Susi this is applied on choices from thought data
        +
        +
        Parameters:
        +
        choice - one 'row' of a SusiThought data array
        +
        Returns:
        +
        a choice where the elements of the given choice are extracted according to the given mapping
        +
        +
      • +
      + + + +
        +
      • +

        conclude

        +
        public JSONArray conclude(JSONArray choices)
        +
        A conclusion from choices is done by the application of a function on the choice set. + This may be done by i.e. counting the number of choices or extracting a maximum element.
        +
        +
        Parameters:
        +
        choices - the given set of json objects from the data object of a SusiThought
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/susi/package-frame.html b/javadoc/org/loklak/susi/package-frame.html new file mode 100644 index 0000000..8d12f19 --- /dev/null +++ b/javadoc/org/loklak/susi/package-frame.html @@ -0,0 +1,22 @@ + + + + + +org.loklak.susi + + + + + +

org.loklak.susi

+ + + diff --git a/javadoc/org/loklak/susi/package-summary.html b/javadoc/org/loklak/susi/package-summary.html new file mode 100644 index 0000000..99ea837 --- /dev/null +++ b/javadoc/org/loklak/susi/package-summary.html @@ -0,0 +1,153 @@ + + + + + +org.loklak.susi + + + + + + + + + + + +
+

Package org.loklak.susi

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    SusiProcedures 
    SusiThought +
    A thought is a piece of data that can be remembered.
    +
    SusiTransfer +
    Transfer is the ability to perceive a given thought in a different representation + in such a way that it applies on an intent or an intent set.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/susi/package-tree.html b/javadoc/org/loklak/susi/package-tree.html new file mode 100644 index 0000000..cbf4306 --- /dev/null +++ b/javadoc/org/loklak/susi/package-tree.html @@ -0,0 +1,153 @@ + + + + + +org.loklak.susi Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.susi

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.util.AbstractMap<K,V> (implements java.util.Map<K,V>) +
        +
      • java.util.HashMap<K,V> (implements java.lang.Cloneable, java.util.Map<K,V>, java.io.Serializable) +
          +
        • java.util.LinkedHashMap<K,V> (implements java.util.Map<K,V>) + +
        • +
        +
      • +
      +
    • +
    • org.json.JSONObject + +
    • +
    • org.loklak.susi.SusiTransfer
    • +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/tools/ASCII.html b/javadoc/org/loklak/tools/ASCII.html new file mode 100644 index 0000000..4a0d834 --- /dev/null +++ b/javadoc/org/loklak/tools/ASCII.html @@ -0,0 +1,482 @@ + + + + + +ASCII + + + + + + + + + + + + +
+
org.loklak.tools
+

Class ASCII

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.ASCII
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.Comparator<java.lang.String>
    +
    +
    +
    +
    public class ASCII
    +extends java.lang.Object
    +implements java.util.Comparator<java.lang.String>
    +
    this is a replacement of an insensitive collator object, produced by a RuleBasedCollator Class + The RuleBasedCollator is a very inefficient class if it is used only for insensitive ASCII comparisments + This class is a very simple comparator for Strings which can be used to compare also Strings with upper/lowercase + Strings without applying .toUpperCase or .toLowerCase + Strings must contain no other than ASCII code.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ASCII(boolean insensitive) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectclone() 
      intcompare(java.lang.String s0, + java.lang.String s1) 
      booleanequals(java.lang.Object obj) 
      booleanequals(java.lang.String s0, + java.lang.String s1) 
      static byte[]getBytes(java.lang.String s) 
      static byte[]getBytes(java.lang.String s, + int beginIndex, + int endIndex) 
      inthashCode() 
      static java.lang.StringString(byte[] bytes) 
      static java.lang.StringString(byte[] bytes, + int offset, + int length) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        insensitiveASCIIComparator

        +
        public static final ASCII insensitiveASCIIComparator
        +
      • +
      + + + +
        +
      • +

        identityASCIIComparator

        +
        public static final ASCII identityASCIIComparator
        +
      • +
      + + + +
        +
      • +

        insensitive

        +
        public boolean insensitive
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ASCII

        +
        public ASCII(boolean insensitive)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clone

        +
        public java.lang.Object clone()
        +
        +
        Overrides:
        +
        clone in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        compare

        +
        public int compare(java.lang.String s0,
        +                   java.lang.String s1)
        +
        +
        Specified by:
        +
        compare in interface java.util.Comparator<java.lang.String>
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.String s0,
        +                      java.lang.String s1)
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object obj)
        +
        +
        Specified by:
        +
        equals in interface java.util.Comparator<java.lang.String>
        +
        Overrides:
        +
        equals in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        String

        +
        public static final java.lang.String String(byte[] bytes)
        +
      • +
      + + + +
        +
      • +

        String

        +
        public static final java.lang.String String(byte[] bytes,
        +                                            int offset,
        +                                            int length)
        +
      • +
      + + + +
        +
      • +

        getBytes

        +
        public static final byte[] getBytes(java.lang.String s)
        +
      • +
      + + + +
        +
      • +

        getBytes

        +
        public static final byte[] getBytes(java.lang.String s,
        +                                    int beginIndex,
        +                                    int endIndex)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/Browser.html b/javadoc/org/loklak/tools/Browser.html new file mode 100644 index 0000000..aaffbfd --- /dev/null +++ b/javadoc/org/loklak/tools/Browser.html @@ -0,0 +1,511 @@ + + + + + +Browser + + + + + + + + + + + + +
+
org.loklak.tools
+

Class Browser

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.Browser
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Browser
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        blankTypeString

        +
        public static final java.lang.String blankTypeString
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        systemOS

        +
        public static final int systemOS
        +
      • +
      + + + +
        +
      • +

        isMacArchitecture

        +
        public static final boolean isMacArchitecture
        +
      • +
      + + + +
        +
      • +

        isUnixFS

        +
        public static final boolean isUnixFS
        +
      • +
      + + + +
        +
      • +

        canExecUnix

        +
        public static final boolean canExecUnix
        +
      • +
      + + + +
        +
      • +

        isWindows

        +
        public static final boolean isWindows
        +
      • +
      + + + +
        +
      • +

        isWin32

        +
        public static final boolean isWin32
        +
      • +
      + + + +
        +
      • +

        maxPathLength

        +
        public static int maxPathLength
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Browser

        +
        public Browser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        openBrowser

        +
        public static void openBrowser(java.lang.String url)
        +
      • +
      + + + +
        +
      • +

        openBrowserClassic

        +
        public static void openBrowserClassic(java.lang.String url)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/BufferedRandomAccessFile.IndexedLine.html b/javadoc/org/loklak/tools/BufferedRandomAccessFile.IndexedLine.html new file mode 100644 index 0000000..c767eb9 --- /dev/null +++ b/javadoc/org/loklak/tools/BufferedRandomAccessFile.IndexedLine.html @@ -0,0 +1,305 @@ + + + + + +BufferedRandomAccessFile.IndexedLine + + + + + + + + + + + + +
+
org.loklak.tools
+

Class BufferedRandomAccessFile.IndexedLine

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.BufferedRandomAccessFile.IndexedLine
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    BufferedRandomAccessFile
    +
    +
    +
    +
    public static class BufferedRandomAccessFile.IndexedLine
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      IndexedLine(long pos, + byte[] text) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longgetPos() 
      byte[]getText() 
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IndexedLine

        +
        public IndexedLine(long pos,
        +                   byte[] text)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPos

        +
        public long getPos()
        +
      • +
      + + + +
        +
      • +

        getText

        +
        public byte[] getText()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/BufferedRandomAccessFile.Test.html b/javadoc/org/loklak/tools/BufferedRandomAccessFile.Test.html new file mode 100644 index 0000000..3bc2e9d --- /dev/null +++ b/javadoc/org/loklak/tools/BufferedRandomAccessFile.Test.html @@ -0,0 +1,383 @@ + + + + + +BufferedRandomAccessFile.Test + + + + + + + + + + + + +
+
org.loklak.tools
+

Class BufferedRandomAccessFile.Test

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • TestCase
    • +
    • +
        +
      • org.loklak.tools.BufferedRandomAccessFile.Test
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    BufferedRandomAccessFile
    +
    +
    +
    +
    public static class BufferedRandomAccessFile.Test
    +extends TestCase
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Test

        +
        public Test()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTestFile

        +
        public static java.io.File getTestFile()
        +
      • +
      + + + +
        +
      • +

        getTestLines

        +
        public static java.lang.String[] getTestLines(int count)
        +
      • +
      + + + +
        +
      • +

        writeLines

        +
        public static void writeLines(java.io.File f,
        +                              java.lang.String[] l)
        +                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        setUp

        +
        public void setUp()
        +           throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        tearDown

        +
        public void tearDown()
        +              throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        testSimultanousWriteAndRead

        +
        public void testSimultanousWriteAndRead()
        +                                 throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        testSequentialWriteThenRead

        +
        public void testSequentialWriteThenRead()
        +                                 throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/BufferedRandomAccessFile.html b/javadoc/org/loklak/tools/BufferedRandomAccessFile.html new file mode 100644 index 0000000..91ed75f --- /dev/null +++ b/javadoc/org/loklak/tools/BufferedRandomAccessFile.html @@ -0,0 +1,550 @@ + + + + + +BufferedRandomAccessFile + + + + + + + + + + + + +
+
org.loklak.tools
+

Class BufferedRandomAccessFile

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.io.RandomAccessFile
    • +
    • +
        +
      • org.loklak.tools.BufferedRandomAccessFile
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Closeable, java.io.DataInput, java.io.DataOutput, java.lang.AutoCloseable
    +
    +
    +
    Direct Known Subclasses:
    +
    JsonRandomAccessFile
    +
    +
    +
    +
    public class BufferedRandomAccessFile
    +extends java.io.RandomAccessFile
    +
    This class is inspired by https://code.google.com/p/jmzreader/source/browse/tools/braf/trunk/src/main/java/uk/ac/ebi/pride/tools/braf/BufferedRandomAccessFile.java + which is in turn an optimized version of the RandomAccessFile class as described by Nick Zhang on JavaWorld.com. The article can be found at http://www.javaworld.com/javaworld/javatips/jw-javatip26.html + The getNextLine method was rewritten in such a way that it returns a byte[] rather than a string which was not UTF-8 - friendly in it's original version. + The whole class was not concurrency-safe. Synchronization has been added to ensure consistency of buffer and seek position.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      BufferedRandomAccessFile(java.io.File file, + java.lang.String mode) 
      BufferedRandomAccessFile(java.io.File file, + java.lang.String mode, + int bufsize) 
      BufferedRandomAccessFile(java.lang.String filename, + java.lang.String mode, + int bufsize) +
      Creates a new instance of the BufferedRandomAccessFile.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      longappendLine(byte[] b) +
      add a line at the end of the file
      +
      longgetFilePointer() +
      Returns the current position of the pointer in the file.
      +
      static voidmain(java.lang.String[] args) 
      intread() +
      Reads one byte form the current position
      +
      intread(byte[] b, + int off, + int len) +
      Reads the set number of bytes into the passed buffer.
      +
      voidread(byte[] b, + long pos) 
      BufferedRandomAccessFile.IndexedLinereadIndexedLine() +
      Reading of text lines will produce index information along with the parsed text.
      +
      voidseek(long pos) +
      Overridden seek method always throws exception: this would not work in concurrent environments.
      +
      +
        +
      • + + +

        Methods inherited from class java.io.RandomAccessFile

        +close, getChannel, getFD, length, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BufferedRandomAccessFile

        +
        public BufferedRandomAccessFile(java.lang.String filename,
        +                                java.lang.String mode,
        +                                int bufsize)
        +                         throws java.io.IOException
        +
        Creates a new instance of the BufferedRandomAccessFile.
        +
        +
        Parameters:
        +
        filename - The path of the file to open.
        +
        mode - Specifies the mode to use ("r", "rw", etc.) See the + BufferedLineReader documentation for more information.
        +
        bufsize - The buffer size (in bytes) to use.
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        BufferedRandomAccessFile

        +
        public BufferedRandomAccessFile(java.io.File file,
        +                                java.lang.String mode,
        +                                int bufsize)
        +                         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        BufferedRandomAccessFile

        +
        public BufferedRandomAccessFile(java.io.File file,
        +                                java.lang.String mode)
        +                         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        read

        +
        public final int read()
        +               throws java.io.IOException
        +
        Reads one byte form the current position
        +
        +
        Overrides:
        +
        read in class java.io.RandomAccessFile
        +
        Returns:
        +
        The read byte or -1 in case the end was reached.
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] b,
        +                int off,
        +                int len)
        +         throws java.io.IOException
        +
        Reads the set number of bytes into the passed buffer.
        +
        +
        Overrides:
        +
        read in class java.io.RandomAccessFile
        +
        Parameters:
        +
        b - The buffer to read the bytes into.
        +
        off - Byte offset within the file to start reading from
        +
        len - Number of bytes to read into the buffer.
        +
        Returns:
        +
        Number of bytes read.
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getFilePointer

        +
        public long getFilePointer()
        +                    throws java.io.IOException
        +
        Returns the current position of the pointer in the file.
        +
        +
        Overrides:
        +
        getFilePointer in class java.io.RandomAccessFile
        +
        Returns:
        +
        The byte position of the pointer in the file.
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        seek

        +
        public void seek(long pos)
        +          throws java.io.IOException
        +
        Overridden seek method always throws exception: this would not work in concurrent environments. + All seek operations must be encapsulated here in synchronized methods.
        +
        +
        Overrides:
        +
        seek in class java.io.RandomAccessFile
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public void read(byte[] b,
        +                 long pos)
        +          throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        appendLine

        +
        public long appendLine(byte[] b)
        +                throws java.io.IOException
        +
        add a line at the end of the file
        +
        +
        Parameters:
        +
        b -
        +
        Returns:
        +
        the seek position where the line started
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        readIndexedLine

        +
        public BufferedRandomAccessFile.IndexedLine readIndexedLine()
        +                                                     throws java.io.IOException
        +
        Reading of text lines will produce index information along with the parsed text. + To get the exact number of bytes, we do not depend on a utf-8 - parsing string but + instead the line is read as byte[] to determine the exact length of the line.
        +
        +
        Returns:
        +
        a IndexedLine object with the text and the read index.
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/ByteBuffer.html b/javadoc/org/loklak/tools/ByteBuffer.html new file mode 100644 index 0000000..acf6784 --- /dev/null +++ b/javadoc/org/loklak/tools/ByteBuffer.html @@ -0,0 +1,776 @@ + + + + + +ByteBuffer + + + + + + + + + + + + +
+
org.loklak.tools
+

Class ByteBuffer

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.io.OutputStream
    • +
    • +
        +
      • org.loklak.tools.ByteBuffer
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    +
    +
    +
    +
    public final class ByteBuffer
    +extends java.io.OutputStream
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      ByteBufferappend(byte b) 
      ByteBufferappend(byte[] bb) 
      ByteBufferappend(byte[] bb, + int of, + int le) 
      ByteBufferappend(char b) 
      ByteBufferappend(int i) 
      ByteBufferappend(java.lang.String s) 
      bytebyteAt(int pos) 
      voidclear() 
      static booleancontains(java.util.Collection<byte[]> collection, + byte[] key) 
      voidcopyTo(byte[] otherArray, + int offset) 
      static booleanequals(byte[] buffer, + byte[] pattern) 
      static booleanequals(byte[] b0, + int off0, + byte[] b1, + int off1, + int length) 
      byte[]getBytes() 
      byte[]getBytes(int start, + int len) 
      static intindexOf(byte[] b, + byte[] pattern, + int start) 
      intindexOf(byte[] bs, + int start) 
      booleanisEmpty() 
      intlength() 
      static intremove(java.util.Collection<byte[]> collection, + byte[] key) 
      static java.util.List<byte[]>split(byte[] b, + byte s) 
      booleanstartsWith(byte[] bs, + int start) 
      java.lang.StringtoString() 
      java.lang.StringtoString(int left, + int length) 
      java.lang.StringBuildertoStringBuilder(int left, + int length, + int sblength) 
      ByteBuffertrim(int start) 
      ByteBuffertrim(int start, + int len) 
      voidwrite(byte[] bb) 
      voidwrite(byte[] bb, + int of, + int le) 
      voidwrite(char b) 
      voidwrite(int b) 
      voidwriteTo(java.io.OutputStream dest) 
      +
        +
      • + + +

        Methods inherited from class java.io.OutputStream

        +close, flush
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ByteBuffer

        +
        public ByteBuffer()
        +
      • +
      + + + +
        +
      • +

        ByteBuffer

        +
        public ByteBuffer(int initLength)
        +
      • +
      + + + +
        +
      • +

        ByteBuffer

        +
        public ByteBuffer(byte[] bb)
        +
      • +
      + + + +
        +
      • +

        ByteBuffer

        +
        public ByteBuffer(java.lang.String s)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
      • +
      + + + +
        +
      • +

        length

        +
        public int length()
        +
      • +
      + + + +
        +
      • +

        isEmpty

        +
        public boolean isEmpty()
        +
      • +
      + + + +
        +
      • +

        write

        +
        public void write(int b)
        +
        +
        Specified by:
        +
        write in class java.io.OutputStream
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public void write(char b)
        +
      • +
      + + + +
        +
      • +

        write

        +
        public void write(byte[] bb)
        +
        +
        Overrides:
        +
        write in class java.io.OutputStream
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public void write(byte[] bb,
        +                  int of,
        +                  int le)
        +
        +
        Overrides:
        +
        write in class java.io.OutputStream
        +
        +
      • +
      + + + +
        +
      • +

        append

        +
        public ByteBuffer append(byte b)
        +
      • +
      + + + +
        +
      • +

        append

        +
        public ByteBuffer append(char b)
        +
      • +
      + + + +
        +
      • +

        append

        +
        public ByteBuffer append(int i)
        +
      • +
      + + + +
        +
      • +

        append

        +
        public ByteBuffer append(byte[] bb)
        +
      • +
      + + + +
        +
      • +

        append

        +
        public ByteBuffer append(byte[] bb,
        +                         int of,
        +                         int le)
        +
      • +
      + + + +
        +
      • +

        append

        +
        public ByteBuffer append(java.lang.String s)
        +
      • +
      + + + +
        +
      • +

        byteAt

        +
        public byte byteAt(int pos)
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public int indexOf(byte[] bs,
        +                   int start)
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public static int indexOf(byte[] b,
        +                          byte[] pattern,
        +                          int start)
        +
      • +
      + + + +
        +
      • +

        startsWith

        +
        public boolean startsWith(byte[] bs,
        +                          int start)
        +
      • +
      + + + +
        +
      • +

        getBytes

        +
        public byte[] getBytes()
        +
      • +
      + + + +
        +
      • +

        getBytes

        +
        public byte[] getBytes(int start,
        +                       int len)
        +
      • +
      + + + +
        +
      • +

        copyTo

        +
        public void copyTo(byte[] otherArray,
        +                   int offset)
        +
      • +
      + + + +
        +
      • +

        trim

        +
        public ByteBuffer trim(int start)
        +
      • +
      + + + +
        +
      • +

        trim

        +
        public ByteBuffer trim(int start,
        +                       int len)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString(int left,
        +                                 int length)
        +
      • +
      + + + +
        +
      • +

        toStringBuilder

        +
        public java.lang.StringBuilder toStringBuilder(int left,
        +                                               int length,
        +                                               int sblength)
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public static boolean equals(byte[] buffer,
        +                             byte[] pattern)
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public static boolean equals(byte[] b0,
        +                             int off0,
        +                             byte[] b1,
        +                             int off1,
        +                             int length)
        +
      • +
      + + + +
        +
      • +

        writeTo

        +
        public void writeTo(java.io.OutputStream dest)
        +             throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        contains

        +
        public static boolean contains(java.util.Collection<byte[]> collection,
        +                               byte[] key)
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public static int remove(java.util.Collection<byte[]> collection,
        +                         byte[] key)
        +
      • +
      + + + +
        +
      • +

        split

        +
        public static java.util.List<byte[]> split(byte[] b,
        +                                           byte s)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/CacheMap.html b/javadoc/org/loklak/tools/CacheMap.html new file mode 100644 index 0000000..2615560 --- /dev/null +++ b/javadoc/org/loklak/tools/CacheMap.html @@ -0,0 +1,383 @@ + + + + + +CacheMap + + + + + + + + + + + + +
+
org.loklak.tools
+

Class CacheMap<K,V>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.CacheMap<K,V>
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CacheMap<K,V>
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CacheMap(int maxSize) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CacheMap

        +
        public CacheMap(int maxSize)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
      • +
      + + + + + + + +
        +
      • +

        getStatsJson

        +
        public JSONObject getStatsJson()
        +
      • +
      + + + +
        +
      • +

        full

        +
        public boolean full()
        +
      • +
      + + + + + +
        +
      • +

        put

        +
        public V put(K key,
        +             V value)
        +
      • +
      + + + + + +
        +
      • +

        get

        +
        public V get(K key)
        +
      • +
      + + + + + +
        +
      • +

        remove

        +
        public V remove(K key)
        +
      • +
      + + + + + +
        +
      • +

        exist

        +
        public boolean exist(K key)
        +
      • +
      + + + +
        +
      • +

        getMap

        +
        public java.util.LinkedHashMap<K,V> getMap()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/CacheSet.html b/javadoc/org/loklak/tools/CacheSet.html new file mode 100644 index 0000000..8ce4765 --- /dev/null +++ b/javadoc/org/loklak/tools/CacheSet.html @@ -0,0 +1,353 @@ + + + + + +CacheSet + + + + + + + + + + + + +
+
org.loklak.tools
+

Class CacheSet<K>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.CacheSet<K>
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CacheSet<K>
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CacheSet(int maxSize) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CacheSet

        +
        public CacheSet(int maxSize)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
      • +
      + + + + + + + +
        +
      • +

        getStatsJson

        +
        public JSONObject getStatsJson()
        +
      • +
      + + + +
        +
      • +

        full

        +
        public boolean full()
        +
      • +
      + + + + + +
        +
      • +

        add

        +
        public boolean add(K key)
        +
      • +
      + + + + + +
        +
      • +

        contains

        +
        public boolean contains(K key)
        +
      • +
      + + + + + +
        +
      • +

        remove

        +
        public boolean remove(K key)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/CacheStats.html b/javadoc/org/loklak/tools/CacheStats.html new file mode 100644 index 0000000..066c15d --- /dev/null +++ b/javadoc/org/loklak/tools/CacheStats.html @@ -0,0 +1,360 @@ + + + + + +CacheStats + + + + + + + + + + + + +
+
org.loklak.tools
+

Class CacheStats

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.CacheStats
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CacheStats
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CacheStats() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CacheStats

        +
        public CacheStats()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        clear

        +
        public void clear()
        +
      • +
      + + + +
        +
      • +

        update

        +
        public void update()
        +
      • +
      + + + +
        +
      • +

        hit

        +
        public void hit()
        +
      • +
      + + + +
        +
      • +

        miss

        +
        public void miss()
        +
      • +
      + + + +
        +
      • +

        getUpdate

        +
        public long getUpdate()
        +
      • +
      + + + +
        +
      • +

        getHit

        +
        public long getHit()
        +
      • +
      + + + +
        +
      • +

        getMiss

        +
        public long getMiss()
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/CharacterCoding.html b/javadoc/org/loklak/tools/CharacterCoding.html new file mode 100644 index 0000000..20f42b4 --- /dev/null +++ b/javadoc/org/loklak/tools/CharacterCoding.html @@ -0,0 +1,299 @@ + + + + + +CharacterCoding + + + + + + + + + + + + +
+
org.loklak.tools
+

Class CharacterCoding

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.CharacterCoding
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class CharacterCoding
    +extends java.lang.Object
    +
    Contains methods to convert between Unicode and XML/HTML encoding.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.lang.Stringhtml2unicode(java.lang.String text) +
      Replaces HTML-encoded characters with unicode representation.
      +
      static java.lang.Stringunicode2html(java.lang.String text, + boolean amp) +
      Replaces characters which have special representation in HTML.
      +
      static java.lang.Stringunicode2xml(java.lang.String text, + boolean amp) +
      Replaces characters which have special representation in XML.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        unicode2xml

        +
        public static java.lang.String unicode2xml(java.lang.String text,
        +                                           boolean amp)
        +
        Replaces characters which have special representation in XML.
        +
        +
        Parameters:
        +
        text - text with character to replace
        +
        amp - true if ampersands shall be replaced, else false
        +
        Returns:
        +
        text with replaced characters
        +
        See Also:
        +
        MAPPING4XML
        +
        +
      • +
      + + + +
        +
      • +

        unicode2html

        +
        public static java.lang.String unicode2html(java.lang.String text,
        +                                            boolean amp)
        +
        Replaces characters which have special representation in HTML.
        +
        +
        Parameters:
        +
        text - text with character to replace
        +
        amp - true if ampersands shall be replaced, else false
        +
        Returns:
        +
        text with replaced characters
        +
        See Also:
        +
        MAPPING4HTML
        +
        +
      • +
      + + + +
        +
      • +

        html2unicode

        +
        public static java.lang.String html2unicode(java.lang.String text)
        +
        Replaces HTML-encoded characters with unicode representation.
        +
        +
        Parameters:
        +
        text - text with character to replace
        +
        Returns:
        +
        text with replaced characters
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/Classification.ContentDomain.html b/javadoc/org/loklak/tools/Classification.ContentDomain.html new file mode 100644 index 0000000..756d985 --- /dev/null +++ b/javadoc/org/loklak/tools/Classification.ContentDomain.html @@ -0,0 +1,403 @@ + + + + + +Classification.ContentDomain + + + + + + + + + + + + +
+
org.loklak.tools
+

Enum Classification.ContentDomain

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      ALL 
      APP 
      AUDIO 
      CTRL 
      IMAGE 
      TEXT 
      VIDEO 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static Classification.ContentDomainvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Classification.ContentDomain[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static Classification.ContentDomain[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Classification.ContentDomain c : Classification.ContentDomain.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Classification.ContentDomain valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/Classification.html b/javadoc/org/loklak/tools/Classification.html new file mode 100644 index 0000000..59481d6 --- /dev/null +++ b/javadoc/org/loklak/tools/Classification.html @@ -0,0 +1,488 @@ + + + + + +Classification + + + + + + + + + + + + +
+
org.loklak.tools
+

Class Classification

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.Classification
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Classification
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Classification

        +
        public Classification()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        init

        +
        public static void init(java.io.File mimeFile)
        +
      • +
      + + + +
        +
      • +

        isTextExtension

        +
        public static boolean isTextExtension(java.lang.String textExt)
        +
      • +
      + + + +
        +
      • +

        isMediaExtension

        +
        public static boolean isMediaExtension(java.lang.String mediaExt)
        +
      • +
      + + + +
        +
      • +

        isImageExtension

        +
        public static boolean isImageExtension(java.lang.String imageExt)
        +
      • +
      + + + +
        +
      • +

        isAudioExtension

        +
        public static boolean isAudioExtension(java.lang.String audioExt)
        +
      • +
      + + + +
        +
      • +

        isVideoExtension

        +
        public static boolean isVideoExtension(java.lang.String videoExt)
        +
      • +
      + + + +
        +
      • +

        isApplicationExtension

        +
        public static boolean isApplicationExtension(java.lang.String appsExt)
        +
      • +
      + + + +
        +
      • +

        isControlExtension

        +
        public static boolean isControlExtension(java.lang.String ctrlExt)
        +
      • +
      + + + +
        +
      • +

        isAnyKnownExtension

        +
        public static boolean isAnyKnownExtension(java.lang.String ext)
        +
      • +
      + + + +
        +
      • +

        getContentDomainFromExt

        +
        public static Classification.ContentDomain getContentDomainFromExt(java.lang.String ext)
        +
        Get the content domain of a document according to the file extension. + This can produce wrong results because the extension is a weak hint for the content domain. + If possible, use the mime type, call Classification.getContentDomainFromMime()
        +
        +
        Returns:
        +
        the content domain which classifies the content type
        +
        +
      • +
      + + + +
        +
      • +

        getContentDomainFromMime

        +
        public static Classification.ContentDomain getContentDomainFromMime(java.lang.String mime)
        +
        Get the content domain of a document according to the mime type.
        +
        +
        Returns:
        +
        the content domain which classifies the content type
        +
        +
      • +
      + + + +
        +
      • +

        isPictureMime

        +
        public static boolean isPictureMime(java.lang.String mimeType)
        +
      • +
      + + + +
        +
      • +

        countMimes

        +
        public static int countMimes()
        +
      • +
      + + + +
        +
      • +

        ext2mime

        +
        public static java.lang.String ext2mime(java.lang.String ext)
        +
      • +
      + + + +
        +
      • +

        ext2mime

        +
        public static java.lang.String ext2mime(java.lang.String ext,
        +                                        java.lang.String dfltMime)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/CommonPattern.html b/javadoc/org/loklak/tools/CommonPattern.html new file mode 100644 index 0000000..e60ded6 --- /dev/null +++ b/javadoc/org/loklak/tools/CommonPattern.html @@ -0,0 +1,478 @@ + + + + + +CommonPattern + + + + + + + + + + + + +
+
org.loklak.tools
+

Class CommonPattern

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.CommonPattern
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class CommonPattern
    +extends java.lang.Object
    +
    This class provides Pattern constants to be used + to replace a regex in s.split(regex) method calls. + Because s.split(regex) causes an execution of + Pattern.compile(regex).split(s, 0), it is wise to pre-compile + all regex to a pattern p. + Therefore do the following: transform your code into + Pattern p = Pattern.compile(regex); p.split(s); + The compilation of a specific pattern should be done only once. + Therefore this class provides Pattern objects for the most common regex Strings. + + The same applies to s.replaceall(regex, replacement) which is equal to + Pattern.compile(regex).matcher(s).replaceAll(replacement);
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.regex.PatternAMP 
      static java.util.regex.PatternAMP_HTML 
      static java.util.regex.PatternBACKSLASH 
      static java.util.regex.PatternCOMMA 
      static java.util.regex.PatternDOT 
      static java.util.regex.PatternDOUBLEPOINT 
      static java.util.regex.PatternNEWLINE 
      static java.util.regex.PatternPIPE 
      static java.util.regex.PatternPLUS 
      static java.util.regex.PatternQUESTION 
      static java.util.regex.PatternSEMICOLON 
      static java.util.regex.PatternSLASH 
      static java.util.regex.PatternSPACE 
      static java.util.regex.PatternTAB 
      static java.util.regex.PatternUNDERSCORE 
      static java.util.regex.PatternVERTICALBAR 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CommonPattern() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        SPACE

        +
        public static final java.util.regex.Pattern SPACE
        +
      • +
      + + + +
        +
      • +

        COMMA

        +
        public static final java.util.regex.Pattern COMMA
        +
      • +
      + + + +
        +
      • +

        SEMICOLON

        +
        public static final java.util.regex.Pattern SEMICOLON
        +
      • +
      + + + +
        +
      • +

        DOUBLEPOINT

        +
        public static final java.util.regex.Pattern DOUBLEPOINT
        +
      • +
      + + + +
        +
      • +

        SLASH

        +
        public static final java.util.regex.Pattern SLASH
        +
      • +
      + + + +
        +
      • +

        PIPE

        +
        public static final java.util.regex.Pattern PIPE
        +
      • +
      + + + +
        +
      • +

        BACKSLASH

        +
        public static final java.util.regex.Pattern BACKSLASH
        +
      • +
      + + + +
        +
      • +

        QUESTION

        +
        public static final java.util.regex.Pattern QUESTION
        +
      • +
      + + + +
        +
      • +

        AMP

        +
        public static final java.util.regex.Pattern AMP
        +
      • +
      + + + +
        +
      • +

        AMP_HTML

        +
        public static final java.util.regex.Pattern AMP_HTML
        +
      • +
      + + + +
        +
      • +

        PLUS

        +
        public static final java.util.regex.Pattern PLUS
        +
      • +
      + + + +
        +
      • +

        DOT

        +
        public static final java.util.regex.Pattern DOT
        +
      • +
      + + + +
        +
      • +

        NEWLINE

        +
        public static final java.util.regex.Pattern NEWLINE
        +
      • +
      + + + +
        +
      • +

        VERTICALBAR

        +
        public static final java.util.regex.Pattern VERTICALBAR
        +
      • +
      + + + +
        +
      • +

        UNDERSCORE

        +
        public static final java.util.regex.Pattern UNDERSCORE
        +
      • +
      + + + +
        +
      • +

        TAB

        +
        public static final java.util.regex.Pattern TAB
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CommonPattern

        +
        public CommonPattern()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/Compression.html b/javadoc/org/loklak/tools/Compression.html new file mode 100644 index 0000000..22ba347 --- /dev/null +++ b/javadoc/org/loklak/tools/Compression.html @@ -0,0 +1,326 @@ + + + + + +Compression + + + + + + + + + + + + +
+
org.loklak.tools
+

Class Compression

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.Compression
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Compression
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Compression() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static byte[]gunzip(byte[] b) 
      static voidgunzip(java.io.File source, + java.io.File dest, + boolean deleteSource) 
      static byte[]gzip(byte[] b) 
      static voidgzip(java.io.File source, + java.io.File dest, + boolean deleteSource) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Compression

        +
        public Compression()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        gzip

        +
        public static void gzip(java.io.File source,
        +                        java.io.File dest,
        +                        boolean deleteSource)
        +                 throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        gzip

        +
        public static byte[] gzip(byte[] b)
        +
      • +
      + + + +
        +
      • +

        gunzip

        +
        public static void gunzip(java.io.File source,
        +                          java.io.File dest,
        +                          boolean deleteSource)
        +                   throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        gunzip

        +
        public static byte[] gunzip(byte[] b)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/DateParser.html b/javadoc/org/loklak/tools/DateParser.html new file mode 100644 index 0000000..bab38b5 --- /dev/null +++ b/javadoc/org/loklak/tools/DateParser.html @@ -0,0 +1,628 @@ + + + + + +DateParser + + + + + + + + + + + + +
+
org.loklak.tools
+

Class DateParser

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.DateParser
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class DateParser
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        PATTERN_ISO8601

        +
        public static final java.lang.String PATTERN_ISO8601
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        PATTERN_ISO8601MILLIS

        +
        public static final java.lang.String PATTERN_ISO8601MILLIS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        PATTERN_MONTHDAY

        +
        public static final java.lang.String PATTERN_MONTHDAY
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        PATTERN_MONTHDAYHOURMINUTE

        +
        public static final java.lang.String PATTERN_MONTHDAYHOURMINUTE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        iso8601Format

        +
        public static final java.text.SimpleDateFormat iso8601Format
        +
        Date formatter/non-sloppy parser for W3C datetime (ISO8601) in GMT/UTC
        +
      • +
      + + + +
        +
      • +

        iso8601MillisFormat

        +
        public static final java.text.SimpleDateFormat iso8601MillisFormat
        +
      • +
      + + + +
        +
      • +

        dayDateFormat

        +
        public static final java.text.DateFormat dayDateFormat
        +
      • +
      + + + +
        +
      • +

        minuteDateFormat

        +
        public static final java.text.DateFormat minuteDateFormat
        +
      • +
      + + + +
        +
      • +

        secondDateFormat

        +
        public static final java.text.DateFormat secondDateFormat
        +
      • +
      + + + +
        +
      • +

        UTCCalendar

        +
        public static final java.util.Calendar UTCCalendar
        +
      • +
      + + + +
        +
      • +

        UTCtimeZone

        +
        public static final java.util.TimeZone UTCtimeZone
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DateParser

        +
        public DateParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static java.util.Calendar parse(java.lang.String dateString,
        +                                       int timezoneOffset)
        +                                throws java.text.ParseException
        +
        parse a date string for a given time zone
        +
        +
        Parameters:
        +
        dateString - in format "yyyy-MM-dd", "yyyy-MM-dd HH:mm" or "yyyy-MM-dd_HH:mm"
        +
        timezoneOffset - number of minutes, must be negative for locations east of UTC and positive for locations west of UTC
        +
        Returns:
        +
        a calender object representing the parsed date
        +
        Throws:
        +
        java.text.ParseException - if the format of the date string is not well-formed
        +
        +
      • +
      + + + +
        +
      • +

        toPostDate

        +
        public static java.lang.String toPostDate(java.util.Date d)
        +
      • +
      + + + +
        +
      • +

        getTimezoneOffset

        +
        public static int getTimezoneOffset()
        +
      • +
      + + + +
        +
      • +

        oneHourAgo

        +
        public static java.util.Date oneHourAgo()
        +
      • +
      + + + +
        +
      • +

        oneDayAgo

        +
        public static java.util.Date oneDayAgo()
        +
      • +
      + + + +
        +
      • +

        oneWeekAgo

        +
        public static java.util.Date oneWeekAgo()
        +
      • +
      + + + +
        +
      • +

        oneMonthAgo

        +
        public static java.util.Date oneMonthAgo()
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/Digest.html b/javadoc/org/loklak/tools/Digest.html new file mode 100644 index 0000000..2fcca23 --- /dev/null +++ b/javadoc/org/loklak/tools/Digest.html @@ -0,0 +1,491 @@ + + + + + +Digest + + + + + + + + + + + + +
+
org.loklak.tools
+

Class Digest

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.Digest
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Digest
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.util.Queue<java.security.MessageDigest>digestPool 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Digest() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidcleanup() +
      clean the md5 cache
      +
      static byte[]decodeHex(java.lang.String hex) 
      static java.lang.StringencodeHex(byte[] in) 
      static java.lang.StringencodeHex(long in, + int length) 
      static java.lang.StringencodeMD5Hex(byte[] b) 
      static java.lang.StringencodeMD5Hex(java.io.File file) 
      static java.lang.StringencodeMD5Hex(java.lang.String key) 
      static byte[]encodeMD5Raw(java.io.File file) 
      static byte[]encodeMD5Raw(java.lang.String key) 
      static java.lang.StringencodeOctal(byte[] in) 
      static java.lang.StringfastFingerprintHex(java.io.File file, + boolean includeDate) 
      static byte[]fastFingerprintRaw(java.io.File file, + boolean includeDate) +
      the fast fingerprint computes a md5-like hash from a given file, + which is different from a md5 because it does not read the complete file + but reads only the first and last megabyte of it.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        digestPool

        +
        public static java.util.Queue<java.security.MessageDigest> digestPool
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Digest

        +
        public Digest()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        cleanup

        +
        public static void cleanup()
        +
        clean the md5 cache
        +
      • +
      + + + +
        +
      • +

        encodeHex

        +
        public static java.lang.String encodeHex(long in,
        +                                         int length)
        +
      • +
      + + + +
        +
      • +

        encodeOctal

        +
        public static java.lang.String encodeOctal(byte[] in)
        +
      • +
      + + + +
        +
      • +

        encodeHex

        +
        public static java.lang.String encodeHex(byte[] in)
        +
      • +
      + + + +
        +
      • +

        decodeHex

        +
        public static byte[] decodeHex(java.lang.String hex)
        +
      • +
      + + + +
        +
      • +

        encodeMD5Hex

        +
        public static java.lang.String encodeMD5Hex(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        encodeMD5Hex

        +
        public static java.lang.String encodeMD5Hex(java.io.File file)
        +                                     throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        encodeMD5Hex

        +
        public static java.lang.String encodeMD5Hex(byte[] b)
        +
      • +
      + + + +
        +
      • +

        encodeMD5Raw

        +
        public static byte[] encodeMD5Raw(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        encodeMD5Raw

        +
        public static byte[] encodeMD5Raw(java.io.File file)
        +                           throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        fastFingerprintHex

        +
        public static java.lang.String fastFingerprintHex(java.io.File file,
        +                                                  boolean includeDate)
        +
      • +
      + + + +
        +
      • +

        fastFingerprintRaw

        +
        public static byte[] fastFingerprintRaw(java.io.File file,
        +                                        boolean includeDate)
        +                                 throws java.io.IOException
        +
        the fast fingerprint computes a md5-like hash from a given file, + which is different from a md5 because it does not read the complete file + but reads only the first and last megabyte of it. In case that the + file is less or equal of one megabyte, the fast fingerprint is equal + to the md5. In other cases the fingerprint is computed from a + array = byte[32k + 8] array, which consists of: + array[0 .. 16k - 1] = first MB of file + array[16k .. 32k - 1] = last MB of file + array[32k .. 32k + 7] = length of file as long + if the date flag is set, the array is extended to + array[32k + 8 .. 32k + 15] = lastModified of file as long
        +
        +
        Parameters:
        +
        file -
        +
        Returns:
        +
        fingerprint in md5 raw format
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/IO.html b/javadoc/org/loklak/tools/IO.html new file mode 100644 index 0000000..867103c --- /dev/null +++ b/javadoc/org/loklak/tools/IO.html @@ -0,0 +1,386 @@ + + + + + +IO + + + + + + + + + + + + +
+
org.loklak.tools
+

Class IO

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.IO
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class IO
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      IO() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static java.security.PublicKeydecodePublicKey(java.lang.String encodedKey, + java.lang.String algorithm) +
      Create PublicKey from String representation
      +
      static java.lang.StringgetKeyAsString(java.security.Key key) +
      Get String representation of a key
      +
      static java.lang.StringgetKeyHash(java.security.PublicKey pubkey) +
      Create hash for a key, use default algorithm SHA-256
      +
      static java.lang.StringgetKeyHash(java.security.PublicKey pubkey, + java.lang.String algorithm) +
      Create hash for a key
      +
      static java.lang.StringreadFile(java.nio.file.Path path) 
      static java.lang.StringreadFileCached(java.nio.file.Path path) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IO

        +
        public IO()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        readFile

        +
        public static java.lang.String readFile(java.nio.file.Path path)
        +                                 throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        readFileCached

        +
        public static java.lang.String readFileCached(java.nio.file.Path path)
        +                                       throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getKeyHash

        +
        public static java.lang.String getKeyHash(java.security.PublicKey pubkey,
        +                                          java.lang.String algorithm)
        +
        Create hash for a key
        +
        +
        Parameters:
        +
        pubkey -
        +
        algorithm -
        +
        Returns:
        +
        String hash
        +
        +
      • +
      + + + +
        +
      • +

        getKeyHash

        +
        public static java.lang.String getKeyHash(java.security.PublicKey pubkey)
        +
        Create hash for a key, use default algorithm SHA-256
        +
        +
        Parameters:
        +
        pubkey -
        +
        Returns:
        +
        String hash
        +
        +
      • +
      + + + +
        +
      • +

        getKeyAsString

        +
        public static java.lang.String getKeyAsString(java.security.Key key)
        +
        Get String representation of a key
        +
        +
        Parameters:
        +
        key -
        +
        Returns:
        +
        String representation of a key
        +
        +
      • +
      + + + +
        +
      • +

        decodePublicKey

        +
        public static java.security.PublicKey decodePublicKey(java.lang.String encodedKey,
        +                                                      java.lang.String algorithm)
        +
        Create PublicKey from String representation
        +
        +
        Parameters:
        +
        encodedKey -
        +
        algorithm -
        +
        Returns:
        +
        PublicKey public_key
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/JsonSignature.html b/javadoc/org/loklak/tools/JsonSignature.html new file mode 100644 index 0000000..b8830af --- /dev/null +++ b/javadoc/org/loklak/tools/JsonSignature.html @@ -0,0 +1,472 @@ + + + + + +JsonSignature + + + + + + + + + + + + +
+
org.loklak.tools
+

Class JsonSignature

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.JsonSignature
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonSignature
    +extends java.lang.Object
    +
    This class offers functions to add and verify signatures of JSONObjects
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringsignatureString 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonSignature() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidaddSignature(JSONObject obj, + java.security.PrivateKey key) +
      Create and add a signature to a JSONObject
      +
      static voidaddSignature(java.util.Map<java.lang.String,byte[]> obj, + java.security.PrivateKey key) 
      static booleanhasSignature(JSONObject obj) 
      static booleanhasSignature(java.util.Map<java.lang.String,byte[]> obj) 
      static voidmain(java.lang.String[] args) 
      static voidremoveSignature(JSONObject obj) +
      Remove the signature
      +
      static voidremoveSignature(java.util.Map<java.lang.String,byte[]> obj) 
      static booleanverify(JSONObject obj, + java.security.PublicKey key) +
      Verfies if the signature of a JSONObject is valid
      +
      static booleanverify(java.util.Map<java.lang.String,byte[]> obj, + java.security.PublicKey key) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        signatureString

        +
        public static java.lang.String signatureString
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonSignature

        +
        public JsonSignature()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addSignature

        +
        public static void addSignature(JSONObject obj,
        +                                java.security.PrivateKey key)
        +                         throws java.security.InvalidKeyException,
        +                                java.security.SignatureException
        +
        Create and add a signature to a JSONObject
        +
        +
        Parameters:
        +
        obj - the JSONObject
        +
        key - the private key to use
        +
        Throws:
        +
        java.security.InvalidKeyException - if the key is not valid (for example not RSA)
        +
        java.security.SignatureException - if something with the JSONObject is bogus
        +
        +
      • +
      + + + +
        +
      • +

        addSignature

        +
        public static void addSignature(java.util.Map<java.lang.String,byte[]> obj,
        +                                java.security.PrivateKey key)
        +                         throws java.security.InvalidKeyException,
        +                                java.security.SignatureException
        +
        +
        Throws:
        +
        java.security.InvalidKeyException
        +
        java.security.SignatureException
        +
        +
      • +
      + + + +
        +
      • +

        removeSignature

        +
        public static void removeSignature(JSONObject obj)
        +
        Remove the signature
        +
        +
        Parameters:
        +
        obj - the JSONObject
        +
        +
      • +
      + + + +
        +
      • +

        removeSignature

        +
        public static void removeSignature(java.util.Map<java.lang.String,byte[]> obj)
        +
      • +
      + + + +
        +
      • +

        verify

        +
        public static boolean verify(JSONObject obj,
        +                             java.security.PublicKey key)
        +                      throws java.security.SignatureException,
        +                             java.security.InvalidKeyException
        +
        Verfies if the signature of a JSONObject is valid
        +
        +
        Parameters:
        +
        obj - the JSONObject
        +
        key - the public key of the signature issuer
        +
        Returns:
        +
        true if the signature is valid
        +
        Throws:
        +
        java.security.SignatureException - if the JSONObject does not have a signature or something with the JSONObject is bogus
        +
        java.security.InvalidKeyException - if the key is not valid (for example not RSA)
        +
        +
      • +
      + + + +
        +
      • +

        verify

        +
        public static boolean verify(java.util.Map<java.lang.String,byte[]> obj,
        +                             java.security.PublicKey key)
        +                      throws java.security.SignatureException,
        +                             java.security.InvalidKeyException
        +
        +
        Throws:
        +
        java.security.SignatureException
        +
        java.security.InvalidKeyException
        +
        +
      • +
      + + + +
        +
      • +

        hasSignature

        +
        public static boolean hasSignature(JSONObject obj)
        +
      • +
      + + + +
        +
      • +

        hasSignature

        +
        public static boolean hasSignature(java.util.Map<java.lang.String,byte[]> obj)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +                 throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/OS.System.html b/javadoc/org/loklak/tools/OS.System.html new file mode 100644 index 0000000..a318a73 --- /dev/null +++ b/javadoc/org/loklak/tools/OS.System.html @@ -0,0 +1,367 @@ + + + + + +OS.System + + + + + + + + + + + + +
+
org.loklak.tools
+

Enum OS.System

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Enum<OS.System>
    • +
    • +
        +
      • org.loklak.tools.OS.System
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<OS.System>
    +
    +
    +
    Enclosing class:
    +
    OS
    +
    +
    +
    +
    public static enum OS.System
    +extends java.lang.Enum<OS.System>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      MacOSX 
      Unix 
      Unknown 
      Windows 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static OS.SystemvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static OS.System[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static OS.System[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (OS.System c : OS.System.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static OS.System valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/OS.html b/javadoc/org/loklak/tools/OS.html new file mode 100644 index 0000000..91f09a9 --- /dev/null +++ b/javadoc/org/loklak/tools/OS.html @@ -0,0 +1,523 @@ + + + + + +OS + + + + + + + + + + + + +
+
org.loklak.tools
+

Class OS

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.OS
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class OS
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class OS.System 
      +
    • +
    + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      OS() 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        systemOS

        +
        public static final OS.System systemOS
        +
      • +
      + + + +
        +
      • +

        isMacArchitecture

        +
        public static final boolean isMacArchitecture
        +
      • +
      + + + +
        +
      • +

        isUnixFS

        +
        public static final boolean isUnixFS
        +
      • +
      + + + +
        +
      • +

        canExecUnix

        +
        public static final boolean canExecUnix
        +
      • +
      + + + +
        +
      • +

        isWindows

        +
        public static final boolean isWindows
        +
      • +
      + + + +
        +
      • +

        isWin32

        +
        public static final boolean isWin32
        +
      • +
      + + + +
        +
      • +

        maxPathLength

        +
        public static int maxPathLength
        +
      • +
      + + + +
        +
      • +

        macFSTypeCache

        +
        public static final java.util.Map<java.lang.String,java.lang.String> macFSTypeCache
        +
      • +
      + + + +
        +
      • +

        macFSCreatorCache

        +
        public static final java.util.Map<java.lang.String,java.lang.String> macFSCreatorCache
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OS

        +
        public OS()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        protectPath

        +
        public static final void protectPath(java.nio.file.Path path)
        +
      • +
      + + + +
        +
      • +

        getPID

        +
        public static int getPID()
        +
        use a hack to get the current process PID
        +
        +
        Returns:
        +
        the PID of the current java process or -1 if the PID cannot be obtained
        +
        +
      • +
      + + + +
        +
      • +

        execAsynchronous

        +
        public static void execAsynchronous(java.io.File scriptFile)
        +                             throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        execSynchronous

        +
        public static java.util.List<java.lang.String> execSynchronous(java.lang.String command)
        +                                                        throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getSystemLoadAverage

        +
        public static double getSystemLoadAverage()
        +
      • +
      + + + +
        +
      • +

        getSystemCpuLoad

        +
        public static double getSystemCpuLoad()
        +
      • +
      + + + +
        +
      • +

        getProcessCpuLoad

        +
        public static double getProcessCpuLoad()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/StringBuilderComparator.html b/javadoc/org/loklak/tools/StringBuilderComparator.html new file mode 100644 index 0000000..b784ca8 --- /dev/null +++ b/javadoc/org/loklak/tools/StringBuilderComparator.html @@ -0,0 +1,458 @@ + + + + + +StringBuilderComparator + + + + + + + + + + + + +
+
org.loklak.tools
+

Class StringBuilderComparator

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.StringBuilderComparator
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.Comparator<java.lang.StringBuilder>
    +
    +
    +
    +
    public class StringBuilderComparator
    +extends java.lang.Object
    +implements java.util.Comparator<java.lang.StringBuilder>
    +
    case-insensitive compare of two StringBuilder objects + this shall replace the corresponding method in class String when StringBuilder objects are not transformed into string
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      StringBuilderComparator(boolean caseInsensitive) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcompare(java.lang.StringBuilder sb0, + java.lang.StringBuilder sb1) 
      booleanendsWith(java.lang.StringBuilder sb0, + java.lang.StringBuilder sb1) 
      booleanequals(java.lang.StringBuilder sb0, + java.lang.StringBuilder sb1) 
      intindexOf(java.lang.StringBuilder sb, + char ch) 
      intindexOf(java.lang.StringBuilder sb, + int off, + char ch) 
      static voidmain(java.lang.String[] args) 
      java.lang.StringBuilder[]split(java.lang.StringBuilder sb, + char c) 
      static java.lang.StringBuilder[]split(java.lang.StringBuilder sb, + java.util.regex.Pattern pattern) 
      booleanstartsWith(java.lang.StringBuilder sb0, + java.lang.StringBuilder sb1) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StringBuilderComparator

        +
        public StringBuilderComparator(boolean caseInsensitive)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        compare

        +
        public int compare(java.lang.StringBuilder sb0,
        +                   java.lang.StringBuilder sb1)
        +
        +
        Specified by:
        +
        compare in interface java.util.Comparator<java.lang.StringBuilder>
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.StringBuilder sb0,
        +                      java.lang.StringBuilder sb1)
        +
      • +
      + + + +
        +
      • +

        startsWith

        +
        public boolean startsWith(java.lang.StringBuilder sb0,
        +                          java.lang.StringBuilder sb1)
        +
      • +
      + + + +
        +
      • +

        endsWith

        +
        public boolean endsWith(java.lang.StringBuilder sb0,
        +                        java.lang.StringBuilder sb1)
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public int indexOf(java.lang.StringBuilder sb,
        +                   char ch)
        +
      • +
      + + + +
        +
      • +

        indexOf

        +
        public int indexOf(java.lang.StringBuilder sb,
        +                   int off,
        +                   char ch)
        +
      • +
      + + + +
        +
      • +

        split

        +
        public java.lang.StringBuilder[] split(java.lang.StringBuilder sb,
        +                                       char c)
        +
      • +
      + + + +
        +
      • +

        split

        +
        public static java.lang.StringBuilder[] split(java.lang.StringBuilder sb,
        +                                              java.util.regex.Pattern pattern)
        +
      • +
      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String[] args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/UTF8.html b/javadoc/org/loklak/tools/UTF8.html new file mode 100644 index 0000000..702c9eb --- /dev/null +++ b/javadoc/org/loklak/tools/UTF8.html @@ -0,0 +1,370 @@ + + + + + +UTF8 + + + + + + + + + + + + +
+
org.loklak.tools
+

Class UTF8

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.UTF8
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class UTF8
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      booleaninsensitive 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      UTF8() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static byte[]getBytes(java.lang.String s) +
      getBytes() as method for String synchronizes during the look-up for the + Charset object for the default charset as given with a default charset name.
      +
      static byte[]getBytes(java.lang.StringBuilder s) 
      static java.lang.StringString(byte[] bytes) +
      using the string method with the default charset given as argument should prevent using the charset cache + in FastCharsetProvider.java:118 which locks all concurrent threads using a UTF8.String() method
      +
      static java.lang.StringString(byte[] bytes, + int offset, + int length) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        insensitive

        +
        public boolean insensitive
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UTF8

        +
        public UTF8()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        String

        +
        public static final java.lang.String String(byte[] bytes)
        +
        using the string method with the default charset given as argument should prevent using the charset cache + in FastCharsetProvider.java:118 which locks all concurrent threads using a UTF8.String() method
        +
        +
        Parameters:
        +
        bytes -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        String

        +
        public static final java.lang.String String(byte[] bytes,
        +                                            int offset,
        +                                            int length)
        +
      • +
      + + + +
        +
      • +

        getBytes

        +
        public static final byte[] getBytes(java.lang.String s)
        +
        getBytes() as method for String synchronizes during the look-up for the + Charset object for the default charset as given with a default charset name. + With our call using a given charset object, the call is much easier to perform + and it omits the synchronization for the charset lookup.
        +
        +
        Parameters:
        +
        s -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        getBytes

        +
        public static final byte[] getBytes(java.lang.StringBuilder s)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/bayes/BayesClassifier.html b/javadoc/org/loklak/tools/bayes/BayesClassifier.html new file mode 100644 index 0000000..afdeaf5 --- /dev/null +++ b/javadoc/org/loklak/tools/bayes/BayesClassifier.html @@ -0,0 +1,325 @@ + + + + + +BayesClassifier + + + + + + + + + + + + +
+
org.loklak.tools.bayes
+

Class BayesClassifier<T,K>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - The feature class.
    +
    K - The category class.
    +
    +
    +
    +
    public class BayesClassifier<T,K>
    +extends Classifier<T,K>
    +
    A concrete implementation of the abstract Classifier class. The Bayes + classifier implements a naive Bayes approach to classifying a given set of + features: classify(feat1,...,featN) = argmax(P(cat)*PROD(P(featI|cat)
    +
    +
    See Also:
    +
    http://en.wikipedia.org/wiki/Naive_Bayes_classifier
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BayesClassifier

        +
        public BayesClassifier()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        classify

        +
        public Classification<T,K> classify(java.util.Collection<T> features)
        +
        Classifies the given set of features.
        +
        +
        Specified by:
        +
        classify in class Classifier<T,K>
        +
        Parameters:
        +
        features - The features to classify.
        +
        Returns:
        +
        The category the set of features is classified as.
        +
        +
      • +
      + + + +
        +
      • +

        classifyDetailed

        +
        public java.util.Collection<Classification<T,K>> classifyDetailed(java.util.Collection<T> features)
        +
        Classifies the given set of features. and return the full details of the + classification.
        +
        +
        Returns:
        +
        The set of categories the set of features is classified as.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/bayes/Classification.html b/javadoc/org/loklak/tools/bayes/Classification.html new file mode 100644 index 0000000..53e6368 --- /dev/null +++ b/javadoc/org/loklak/tools/bayes/Classification.html @@ -0,0 +1,380 @@ + + + + + +Classification + + + + + + + + + + + + +
+
org.loklak.tools.bayes
+

Class Classification<T,K>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.bayes.Classification<T,K>
    • +
    +
  • +
+
+
    +
  • +
    +
    Type Parameters:
    +
    T - The feature class.
    +
    K - The category class.
    +
    +
    +
    +
    public class Classification<T,K>
    +extends java.lang.Object
    +
    A basic wrapper reflecting a classification. It will store both featureset + and resulting classification.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Classification(java.util.Collection<T> featureset, + K category) +
      Constructs a new Classification with the parameters given and a default + probability of 1.
      +
      Classification(java.util.Collection<T> featureset, + K category, + float probability) +
      Constructs a new Classification with the parameters given.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      KgetCategory() +
      Retrieves the category the featureset was classified as.
      +
      java.util.Collection<T>getFeatureset() +
      Retrieves the featureset classified.
      +
      floatgetProbability() +
      Retrieves the classification's probability.
      +
      java.lang.StringtoString()
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        Classification

        +
        public Classification(java.util.Collection<T> featureset,
        +                      K category)
        +
        Constructs a new Classification with the parameters given and a default + probability of 1.
        +
        +
        Parameters:
        +
        featureset - The featureset.
        +
        category - The category.
        +
        +
      • +
      + + + + + +
        +
      • +

        Classification

        +
        public Classification(java.util.Collection<T> featureset,
        +                      K category,
        +                      float probability)
        +
        Constructs a new Classification with the parameters given.
        +
        +
        Parameters:
        +
        featureset - The featureset.
        +
        category - The category.
        +
        probability - The probability.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFeatureset

        +
        public java.util.Collection<T> getFeatureset()
        +
        Retrieves the featureset classified.
        +
        +
        Returns:
        +
        The featureset.
        +
        +
      • +
      + + + +
        +
      • +

        getProbability

        +
        public float getProbability()
        +
        Retrieves the classification's probability.
        +
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        getCategory

        +
        public K getCategory()
        +
        Retrieves the category the featureset was classified as.
        +
        +
        Returns:
        +
        The category.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/bayes/Classifier.html b/javadoc/org/loklak/tools/bayes/Classifier.html new file mode 100644 index 0000000..568169a --- /dev/null +++ b/javadoc/org/loklak/tools/bayes/Classifier.html @@ -0,0 +1,781 @@ + + + + + +Classifier + + + + + + + + + + + + +
+
org.loklak.tools.bayes
+

Class Classifier<T,K>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.bayes.Classifier<T,K>
    • +
    +
  • +
+
+
    +
  • +
    +
    Type Parameters:
    +
    T - A feature class
    +
    K - A category class
    +
    +
    +
    Direct Known Subclasses:
    +
    BayesClassifier
    +
    +
    +
    +
    public abstract class Classifier<T,K>
    +extends java.lang.Object
    +
    Abstract base extended by any concrete classifier. It implements the basic + functionality for storing categories or features and can be used to calculate + basic probabilities both category and feature probabilities. The classify + function has to be implemented by the concrete classifier class.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Classifier() +
      Constructs a new classifier without any trained knowledge.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intcategoryCount(K category) +
      Retrieves the number of occurrences of the given category.
      +
      abstract Classification<T,K>classify(java.util.Collection<T> features) +
      The classify method.
      +
      voiddecrementCategory(K category) +
      Decrements the count of a given category.
      +
      voiddecrementFeature(T feature, + K category) +
      Decrements the count of a given feature in the given category.
      +
      intfeatureCount(T feature, + K category) +
      Retrieves the number of occurrences of the given feature in the given + category.
      +
      floatfeatureProbability(T feature, + K category)
      floatfeatureWeighedAverage(T feature, + K category) +
      Retrieves the weighed average P(feature|category) with + overall weight of 1.0 and an assumed probability of + 0.5.
      +
      floatfeatureWeighedAverage(T feature, + K category, + Classifier<T,K> calculator) +
      Retrieves the weighed average P(feature|category) with + overall weight of 1.0, an assumed probability of + 0.5 and the given object to use for probability calculation.
      +
      floatfeatureWeighedAverage(T feature, + K category, + Classifier<T,K> calculator, + float weight) +
      Retrieves the weighed average P(feature|category) with + the given weight and an assumed probability of 0.5 and the + given object to use for probability calculation.
      +
      floatfeatureWeighedAverage(T feature, + K category, + Classifier<T,K> calculator, + float weight, + float assumedProbability) +
      Retrieves the weighed average P(feature|category) with + the given weight, the given assumed probability and the given object to + use for probability calculation.
      +
      java.util.Set<K>getCategories() +
      Returns a Set of categories the classifier knows about.
      +
      intgetCategoriesTotal() +
      Retrieves the total number of categories the classifier knows about.
      +
      java.util.Set<T>getFeatures() +
      Returns a Set of features the classifier knows about.
      +
      intgetMemoryCapacity() +
      Retrieves the memory's capacity.
      +
      voidincrementCategory(K category) +
      Increments the count of a given category.
      +
      voidincrementFeature(T feature, + K category) +
      Increments the count of a given feature in the given category.
      +
      voidlearn(Classification<T,K> classification) +
      Train the classifier by telling it that the given features resulted in + the given category.
      +
      voidlearn(K category, + java.util.Collection<T> features) +
      Train the classifier by telling it that the given features resulted in + the given category.
      +
      voidreset() +
      Resets the learned feature and category counts.
      +
      voidsetMemoryCapacity(int memoryCapacity) +
      Sets the memory's capacity.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Classifier

        +
        public Classifier()
        +
        Constructs a new classifier without any trained knowledge.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Resets the learned feature and category counts.
        +
      • +
      + + + +
        +
      • +

        getFeatures

        +
        public java.util.Set<T> getFeatures()
        +
        Returns a Set of features the classifier knows about.
        +
        +
        Returns:
        +
        The Set of features the classifier knows about.
        +
        +
      • +
      + + + +
        +
      • +

        getCategories

        +
        public java.util.Set<K> getCategories()
        +
        Returns a Set of categories the classifier knows about.
        +
        +
        Returns:
        +
        The Set of categories the classifier knows about.
        +
        +
      • +
      + + + +
        +
      • +

        getCategoriesTotal

        +
        public int getCategoriesTotal()
        +
        Retrieves the total number of categories the classifier knows about.
        +
        +
        Returns:
        +
        The total category count.
        +
        +
      • +
      + + + +
        +
      • +

        getMemoryCapacity

        +
        public int getMemoryCapacity()
        +
        Retrieves the memory's capacity.
        +
        +
        Returns:
        +
        The memory's capacity.
        +
        +
      • +
      + + + +
        +
      • +

        setMemoryCapacity

        +
        public void setMemoryCapacity(int memoryCapacity)
        +
        Sets the memory's capacity. If the new value is less than the old + value, the memory will be truncated accordingly.
        +
        +
        Parameters:
        +
        memoryCapacity - The new memory capacity.
        +
        +
      • +
      + + + + + +
        +
      • +

        incrementFeature

        +
        public void incrementFeature(T feature,
        +                             K category)
        +
        Increments the count of a given feature in the given category. This is + equal to telling the classifier, that this feature has occurred in this + category.
        +
        +
        Parameters:
        +
        feature - The feature, which count to increase.
        +
        category - The category the feature occurred in.
        +
        +
      • +
      + + + + + +
        +
      • +

        incrementCategory

        +
        public void incrementCategory(K category)
        +
        Increments the count of a given category. This is equal to telling the + classifier, that this category has occurred once more.
        +
        +
        Parameters:
        +
        category - The category, which count to increase.
        +
        +
      • +
      + + + + + +
        +
      • +

        decrementFeature

        +
        public void decrementFeature(T feature,
        +                             K category)
        +
        Decrements the count of a given feature in the given category. This is + equal to telling the classifier that this feature was classified once in + the category.
        +
        +
        Parameters:
        +
        feature - The feature to decrement the count for.
        +
        category - The category.
        +
        +
      • +
      + + + + + +
        +
      • +

        decrementCategory

        +
        public void decrementCategory(K category)
        +
        Decrements the count of a given category. This is equal to telling the + classifier, that this category has occurred once less.
        +
        +
        Parameters:
        +
        category - The category, which count to increase.
        +
        +
      • +
      + + + + + +
        +
      • +

        featureCount

        +
        public int featureCount(T feature,
        +                        K category)
        +
        Retrieves the number of occurrences of the given feature in the given + category.
        +
        +
        Parameters:
        +
        feature - The feature, which count to retrieve.
        +
        category - The category, which the feature occurred in.
        +
        Returns:
        +
        The number of occurrences of the feature in the category.
        +
        +
      • +
      + + + + + +
        +
      • +

        categoryCount

        +
        public int categoryCount(K category)
        +
        Retrieves the number of occurrences of the given category.
        +
        +
        Parameters:
        +
        category - The category, which count should be retrieved.
        +
        Returns:
        +
        The number of occurrences.
        +
        +
      • +
      + + + + + +
        +
      • +

        featureProbability

        +
        public float featureProbability(T feature,
        +                                K category)
        +
      • +
      + + + + + +
        +
      • +

        featureWeighedAverage

        +
        public float featureWeighedAverage(T feature,
        +                                   K category)
        +
        Retrieves the weighed average P(feature|category) with + overall weight of 1.0 and an assumed probability of + 0.5. The probability defaults to the overall feature + probability.
        +
        +
        Parameters:
        +
        feature - The feature, which probability to calculate.
        +
        category - The category.
        +
        Returns:
        +
        The weighed average probability.
        +
        See Also:
        +
        de.daslaboratorium.machinelearning.classifier.Classifier#featureProbability(Object, Object), +de.daslaboratorium.machinelearning.classifier.Classifier#featureWeighedAverage(Object, Object, IFeatureProbability, float, float)
        +
        +
      • +
      + + + + + +
        +
      • +

        featureWeighedAverage

        +
        public float featureWeighedAverage(T feature,
        +                                   K category,
        +                                   Classifier<T,K> calculator)
        +
        Retrieves the weighed average P(feature|category) with + overall weight of 1.0, an assumed probability of + 0.5 and the given object to use for probability calculation.
        +
        +
        Parameters:
        +
        feature - The feature, which probability to calculate.
        +
        category - The category.
        +
        calculator - The calculating object.
        +
        Returns:
        +
        The weighed average probability.
        +
        See Also:
        +
        de.daslaboratorium.machinelearning.classifier.Classifier#featureWeighedAverage(Object, Object, IFeatureProbability, float, float)
        +
        +
      • +
      + + + + + +
        +
      • +

        featureWeighedAverage

        +
        public float featureWeighedAverage(T feature,
        +                                   K category,
        +                                   Classifier<T,K> calculator,
        +                                   float weight)
        +
        Retrieves the weighed average P(feature|category) with + the given weight and an assumed probability of 0.5 and the + given object to use for probability calculation.
        +
        +
        Parameters:
        +
        feature - The feature, which probability to calculate.
        +
        category - The category.
        +
        calculator - The calculating object.
        +
        weight - The feature weight.
        +
        Returns:
        +
        The weighed average probability.
        +
        See Also:
        +
        de.daslaboratorium.machinelearning.classifier.Classifier#featureWeighedAverage(Object, Object, IFeatureProbability, float, float)
        +
        +
      • +
      + + + + + +
        +
      • +

        featureWeighedAverage

        +
        public float featureWeighedAverage(T feature,
        +                                   K category,
        +                                   Classifier<T,K> calculator,
        +                                   float weight,
        +                                   float assumedProbability)
        +
        Retrieves the weighed average P(feature|category) with + the given weight, the given assumed probability and the given object to + use for probability calculation.
        +
        +
        Parameters:
        +
        feature - The feature, which probability to calculate.
        +
        category - The category.
        +
        calculator - The calculating object.
        +
        weight - The feature weight.
        +
        assumedProbability - The assumed probability.
        +
        Returns:
        +
        The weighed average probability.
        +
        +
      • +
      + + + + + +
        +
      • +

        learn

        +
        public void learn(K category,
        +                  java.util.Collection<T> features)
        +
        Train the classifier by telling it that the given features resulted in + the given category.
        +
        +
        Parameters:
        +
        category - The category the features belong to.
        +
        features - The features that resulted in the given category.
        +
        +
      • +
      + + + +
        +
      • +

        learn

        +
        public void learn(Classification<T,K> classification)
        +
        Train the classifier by telling it that the given features resulted in + the given category.
        +
        +
        Parameters:
        +
        classification - The classification to learn.
        +
        +
      • +
      + + + +
        +
      • +

        classify

        +
        public abstract Classification<T,K> classify(java.util.Collection<T> features)
        +
        The classify method. It will retrieve the most likely category for the + features given and depends on the concrete classifier implementation.
        +
        +
        Parameters:
        +
        features - The features to classify.
        +
        Returns:
        +
        The category most likely.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/bayes/package-frame.html b/javadoc/org/loklak/tools/bayes/package-frame.html new file mode 100644 index 0000000..4d637c2 --- /dev/null +++ b/javadoc/org/loklak/tools/bayes/package-frame.html @@ -0,0 +1,22 @@ + + + + + +org.loklak.tools.bayes + + + + + +

org.loklak.tools.bayes

+ + + diff --git a/javadoc/org/loklak/tools/bayes/package-summary.html b/javadoc/org/loklak/tools/bayes/package-summary.html new file mode 100644 index 0000000..1bd976b --- /dev/null +++ b/javadoc/org/loklak/tools/bayes/package-summary.html @@ -0,0 +1,154 @@ + + + + + +org.loklak.tools.bayes + + + + + + + + + + + +
+

Package org.loklak.tools.bayes

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    BayesClassifier<T,K> +
    A concrete implementation of the abstract Classifier class.
    +
    Classification<T,K> +
    A basic wrapper reflecting a classification.
    +
    Classifier<T,K> +
    Abstract base extended by any concrete classifier.
    +
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/tools/bayes/package-tree.html b/javadoc/org/loklak/tools/bayes/package-tree.html new file mode 100644 index 0000000..29c1a17 --- /dev/null +++ b/javadoc/org/loklak/tools/bayes/package-tree.html @@ -0,0 +1,140 @@ + + + + + +org.loklak.tools.bayes Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.tools.bayes

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ + + + + + diff --git a/javadoc/org/loklak/tools/package-frame.html b/javadoc/org/loklak/tools/package-frame.html new file mode 100644 index 0000000..21f861e --- /dev/null +++ b/javadoc/org/loklak/tools/package-frame.html @@ -0,0 +1,44 @@ + + + + + +org.loklak.tools + + + + + +

org.loklak.tools

+ + + diff --git a/javadoc/org/loklak/tools/package-summary.html b/javadoc/org/loklak/tools/package-summary.html new file mode 100644 index 0000000..02b6c8d --- /dev/null +++ b/javadoc/org/loklak/tools/package-summary.html @@ -0,0 +1,254 @@ + + + + + +org.loklak.tools + + + + + + + + + + + +
+

Package org.loklak.tools

+
+
+
    +
  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ASCII +
    this is a replacement of an insensitive collator object, produced by a RuleBasedCollator Class + The RuleBasedCollator is a very inefficient class if it is used only for insensitive ASCII comparisments + This class is a very simple comparator for Strings which can be used to compare also Strings with upper/lowercase + Strings without applying .toUpperCase or .toLowerCase + Strings must contain no other than ASCII code.
    +
    Browser 
    BufferedRandomAccessFile +
    This class is inspired by https://code.google.com/p/jmzreader/source/browse/tools/braf/trunk/src/main/java/uk/ac/ebi/pride/tools/braf/BufferedRandomAccessFile.java + which is in turn an optimized version of the RandomAccessFile class as described by Nick Zhang on JavaWorld.com.
    +
    BufferedRandomAccessFile.IndexedLine 
    BufferedRandomAccessFile.Test 
    ByteBuffer 
    CacheMap<K,V> 
    CacheSet<K> 
    CacheStats 
    CharacterCoding +
    Contains methods to convert between Unicode and XML/HTML encoding.
    +
    Classification 
    CommonPattern +
    This class provides Pattern constants to be used + to replace a regex in s.split(regex) method calls.
    +
    Compression 
    DateParser 
    Digest 
    IO 
    JsonSignature +
    This class offers functions to add and verify signatures of JSONObjects
    +
    OS 
    StringBuilderComparator +
    case-insensitive compare of two StringBuilder objects + this shall replace the corresponding method in class String when StringBuilder objects are not transformed into string
    +
    UTF8 
    +
  • +
  • + + + + + + + + + + + + + + + + +
    Enum Summary 
    EnumDescription
    Classification.ContentDomain 
    OS.System 
    +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/tools/package-tree.html b/javadoc/org/loklak/tools/package-tree.html new file mode 100644 index 0000000..9599db8 --- /dev/null +++ b/javadoc/org/loklak/tools/package-tree.html @@ -0,0 +1,179 @@ + + + + + +org.loklak.tools Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.tools

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+ + + + + + diff --git a/javadoc/org/loklak/tools/storage/JSONObjectWithDefault.html b/javadoc/org/loklak/tools/storage/JSONObjectWithDefault.html new file mode 100644 index 0000000..056eab2 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JSONObjectWithDefault.html @@ -0,0 +1,417 @@ + + + + + +JSONObjectWithDefault + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JSONObjectWithDefault

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+
    +
  • +
    +
    +
    public class JSONObjectWithDefault
    +extends JSONObject
    +
    This class extends JSONObjects with additional get-methods that accept default values. It catches all possible errors and exceptions, + thus always returning a valid output. It's intention is to provide a saver way to acquire values in security/stability sensitive environments
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JSONObjectWithDefault

        +
        public JSONObjectWithDefault()
        +
      • +
      + + + +
        +
      • +

        JSONObjectWithDefault

        +
        public JSONObjectWithDefault(JSONObject src)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBoolean

        +
        public boolean getBoolean(java.lang.String key,
        +                          boolean dftval)
        +
      • +
      + + + +
        +
      • +

        getDouble

        +
        public double getDouble(java.lang.String key,
        +                        double dftval)
        +
      • +
      + + + +
        +
      • +

        getInt

        +
        public int getInt(java.lang.String key,
        +                  int dftval)
        +
      • +
      + + + +
        +
      • +

        getJSONArray

        +
        public JSONArray getJSONArray(java.lang.String key,
        +                              JSONArray dftval)
        +
      • +
      + + + +
        +
      • +

        getJSONObject

        +
        public JSONObject getJSONObject(java.lang.String key,
        +                                JSONObject dftval)
        +
      • +
      + + + + + + + +
        +
      • +

        getLong

        +
        public long getLong(java.lang.String key,
        +                    long dftval)
        +
      • +
      + + + +
        +
      • +

        getString

        +
        public java.lang.String getString(java.lang.String key,
        +                                  java.lang.String dftval)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonDataset.Column.html b/javadoc/org/loklak/tools/storage/JsonDataset.Column.html new file mode 100644 index 0000000..18f2cd1 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonDataset.Column.html @@ -0,0 +1,290 @@ + + + + + +JsonDataset.Column + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonDataset.Column

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonDataset.Column
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    JsonDataset
    +
    +
    +
    +
    public static class JsonDataset.Column
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      booleancaseInsensitive 
      java.lang.Stringkey 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Column(java.lang.String key, + boolean caseInsensitive) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        key

        +
        public java.lang.String key
        +
      • +
      + + + +
        +
      • +

        caseInsensitive

        +
        public boolean caseInsensitive
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Column

        +
        public Column(java.lang.String key,
        +              boolean caseInsensitive)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonDataset.JsonFactoryIndex.html b/javadoc/org/loklak/tools/storage/JsonDataset.JsonFactoryIndex.html new file mode 100644 index 0000000..bc03b6d --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonDataset.JsonFactoryIndex.html @@ -0,0 +1,308 @@ + + + + + +JsonDataset.JsonFactoryIndex + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonDataset.JsonFactoryIndex

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.util.AbstractMap<K,V>
    • +
    • +
        +
      • java.util.concurrent.ConcurrentHashMap<java.lang.Object,JsonFactory>
      • +
      • +
          +
        • org.loklak.tools.storage.JsonDataset.JsonFactoryIndex
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.util.concurrent.ConcurrentMap<java.lang.Object,JsonFactory>, java.util.Map<java.lang.Object,JsonFactory>
    +
    +
    +
    Enclosing class:
    +
    JsonDataset
    +
    +
    +
    +
    public static class JsonDataset.JsonFactoryIndex
    +extends java.util.concurrent.ConcurrentHashMap<java.lang.Object,JsonFactory>
    +implements java.util.Map<java.lang.Object,JsonFactory>
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap

        +java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.util.AbstractMap

        +java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
      • +
      +
        +
      • + + +

        Nested classes/interfaces inherited from interface java.util.Map

        +java.util.Map.Entry<K,V>
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonFactoryIndex() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.util.concurrent.ConcurrentHashMap

        +clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.AbstractMap

        +clone
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Map

        +clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonFactoryIndex

        +
        public JsonFactoryIndex()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonDataset.html b/javadoc/org/loklak/tools/storage/JsonDataset.html new file mode 100644 index 0000000..82542b8 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonDataset.html @@ -0,0 +1,389 @@ + + + + + +JsonDataset + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonDataset

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonDataset
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonDataset
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonDataset(java.io.File dump_dir, + java.lang.String dump_file_prefix, + JsonDataset.Column[] columns, + java.lang.String dateFieldName, + java.lang.String dateFieldFormat, + JsonRepository.Mode mode, + boolean dailyDump, + int count) +
      define a data set: an indexed JsonDump where the index is held in RAM
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidclose() 
      JsonFactoryget(java.lang.String column, + java.lang.String value) 
      java.util.DateparseDate(JSONObject json) 
      JsonFactoryputUnique(JSONObject obj) +
      put an object into the index, but do not overwrite existing pairs
      +
      intsize() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonDataset

        +
        public JsonDataset(java.io.File dump_dir,
        +                   java.lang.String dump_file_prefix,
        +                   JsonDataset.Column[] columns,
        +                   java.lang.String dateFieldName,
        +                   java.lang.String dateFieldFormat,
        +                   JsonRepository.Mode mode,
        +                   boolean dailyDump,
        +                   int count)
        +            throws java.io.IOException
        +
        define a data set: an indexed JsonDump where the index is held in RAM
        +
        +
        Parameters:
        +
        dump_dir - the path where the subdirectories for this data set shall be stored
        +
        dump_file_prefix - a prefix for the file names
        +
        index_keys - the names of the json property keys where their content shall be indexed by this field
        +
        mode - the indexing mode, either completely in RAM with Mode.COMPRESSED or with file handles with Mode.REWRITABLE
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        putUnique

        +
        public JsonFactory putUnique(JSONObject obj)
        +                      throws java.io.IOException
        +
        put an object into the index, but do not overwrite existing pairs
        +
        +
        Parameters:
        +
        key -
        +
        value -
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        get

        +
        public JsonFactory get(java.lang.String column,
        +                       java.lang.String value)
        +
      • +
      + + + +
        +
      • +

        parseDate

        +
        public java.util.Date parseDate(JSONObject json)
        +                         throws java.text.ParseException
        +
        +
        Throws:
        +
        java.text.ParseException
        +
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
      • +
      + + + +
        +
      • +

        size

        +
        public int size()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonFactory.html b/javadoc/org/loklak/tools/storage/JsonFactory.html new file mode 100644 index 0000000..6b31de8 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonFactory.html @@ -0,0 +1,228 @@ + + + + + +JsonFactory + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Interface JsonFactory

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getJSON

        +
        JSONObject getJSON()
        +            throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonFile.html b/javadoc/org/loklak/tools/storage/JsonFile.html new file mode 100644 index 0000000..6b3503b --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonFile.html @@ -0,0 +1,637 @@ + + + + + +JsonFile + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonFile

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    Settings
    +
    +
    +
    +
    public class JsonFile
    +extends JSONObject
    +
    This extends JSONObject to be a file which gets loaded and written to disk + It also offers some key management tools
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonFile

        +
        public JsonFile(java.io.File file)
        +         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFile

        +
        public java.io.File getFile()
        +
      • +
      + + + +
        +
      • +

        commit

        +
        public void commit()
        +            throws JSONException
        +
        Write changes to file. It is not required that the user calls this method, + however, if sub-objects of existing objects are modified, the user must handle + file writings themself.
        +
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        toJSONObject

        +
        public JSONObject toJSONObject()
        +
        Return a copy of the JSON content
        +
        +
        Returns:
        +
        JSONObject json
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      boolean value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/boolean pair in the JSONObject.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - A boolean which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      double value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/double pair in the JSONObject.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - A double which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null or if the number is invalid.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      java.util.Collection<?> value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/value pair in the JSONObject, where the value will be a + JSONArray which is produced from a Collection.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - A Collection value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      int value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/int pair in the JSONObject.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - An int which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      long value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/long pair in the JSONObject.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - A long which is the value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the key is null.
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      java.util.Map<?,?> value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/value pair in the JSONObject, where the value will be a + JSONObject which is produced from a Map.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - A Map value.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException
        +
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JSONObject put(java.lang.String key,
        +                      java.lang.Object value)
        +               throws JSONException
        +
        Description copied from class: JSONObject
        +
        Put a key/value pair in the JSONObject. If the value is null, then the + key will be removed from the JSONObject if it is present.
        +
        +
        Overrides:
        +
        put in class JSONObject
        +
        Parameters:
        +
        key - A key string.
        +
        value - An object which is the value. It should be of one of these + types: Boolean, Double, Integer, JSONArray, JSONObject, Long, + String, or the JSONObject.NULL object.
        +
        Returns:
        +
        this.
        +
        Throws:
        +
        JSONException - If the value is non-finite number or if the key is null.
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        remove

        +
        public java.lang.Object remove(java.lang.String key)
        +
        Description copied from class: JSONObject
        +
        Remove a name and its value, if present.
        +
        +
        Overrides:
        +
        remove in class JSONObject
        +
        Parameters:
        +
        key - The name to be removed.
        +
        Returns:
        +
        The value that was associated with the name, or null if there was + no value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonMinifier.JsonCapsuleFactory.html b/javadoc/org/loklak/tools/storage/JsonMinifier.JsonCapsuleFactory.html new file mode 100644 index 0000000..cd1fe0f --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonMinifier.JsonCapsuleFactory.html @@ -0,0 +1,248 @@ + + + + + +JsonMinifier.JsonCapsuleFactory + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonMinifier.JsonCapsuleFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonMinifier.JsonCapsuleFactory
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    JsonFactory
    +
    +
    +
    Enclosing class:
    +
    JsonMinifier
    +
    +
    +
    +
    public class JsonMinifier.JsonCapsuleFactory
    +extends java.lang.Object
    +implements JsonFactory
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      JSONObjectgetJSON() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonMinifier.html b/javadoc/org/loklak/tools/storage/JsonMinifier.html new file mode 100644 index 0000000..318b64c --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonMinifier.html @@ -0,0 +1,288 @@ + + + + + +JsonMinifier + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonMinifier

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonMinifier
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonMinifier
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.JsonHandle.html b/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.JsonHandle.html new file mode 100644 index 0000000..3e606bb --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.JsonHandle.html @@ -0,0 +1,331 @@ + + + + + +JsonRandomAccessFile.JsonHandle + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonRandomAccessFile.JsonHandle

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonRandomAccessFile.JsonHandle
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    JsonFactory
    +
    +
    +
    Enclosing class:
    +
    JsonRandomAccessFile
    +
    +
    +
    +
    public static class JsonRandomAccessFile.JsonHandle
    +extends java.lang.Object
    +implements JsonFactory
    +
    The JsonHandle class is a bundle of a json with the information about the + seek location in the file and the length of bytes of the original json string
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonHandle(JSONObject json, + long index, + int length) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonHandle

        +
        public JsonHandle(JSONObject json,
        +                  long index,
        +                  int length)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getIndex

        +
        public long getIndex()
        +
      • +
      + + + +
        +
      • +

        getLength

        +
        public int getLength()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.ReaderJsonFactory.html b/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.ReaderJsonFactory.html new file mode 100644 index 0000000..c346937 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.ReaderJsonFactory.html @@ -0,0 +1,343 @@ + + + + + +JsonRandomAccessFile.ReaderJsonFactory + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonRandomAccessFile.ReaderJsonFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonRandomAccessFile.ReaderJsonFactory
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ReaderJsonFactory(long index, + int length) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ReaderJsonFactory

        +
        public ReaderJsonFactory(long index,
        +                         int length)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getJSON

        +
        public JSONObject getJSON()
        +                   throws java.io.IOException
        +
        +
        Specified by:
        +
        getJSON in interface JsonFactory
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getIndex

        +
        public long getIndex()
        +
      • +
      + + + +
        +
      • +

        getLength

        +
        public int getLength()
        +
      • +
      + + + +
        +
      • +

        getFile

        +
        public java.io.File getFile()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.html b/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.html new file mode 100644 index 0000000..72c5281 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonRandomAccessFile.html @@ -0,0 +1,456 @@ + + + + + +JsonRandomAccessFile + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonRandomAccessFile

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Closeable, java.io.DataInput, java.io.DataOutput, java.lang.AutoCloseable, java.lang.Runnable, JsonReader
    +
    +
    +
    +
    public class JsonRandomAccessFile
    +extends BufferedRandomAccessFile
    +implements JsonReader
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonRandomAccessFile

        +
        public JsonRandomAccessFile(java.io.File dumpFile,
        +                            int concurrency)
        +                     throws java.io.IOException
        +
        if a JsonRandomAccessFile object in initiated, it must be wrapped with a Thread object and started.
        +
        +
        Parameters:
        +
        dumpFile -
        +
        concurrency -
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
        +
        Specified by:
        +
        getName in interface JsonReader
        +
        +
      • +
      + + + + + + + +
        +
      • +

        take

        +
        public JsonFactory take()
        +                 throws java.lang.InterruptedException
        +
        +
        Specified by:
        +
        take in interface JsonReader
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      + + + +
        +
      • +

        getJsonFactory

        +
        public JsonFactory getJsonFactory(long index,
        +                                  int length)
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws java.io.IOException
        +
        +
        Specified by:
        +
        close in interface java.io.Closeable
        +
        Specified by:
        +
        close in interface java.lang.AutoCloseable
        +
        Overrides:
        +
        close in class java.io.RandomAccessFile
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonReader.html b/javadoc/org/loklak/tools/storage/JsonReader.html new file mode 100644 index 0000000..b863bd0 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonReader.html @@ -0,0 +1,302 @@ + + + + + +JsonReader + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Interface JsonReader

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    java.lang.Runnable
    +
    +
    +
    All Known Implementing Classes:
    +
    JsonRandomAccessFile, JsonStreamReader
    +
    +
    +
    +
    public interface JsonReader
    +extends java.lang.Runnable
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        POISON_JSON_MAP

        +
        static final JsonFactory POISON_JSON_MAP
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getConcurrency

        +
        int getConcurrency()
        +
      • +
      + + + +
        +
      • +

        take

        +
        JsonFactory take()
        +          throws java.lang.InterruptedException
        +
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        getName

        +
        java.lang.String getName()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonRepository.Mode.html b/javadoc/org/loklak/tools/storage/JsonRepository.Mode.html new file mode 100644 index 0000000..9283ae9 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonRepository.Mode.html @@ -0,0 +1,343 @@ + + + + + +JsonRepository.Mode + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Enum JsonRepository.Mode

+
+
+
    +
  • java.lang.Object
  • +
  • + +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      COMPRESSED 
      REWRITABLE 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static JsonRepository.ModevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static JsonRepository.Mode[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static JsonRepository.Mode[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (JsonRepository.Mode c : JsonRepository.Mode.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static JsonRepository.Mode valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonRepository.html b/javadoc/org/loklak/tools/storage/JsonRepository.html new file mode 100644 index 0000000..cc5fc8b --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonRepository.html @@ -0,0 +1,617 @@ + + + + + +JsonRepository + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonRepository

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonRepository
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonRepository
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        OPERATION_KEY_STRING

        +
        public static final java.lang.String OPERATION_KEY_STRING
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        MOD_DATE_KEY_STRING

        +
        public static final java.lang.String MOD_DATE_KEY_STRING
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        REFERRER_KEY_STRING

        +
        public static final java.lang.String REFERRER_KEY_STRING
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        META_KEYS_STRINGS

        +
        public static final java.lang.String[] META_KEYS_STRINGS
        +
      • +
      + + + + + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonRepository

        +
        public JsonRepository(java.io.File dump_dir,
        +                      java.lang.String dump_file_prefix,
        +                      java.lang.String readme,
        +                      JsonRepository.Mode mode,
        +                      boolean dailyDump,
        +                      int concurrency)
        +               throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getDumpDir

        +
        public java.io.File getDumpDir()
        +
      • +
      + + + + + + + +
        +
      • +

        write

        +
        public JsonFactory write(JSONObject json)
        +                  throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        write

        +
        public JsonFactory write(JSONObject json,
        +                         char opkey)
        +                  throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        buffer

        +
        public void buffer(java.util.Date created_at,
        +                   java.util.Map<java.lang.String,java.lang.Object> map)
        +            throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getBufferShard

        +
        public JSONArray getBufferShard()
        +
      • +
      + + + +
        +
      • +

        getBufferShardCount

        +
        public int getBufferShardCount()
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +
      • +
      + + + +
        +
      • +

        getOwnDumps

        +
        public java.util.SortedSet<java.io.File> getOwnDumps(int count)
        +
      • +
      + + + +
        +
      • +

        getImportDumps

        +
        public java.util.SortedSet<java.io.File> getImportDumps(int count)
        +
      • +
      + + + +
        +
      • +

        getImportedDumps

        +
        public java.util.SortedSet<java.io.File> getImportedDumps(int count)
        +
      • +
      + + + +
        +
      • +

        shiftProcessedDump

        +
        public boolean shiftProcessedDump(java.lang.String dumpName)
        +
        move a file from the import directory to the imported directory.
        +
        +
        Parameters:
        +
        dumpName - only the name, not the full path. The file must be in the import file path
        +
        Returns:
        +
        true if the file was shifted successfully, false if file did not exist or cannot be moved
        +
        +
      • +
      + + + +
        +
      • +

        getDumpReader

        +
        public JsonReader getDumpReader(java.io.File dump)
        +                         throws java.io.IOException
        +
        create a concurrent dump reader for the given file. The reader is either a JsonStreamReader if the + dump file is gzipped or a JsonRandomAccessFile if the file is a plain txt file. Both reader types + must be started as concurrent process which this method does on it's own. The reader process dies + automatically when the file is read completely. When the reader thread dies, it pushed several + JsonReader.POISON_JSON_MAP objects to the reading queue, according to the concurrency defined with the + initializer of this class.
        +
        +
        Parameters:
        +
        dump - file
        +
        Returns:
        +
        a concurrent JsonReader with started Thread wrapper
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonStreamReader.WrapperJsonFactory.html b/javadoc/org/loklak/tools/storage/JsonStreamReader.WrapperJsonFactory.html new file mode 100644 index 0000000..2b74e89 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonStreamReader.WrapperJsonFactory.html @@ -0,0 +1,285 @@ + + + + + +JsonStreamReader.WrapperJsonFactory + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonStreamReader.WrapperJsonFactory

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonStreamReader.WrapperJsonFactory
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    JsonFactory
    +
    +
    +
    Enclosing class:
    +
    JsonStreamReader
    +
    +
    +
    +
    public static class JsonStreamReader.WrapperJsonFactory
    +extends java.lang.Object
    +implements JsonFactory
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      JSONObjectgetJSON() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WrapperJsonFactory

        +
        public WrapperJsonFactory(JSONObject json)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getJSON

        +
        public JSONObject getJSON()
        +                   throws java.io.IOException
        +
        +
        Specified by:
        +
        getJSON in interface JsonFactory
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonStreamReader.html b/javadoc/org/loklak/tools/storage/JsonStreamReader.html new file mode 100644 index 0000000..20d12ee --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonStreamReader.html @@ -0,0 +1,370 @@ + + + + + +JsonStreamReader + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonStreamReader

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonStreamReader
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable, JsonReader
    +
    +
    +
    +
    public class JsonStreamReader
    +extends java.lang.Object
    +implements JsonReader
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      JsonStreamReader(java.io.InputStream inputStream, + java.lang.String name, + int concurrency) 
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonStreamReader

        +
        public JsonStreamReader(java.io.InputStream inputStream,
        +                        java.lang.String name,
        +                        int concurrency)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
        +
        Specified by:
        +
        getName in interface JsonReader
        +
        +
      • +
      + + + + + + + +
        +
      • +

        take

        +
        public JsonFactory take()
        +                 throws java.lang.InterruptedException
        +
        +
        Specified by:
        +
        take in interface JsonReader
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/JsonTray.html b/javadoc/org/loklak/tools/storage/JsonTray.html new file mode 100644 index 0000000..6914755 --- /dev/null +++ b/javadoc/org/loklak/tools/storage/JsonTray.html @@ -0,0 +1,388 @@ + + + + + +JsonTray + + + + + + + + + + + + +
+
org.loklak.tools.storage
+

Class JsonTray

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.loklak.tools.storage.JsonTray
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class JsonTray
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JsonTray

        +
        public JsonTray(java.io.File file,
        +                int cachesize)
        +         throws java.io.IOException
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        has

        +
        public boolean has(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        put

        +
        public JsonTray put(java.lang.String key,
        +                    JSONObject value,
        +                    boolean persistent)
        +
      • +
      + + + +
        +
      • +

        putPersistent

        +
        public JsonTray putPersistent(java.lang.String key,
        +                              JSONObject value)
        +
      • +
      + + + +
        +
      • +

        putVolatile

        +
        public JsonTray putVolatile(java.lang.String key,
        +                            JSONObject value)
        +
      • +
      + + + +
        +
      • +

        remove

        +
        public JsonTray remove(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        commit

        +
        public JsonTray commit()
        +
      • +
      + + + +
        +
      • +

        getJSONObject

        +
        public JSONObject getJSONObject(java.lang.String key)
        +
      • +
      + + + +
        +
      • +

        getPersistent

        +
        public JSONObject getPersistent()
        +
      • +
      + + + +
        +
      • +

        getVolatile

        +
        public JSONObject getVolatile()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/javadoc/org/loklak/tools/storage/package-frame.html b/javadoc/org/loklak/tools/storage/package-frame.html new file mode 100644 index 0000000..a0e809d --- /dev/null +++ b/javadoc/org/loklak/tools/storage/package-frame.html @@ -0,0 +1,40 @@ + + + + + +org.loklak.tools.storage + + + + + +

org.loklak.tools.storage

+ + + diff --git a/javadoc/org/loklak/tools/storage/package-summary.html b/javadoc/org/loklak/tools/storage/package-summary.html new file mode 100644 index 0000000..c0fa7fd --- /dev/null +++ b/javadoc/org/loklak/tools/storage/package-summary.html @@ -0,0 +1,226 @@ + + + + + +org.loklak.tools.storage + + + + + + + + + + + +
+

Package org.loklak.tools.storage

+
+
+ +
+ + + + + + diff --git a/javadoc/org/loklak/tools/storage/package-tree.html b/javadoc/org/loklak/tools/storage/package-tree.html new file mode 100644 index 0000000..b3390ec --- /dev/null +++ b/javadoc/org/loklak/tools/storage/package-tree.html @@ -0,0 +1,189 @@ + + + + + +org.loklak.tools.storage Class Hierarchy + + + + + + + + + + + +
+

Hierarchy For Package org.loklak.tools.storage

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+ + + + + + From 60f702b91fe9513c056169ec1c58e6d58c7ff3bb Mon Sep 17 00:00:00 2001 From: Yatharth Date: Mon, 14 Aug 2017 23:30:12 +0530 Subject: [PATCH 18/18] Linking javadoc with the loklak server --- server/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.html b/server/index.html index 2c6cab9..d8b6b92 100644 --- a/server/index.html +++ b/server/index.html @@ -307,7 +307,7 @@

Where can I find showcases and tutorials?

Where do I find the java documentation?

-

At http://dev.loklak.org/javadoc/index.html or by building them via ‘ant javadoc’.

+

At http://dev.loklak.org/javadoc or by building them via ‘ant javadoc’.

Where can I get the latest news about loklak?

@@ -455,7 +455,7 @@

Navigation

Miscellaneous