summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-06-19 03:31:40 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-06-19 03:31:40 +0000
commit7fea1c46a56368181739373787122d5607c1e91b (patch)
tree37bd50eaeffcc2a59c67e2ad47968329e5088da2 /java
parentd9ade18bda9cdb693817433a1c52dcf05be3c6d6 (diff)
downloadtigervnc-7fea1c46a56368181739373787122d5607c1e91b.tar.gz
tigervnc-7fea1c46a56368181739373787122d5607c1e91b.zip
Better documentation for the FbsInputStream constructor.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2592 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r--java/src/com/tightvnc/rfbplayer/FbsInputStream.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/java/src/com/tightvnc/rfbplayer/FbsInputStream.java b/java/src/com/tightvnc/rfbplayer/FbsInputStream.java
index 431ee21e..e12c9f5a 100644
--- a/java/src/com/tightvnc/rfbplayer/FbsInputStream.java
+++ b/java/src/com/tightvnc/rfbplayer/FbsInputStream.java
@@ -44,11 +44,17 @@ class FbsInputStream extends InputStream {
protected Observer obs;
/**
- * Construct FbsInputStream object based on the given InputStream.
+ * Construct FbsInputStream object based on the given InputStream, positioned
+ * at the very beginning of the corresponding FBS file. This constructor
+ * reads and checks FBS file signature which would look like "FBS 001.000\n",
+ * but any decimal number is allowed after the dot.
*
- * @param in InputStream object that will be used as a base
- * @throws java.io.IOException thrown on read error or on incorrect file
- * header signature.
+ * @param in the InputStream object that will be used as a base for this new
+ * FbsInputStream instance. It should be positioned at the very beginning of
+ * the corresponding FBS file, so that first 12 bytes read from the stream
+ * should form FBS file signature.
+ * @throws java.io.IOException thrown on read error or on incorrect FBS file
+ * signature.
*/
FbsInputStream(InputStream in) throws IOException {
this.in = in;