Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
* An extension of {@code DataInput} for reading from in-memory byte arrays; its methods offer
* identical functionality but do not throw {@link IOException}.
*
* <p>To create an instance, use {@link ByteStreams#newDataInput(byte[])} or another overload of
* that method.
*
* <p><b>Warning:</b> The caller is responsible for not attempting to read past the end of the
* array. If any method encounters the end of the array prematurely, it throws {@link
* IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
* An extension of {@code DataOutput} for writing to in-memory byte arrays; its methods offer
* identical functionality but do not throw {@link IOException}.
*
* <p>To create an instance, use {@link ByteStreams#newDataOutput()} or the other overload of that
* method.
*
* @author Jayaprabhakar Kadarkarai
* @since 1.0
*/
Expand Down
3 changes: 3 additions & 0 deletions guava/src/com/google/common/io/ByteArrayDataInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
* An extension of {@code DataInput} for reading from in-memory byte arrays; its methods offer
* identical functionality but do not throw {@link IOException}.
*
* <p>To create an instance, use {@link ByteStreams#newDataInput(byte[])} or another overload of
* that method.
*
* <p><b>Warning:</b> The caller is responsible for not attempting to read past the end of the
* array. If any method encounters the end of the array prematurely, it throws {@link
* IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation
Expand Down
3 changes: 3 additions & 0 deletions guava/src/com/google/common/io/ByteArrayDataOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
* An extension of {@code DataOutput} for writing to in-memory byte arrays; its methods offer
* identical functionality but do not throw {@link IOException}.
*
* <p>To create an instance, use {@link ByteStreams#newDataOutput()} or the other overload of that
* method.
*
* @author Jayaprabhakar Kadarkarai
* @since 1.0
*/
Expand Down
Loading