org.sintef.mofscript.runtime
Class BlockOutputStream.FileBlock
java.lang.Object
org.sintef.mofscript.runtime.BlockOutputStream.FileBlock
- Enclosing class:
- BlockOutputStream
public class BlockOutputStream.FileBlock
- extends java.lang.Object
- Author:
- jol
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_nextBlock
protected BlockOutputStream.FileBlock _nextBlock
_id
protected java.lang.String _id
_byteStream
protected java.io.ByteArrayOutputStream _byteStream
_blockStart
protected int _blockStart
_blockEnd
protected int _blockEnd
_mergeDiff
protected int _mergeDiff
_startLine
protected int _startLine
_endLine
protected int _endLine
_lineCount
protected int _lineCount
BlockOutputStream.FileBlock
public BlockOutputStream.FileBlock(java.lang.String id)
- Root block
- Parameters:
id
-
position
public int position()
- Returns:
getMergeDiff
public int getMergeDiff()
getLineCount
public int getLineCount()
setLineCount
public void setLineCount(int count)
putData
protected void putData(byte[] data)
getData
protected byte[] getData()
- Returns:
setBlockStart
protected void setBlockStart(int position)
- Parameters:
position
-
getBlockStart
public int getBlockStart()
- Returns:
write
public void write(int b)
- Parameters:
b
-
write
public void write(byte[] data)
- Parameters:
data
-
writeToFileStream
protected void writeToFileStream(java.io.FileOutputStream fs)
newBlock
public void newBlock(boolean isProtected,
java.lang.String id)
- Parameters:
isProtected
- id
-
getBlockWithId
protected BlockOutputStream.FileBlock getBlockWithId(java.lang.String id)
- Parameters:
id
-
- Returns:
merge
public void merge(BlockOutputStream.FileBlock otherBlock)
- Parameters:
otherBlock
-
get_endLine
public int get_endLine()
set_endLine
public void set_endLine(int line)
get_startLine
public int get_startLine()
set_startLine
public void set_startLine(int line)