public class HelloWorldDemo extends java.lang.Object implements HelloWorld
BYTES| Constructor and Description |
|---|
HelloWorldDemo() |
| Modifier and Type | Method and Description |
|---|---|
void |
get(byte[] array,
int offset)
Sets 13 US-ASCII encoded bytes representing
hello, world\n on given array starting at specified offset. |
public void get(byte[] array,
int offset)
HelloWorldhello, world\n on given array starting at specified offset.
A NullPointerException will be thrown if array is
null.
An IllegalArgumentException will be thrown if offset is
negative or offset+13 is greater than
array.length.
get in interface HelloWorldarray - the array to be set.offset - the start offset in the array.Copyright © 2014. All Rights Reserved.