Package nom.tam.util
Class BufferedDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
nom.tam.util.ArrayOutputStream
nom.tam.util.FitsOutputStream
nom.tam.util.BufferedDataOutputStream
- All Implemented Interfaces:
Closeable,DataOutput,Flushable,AutoCloseable,ArrayDataOutput,FitsIO,FitsOutput,OutputWriter
Deprecated.
-
Field Summary
Fields inherited from class java.io.BufferedOutputStream
buf, countFields inherited from class java.io.FilterOutputStream
outFields inherited from interface nom.tam.util.FitsIO
BITS_OF_1_BYTE, BITS_OF_2_BYTES, BITS_OF_3_BYTES, BITS_OF_4_BYTES, BITS_OF_5_BYTES, BITS_OF_6_BYTES, BITS_OF_7_BYTES, BYTE_1_OF_LONG_MASK, BYTE_2_OF_LONG_MASK, BYTE_3_OF_LONG_MASK, BYTE_4_OF_LONG_MASK, BYTE_MASK, BYTES_IN_BOOLEAN, BYTES_IN_BYTE, BYTES_IN_CHAR, BYTES_IN_DOUBLE, BYTES_IN_FLOAT, BYTES_IN_INTEGER, BYTES_IN_LONG, BYTES_IN_SHORT, DEFAULT_BUFFER_SIZE, HIGH_INTEGER_MASK, INTEGER_MASK, SHORT_MASK, SHORT_OF_LONG_MASK -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Instantiates a new output stream for FITS data, using a default buffer size.BufferedDataOutputStream(OutputStream o, int bufLength) Deprecated.Instantiates a new output stream for FITS data. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckBuf(int need) Deprecated.No longer used internally, but kept for back compatibility (and it does exactly nothing)Methods inherited from class nom.tam.util.FitsOutputStream
getEncoder, isAtStart, write, write, write, write, write, write, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writePrimitiveArray, writeShort, writeUTFMethods inherited from class nom.tam.util.ArrayOutputStream
setEncoder, writeArrayMethods inherited from class java.io.BufferedOutputStream
flushMethods inherited from class java.io.FilterOutputStream
close, writeMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nom.tam.util.ArrayDataOutput
flush, write, write, write, write, write, write, write, write, write, writeArrayMethods inherited from interface java.io.DataOutput
write
-
Constructor Details
-
BufferedDataOutputStream
Deprecated.Instantiates a new output stream for FITS data.- Parameters:
o- the underlying output streambufLength- the size of the buffer to use in bytes.
-
BufferedDataOutputStream
Deprecated.Instantiates a new output stream for FITS data, using a default buffer size.- Parameters:
o- the underlying output stream
-
-
Method Details
-
checkBuf
Deprecated.No longer used internally, but kept for back compatibility (and it does exactly nothing)- Parameters:
need- the number of consecutive bytes we need in the buffer for the next write.- Throws:
IOException- if there was an IO error flushing the buffer to the output to make avaiable the space required in the buffer.
-
FitsOutputStream, which provides the exact same functionality but with a less misleading name, or else useArrayOutputStreamas a base for an implementation with any (non-FITS) encoding.