Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
650f291a
Commit
650f291a
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
minor: javadoc
SVN: 15792
parent
20a90017
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/io/ConcatFileOutputStreamWriter.java
+6
-0
6 additions, 0 deletions
...systemsx/cisd/common/io/ConcatFileOutputStreamWriter.java
with
6 additions
and
0 deletions
common/source/java/ch/systemsx/cisd/common/io/ConcatFileOutputStreamWriter.java
+
6
−
0
View file @
650f291a
...
@@ -22,6 +22,8 @@ import java.io.IOException;
...
@@ -22,6 +22,8 @@ import java.io.IOException;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
import
ch.systemsx.cisd.common.geometry.Point
;
/**
/**
* A helper class which allows to separate multiple blocks written to one stream in a format:
* A helper class which allows to separate multiple blocks written to one stream in a format:
* (<block-size><block-of-bytes>)* where block-size is the long number. Useful to parse the content
* (<block-size><block-of-bytes>)* where block-size is the long number. Useful to parse the content
...
@@ -29,6 +31,8 @@ import java.io.OutputStream;
...
@@ -29,6 +31,8 @@ import java.io.OutputStream;
*
*
* @author Tomasz Pylak
* @author Tomasz Pylak
*/
*/
// NOTE: This class is used in some APIs and should not depend on classes other than those in java.*
// package
public
class
ConcatFileOutputStreamWriter
public
class
ConcatFileOutputStreamWriter
{
{
private
static
final
int
DEFAULT_BUFFER_SIZE
=
1024
*
8
;
private
static
final
int
DEFAULT_BUFFER_SIZE
=
1024
*
8
;
...
@@ -59,6 +63,8 @@ public class ConcatFileOutputStreamWriter
...
@@ -59,6 +63,8 @@ public class ConcatFileOutputStreamWriter
*/
*/
public
long
writeNextBlock
(
OutputStream
output
)
throws
IOException
public
long
writeNextBlock
(
OutputStream
output
)
throws
IOException
{
{
Point
p
=
new
Point
(
1
,
1
);
System
.
out
.
println
(
p
);
long
blockSize
=
gotoNextBlock
();
long
blockSize
=
gotoNextBlock
();
if
(
blockSize
==
-
1
)
if
(
blockSize
==
-
1
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment