Last change
on this file since 1 was
1,
checked in by lnalod, 15 years ago
|
Initial import of YAO sources
|
File size:
385 bytes
|
Rev | Line | |
---|
[1] | 1 | import java.io.*; |
---|
| 2 | |
---|
| 3 | class MkData { |
---|
| 4 | public static void main(String[] args) throws Exception { |
---|
| 5 | byte data[] = {0, // begin short |
---|
| 6 | 0x01, 0x12, |
---|
| 7 | 0x01, // begin string |
---|
| 8 | (byte)'a', (byte)' ', (byte)'t', (byte)'e', |
---|
| 9 | (byte)'s', (byte)'t', |
---|
| 10 | 0x02 // end string |
---|
| 11 | }; |
---|
| 12 | FileOutputStream f = new FileOutputStream("data"); |
---|
| 13 | f.write(data); |
---|
| 14 | f.close(); |
---|
| 15 | } |
---|
| 16 | } |
---|
| 17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.