Package com.adobe.internal.io.stream
Class NullOutputByteStream
java.lang.Object
com.adobe.internal.io.stream.NullOutputByteStream
- All Implemented Interfaces:
OutputByteStream
Only for internal engineering use. This api can change without notice.
-
Field Summary
Fields inherited from interface com.adobe.internal.io.stream.OutputByteStream
EOF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Only for internal engineering use.Only for internal engineering use.booleaneof()Only for internal engineering use.voidflush()Only for internal engineering use.longOnly for internal engineering use.longlength()Only for internal engineering use.seek(long position) Only for internal engineering use.This will return a new OutputStream that wraps the same bytes as the OutputByteStream.voidwrite(byte[] bytes) Only for internal engineering use.voidwrite(byte[] bytes, int offset, int length) Only for internal engineering use.voidwrite(int b) Only for internal engineering use.
-
Constructor Details
-
NullOutputByteStream
public NullOutputByteStream()Only for internal engineering use. This api can change without notice.
-
-
Method Details
-
write
Only for internal engineering use. This api can change without notice.- Specified by:
writein interfaceOutputByteStream- Throws:
IOException
-
write
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice. Write an array of bytes starting at the current position. The position is incremented by the length of the array that has been written.- Specified by:
writein interfaceOutputByteStream- Parameters:
bytes- The source array.offset- The offset in the byte array to begin writing from.length- The number of bytes to write.- Throws:
IOException
-
length
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice. The number of bytes that can exist in thisOutputByteStream.- Returns:
- Total number of bytes available in this
OutputByteStream. - Throws:
IOException
-
close
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice.- Throws:
IOException
-
flush
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice.- Throws:
IOException
-
write
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice. Write an array of bytes starting at the current position. The position is incremented by the length of the array that has been written.- Specified by:
writein interfaceOutputByteStream- Parameters:
bytes- The source array.- Throws:
IOException
-
seek
Only for internal engineering use. This api can change without notice. Set the current position in the underlying data.- Specified by:
seekin interfaceOutputByteStream- Parameters:
position- Where to set the current position.- Returns:
- This object.
- Throws:
IOException
-
getPosition
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice. Get the current position.- Specified by:
getPositionin interfaceOutputByteStream- Returns:
- The current position.
- Throws:
IOException
-
eof
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice. Is the current position of thisOutputByteStreamat or beyond the end of the underlying data.- Specified by:
eofin interfaceOutputByteStream- Returns:
- True if the current position is beyond the end of the underlying data, false otherwise.
- Throws:
IOException
-
toOutputStream
Description copied from interface:OutputByteStreamThis will return a new OutputStream that wraps the same bytes as the OutputByteStream. Writing to or positioning either one will affect the other. This OutputStream may be safely closed without that causing the OutputByteStream to be closed. This is commonly used for external libraries that need an OutputStream. Do NOT use it to pass data around internally as this will generally be inefficient and cause conversion and memory usage.- Specified by:
toOutputStreamin interfaceOutputByteStream- Returns:
- an OutputStream that wraps the same bytes
- Throws:
IOException
-
closeAndConvert
Description copied from interface:OutputByteStreamOnly for internal engineering use. This api can change without notice.- Specified by:
closeAndConvertin interfaceOutputByteStream- Throws:
IOException
-