trait DataOutputStreamImplMixin extends DataStreamCommonState with DataOutputStream with DataStreamCommonImplMixin with LocalBufferMixin
- Alphabetic
- By Inheritance
- DataOutputStreamImplMixin
- LocalBufferMixin
- DataStreamCommonImplMixin
- DataOutputStream
- DataStreamCommon
- DataStreamCommonState
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
class
LocalByteBuffer extends LocalBuffer[ByteBuffer]
- Definition Classes
- LocalBufferMixin
-
final
class
LocalCharBuffer extends LocalBuffer[CharBuffer]
Use with OnStack idiom for temporary char buffers
Use with OnStack idiom for temporary char buffers
- Definition Classes
- LocalBufferMixin
Abstract Value Members
-
abstract
def
chunkSizeInBytes: Int
These values are used for output streams that could change from ByteArray's to File based output streams.
These values are used for output streams that could change from ByteArray's to File based output streams.
- Definition Classes
- DataOutputStream
-
abstract
def
cleanUp(): Unit
This function deletes any temnporary files that have been generated
This function deletes any temnporary files that have been generated
- Definition Classes
- DataOutputStream
-
abstract
def
getJavaOutputStream(): OutputStream
- Attributes
- protected
-
abstract
def
id: String
- Definition Classes
- DataOutputStream
-
abstract
def
maxBufferSizeInBytes: Long
- Definition Classes
- DataOutputStream
-
abstract
def
maybeExistingFile: Maybe[Path]
maybeExistingFile is used in the case of blob files, where we already have an existing file containing the data.
maybeExistingFile is used in the case of blob files, where we already have an existing file containing the data. This is the path to said file.
- Definition Classes
- DataOutputStream
-
abstract
def
maybeNextInChain: Maybe[DataOutputStream]
- Definition Classes
- DataOutputStream
-
abstract
def
putLong(signedLong: Long, bitLengthFrom1To64: Int, finfo: FormatInfo): Boolean
If bitLengthFrom1To64 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1To64 least significant bits of the long using the current bit order and byte order, and returns true.
If bitLengthFrom1To64 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1To64 least significant bits of the long using the current bit order and byte order, and returns true.
If not enough bits are available, this writes nothing and returns false.
It is a usage error if bitLengthFrom1To64 is not in the range 1 to 64 inclusive.
- Definition Classes
- DataOutputStream
-
abstract
def
putLong_BE_MSBFirst(signedLong: Long, bitLengthFrom1To64: Int): Boolean
- Attributes
- protected
-
abstract
def
putLong_LE_LSBFirst(signedLong: Long, bitLengthFrom1To64: Int): Boolean
- Attributes
- protected
-
abstract
def
putLong_LE_MSBFirst(signedLong: Long, bitLengthFrom1To64: Int): Boolean
- Attributes
- protected
-
abstract
def
putULong(unsignedLong: ULong, bitLengthFrom1To64: Int, finfo: FormatInfo): Boolean
If bitLengthFrom1To64 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1To64 least significant bits of the long using the current bit order and byte order, and returns true.
If bitLengthFrom1To64 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1To64 least significant bits of the long using the current bit order and byte order, and returns true.
If not enough bits are available, this writes nothing and returns false.
It is a usage error if bitLengthFrom1To64 is not in the range 1 to 64 inclusive.
- Definition Classes
- DataOutputStream
-
abstract
def
setFinished(finfo: FormatInfo): Unit
close-out this output stream.
close-out this output stream. No more writing to this after.
- Definition Classes
- DataOutputStream
-
abstract
def
setJavaOutputStream(newOutputStream: OutputStream): Unit
- Attributes
- protected
-
abstract
def
tempDirPath: File
- Definition Classes
- DataOutputStream
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
align(bitAlignment1b: Int, finfo: FormatInfo): Boolean
advances the bit position to the specified alignment.
advances the bit position to the specified alignment.
Note that the bitAlignment1b argument is 1-based.
Passing 0 as the argument is a usage error.
Passing 1 as the argument performs no alignment, as any bit position is 1-bit aligned.
For any other value, the bit position (1-based) is advanced to the next multiple of that argument value.
False is returned if there are insufficient available bits to achieve the alignment.
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
-
final
def
areDebugging: Boolean
Debugging flag.
Debugging flag. If set then performance may be reduced, but historic and upcoming data may be viewed using the pastData and futureData methods.
This should be set at the beginning of execution. If it is set after data has been accessed then IllegalStateException is thrown.
- Definition Classes
- DataStreamCommonImplMixin → DataStreamCommon
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assignFrom(other: DataOutputStreamImplMixin): Unit
- Attributes
- protected
-
def
assignFrom(other: DataStreamCommonState): Unit
- Definition Classes
- DataStreamCommonState
-
val
bitStartOffset0b: Int
Offset within the first byte to the first bit.
Offset within the first byte to the first bit. This is the number of bits to skip. Value is from 0 to 7.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
cst: DataOutputStreamImplMixin
- Attributes
- protected
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommonImplMixin
- val debugOutputStream: Maybe[ByteArrayOutputStream]
-
val
debugging: Boolean
- Definition Classes
- DataStreamCommonState
-
final
def
dosState: DOSState
- Annotations
- @inline()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fragmentLastByte: Int
- def fragmentLastByteLimit: Int
-
final
def
futureData(nBytesRequested: Int): ByteBuffer
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isAligned(bitAlignment1b: Int): Boolean
For assertion checking really.
For assertion checking really. Optimizations should remove the need for most alignment operations. This can be used in assertions that check that this is working properly.
Note that the bitAlignment1b argument is 1-based.
Passing 0 as the argument is a usage error.
Passing 1 as the argument performs no alignment, as any bit position is 1-bit aligned.
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
- def isEndOnByteBoundary: Boolean
-
final
def
isFinished: Boolean
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
maybeAbsBitLimit0b: MaybeULong
Absolute bit limit zero based
Absolute bit limit zero based
If defined it is the position 1 bit past the last bit location that can be written. So if we at starting at bitPos0b of 0, and we allow only 100 bits, then the bit positions are 0 to 99, and the bit limit is 100.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
def
maybeAbsBitPos0b: MaybeULong
Absolute bit position zero based.
Absolute bit position zero based. Absolute as in relative the the start of the output data stream.
This is a Maybe type because we might not know this value, but still need to do unparsing into a buffer.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
maybeAbsStartingBitPos0b: MaybeULong
the starting bit pos is undefined to start.
the starting bit pos is undefined to start. then it is in many cases set to some value n, because we know in advance how long the prior data is. Then when absorbed into the direct stream, the stream technically starts at 0, but we need to keep track of the former starting bit pos so as to be able to convert relative positions to absolute positions correctly.
-
def
maybeRelBitLimit0b: MaybeULong
Relative bit limit zero based
Relative bit limit zero based
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
val
maybeTrailingSurrogateForUTF8: MaybeChar
- Definition Classes
- DataStreamCommonState
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
pastData(nBytesRequested: Int): ByteBuffer
Access to historic (past data) and upcoming data for purposes of display in a trace or debugger.
Access to historic (past data) and upcoming data for purposes of display in a trace or debugger.
If areDebugging is false, these throw IllegalStateException
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
-
def
priorBitOrder: BitOrder
- Definition Classes
- DataStreamCommonState
-
val
priorBitPos: Long
- Definition Classes
- DataStreamCommonState
-
final
def
putBigInt(bigInt: BigInteger, bitLengthFrom1: Int, signed: Boolean, finfo: FormatInfo): Boolean
If bitLengthFrom1 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1 least significant bits of the bigInt using the current bit order and byte order, and returns true.
If bitLengthFrom1 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1 least significant bits of the bigInt using the current bit order and byte order, and returns true. The signed flag determines whether or not the output should be output as a signed or unsigned type.
If not enough bits are available or the big integer cannot fit into bitLengthFrom1 bits, this writes nothing and returns false.
It is a usage error if signed is false and bigInt is a negative BigInteger.
It is a usage error if bitLengthFrom1 is not greater than or equal to 1.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
putBinaryDouble(v: Double, finfo: FormatInfo): Boolean
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
putBinaryFloat(v: Float, finfo: FormatInfo): Boolean
Float and Double
Float and Double
These are unparsed per the currently set BinaryFloatRep, byteOrder, and bitOrder
Returns false if there are not 32 bits or 64 bits (respectively) available.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
putByteArray(array: Array[Byte], bitLengthFrom1: Long, finfo: FormatInfo, ignoreByteOrder: Boolean = false): Boolean
If bitLengthFrom1 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1 bits of the ba using the current bit order and byte order, and returns true.
If bitLengthFrom1 bits are available to be written before bitLimit0b (if defined) is encountered, then this writes the bitLengthFrom1 bits of the ba using the current bit order and byte order, and returns true. The array is assumed to be have bigEndian byte order and most significant bit first bit order.
If not enough bits are available, this writes nothing and returns false.
ignoreByteOrder is used when we are working with a FileOutputStream. Given that the bytes are already converted to BigEndian when they are written out to a file, we no longer need to convert little endian arrays so byte order can be ignored.
It is a usage error if bitLengthFrom1 is not greater than or equal to 1.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
putBytes(ba: Array[Byte], byteStartOffset0b: Int, lengthInBytes: Int, finfo: FormatInfo): Long
Returns number of bytes transferred.
Returns number of bytes transferred. Stops when the bitLimit is encountered if one is defined.
-
final
def
putCharBuffer(cb: CharBuffer, finfo: FormatInfo): Long
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
- final def putFile(path: Path, lengthInBits: Long, chunkSizeInBytes: Int, finfo: FormatInfo): Long
-
final
def
putLongChecked(signedLong: Long, bitLengthFrom1To64: Int, finfo: FormatInfo): Boolean
- Attributes
- protected
-
final
def
putLongUnchecked(signedLong: Long, bitLengthFrom1To64: Int, finfo: FormatInfo, ignoreByteOrder: Boolean = false): Boolean
Use when calling from a put/write operation that has already checked the length limit.
Use when calling from a put/write operation that has already checked the length limit.
Assumed to be called from inner loops, so should be fast as possible.
- Attributes
- protected
-
final
def
putString(str: String, finfo: FormatInfo): Long
Returns number of characters transferred.
Returns number of characters transferred. Stops when the bitLimit is encountered if one is defined.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
realStream: OutputStream
just a synonym
just a synonym
- Attributes
- protected
-
def
relBitPos0b: ULong
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
relBitPos1b: ULong
- Definition Classes
- DataOutputStream
-
final
def
remainingBits: MaybeULong
Returns number of bits remaining (if a limit is defined).
Returns number of bits remaining (if a limit is defined). Nope if not defined.
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
- def resetAllBitPos(): Unit
-
final
def
resetMaybeRelBitLimit0b(savedBitLimit0b: MaybeULong): Unit
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
def
resetUTF8SurrogatePairCapture(): Unit
- Definition Classes
- DataStreamCommonState
- def setAbsStartingBitPos0b(newStartingBitPos0b: ULong): Unit
-
final
def
setDOSState(newState: DOSState): Unit
- Attributes
- protected
- Annotations
- @inline()
-
final
def
setDebugging(setting: Boolean): Unit
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
- def setFragmentLastByte(newFragmentByte: Int, nBitsInUse: Int): Unit
- def setLengthInBits(newLengthInBits: ULong): Unit
-
def
setMaybeRelBitLimit0b(newMaybeRelBitLimit0b: MaybeULong, reset: Boolean = false): Boolean
sets, but also maintains the absolute bit limit, if that is defined.
sets, but also maintains the absolute bit limit, if that is defined.
Returns false if the set was unsuccessful, meaning one is setting a limit that extends past a pre-existing limit.
- Attributes
- protected
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
setNonZeroLength(): Unit
Must be called by anything that writes to the DOS if the amount written was 1 bit or more.
Must be called by anything that writes to the DOS if the amount written was 1 bit or more.
- Attributes
- protected
-
def
setPriorBitOrder(pbo: BitOrder): Unit
- Definition Classes
- DataStreamCommonState
-
final
def
setRelBitPos0b(newRelBitPos0b: ULong): Unit
Besides setting the relBitPos, it also maintains the value of the absolute bit pos, if it is known.
Besides setting the relBitPos, it also maintains the value of the absolute bit pos, if it is known.
- Attributes
- protected
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream
-
final
def
skip(nBits: Long, finfo: FormatInfo): Boolean
Advances the bit position by nBits.
Advances the bit position by nBits. If nBits aren't available this returns false. Otherwise it returns true.
- Definition Classes
- DataOutputStreamImplMixin → DataStreamCommon
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- final def toAbsolute(relBitPos0b: ULong): ULong
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
unionByteBuffer: ByteBuffer
- Attributes
- protected
-
val
unionLongBuffer: LongBuffer
- Attributes
- protected
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
lazy val
withLocalByteBuffer: LocalStack[LocalByteBuffer]
- Definition Classes
- LocalBufferMixin
-
final
lazy val
withLocalCharBuffer: LocalStack[LocalCharBuffer]
- Definition Classes
- LocalBufferMixin
-
final
def
zeroLengthStatus: ZeroLengthStatus
Determines, as soon as possible, whether the stream has zero length, or non-zero length.
Determines, as soon as possible, whether the stream has zero length, or non-zero length.
Only produces Zero length if the stream is finished, so we know nothing will be added to make it non-zero.
Starts as Unknown status, transitions to either Zero or NonZero.
Works even if the streams have been collapsing together as a result of earlier streams having been setFinished.
- Definition Classes
- DataOutputStreamImplMixin → DataOutputStream