|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
commandline.flatFileToBinaryPackage.MyDataOutPutStream
public class MyDataOutPutStream
| Field Summary |
|---|
| Fields inherited from class java.io.DataOutputStream |
|---|
written |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
MyDataOutPutStream(java.io.OutputStream arg0)
|
|
| Method Summary | |
|---|---|
static int |
getPositiveIntOfNegativeShort(int getal)
Short is defined between -32768 (MIN_VALUE) and +32767 (MAX_VALUE) if we write a number above 327267 it's written as (N%32767) |
void |
write(byte[] b)
writes an array of bytes to the underlying stream |
void |
writeMyFloat(float getal)
|
void |
writeMyInt(int getal)
Writes an integer |
void |
writeMyShort(int getal)
|
| Methods inherited from class java.io.DataOutputStream |
|---|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
|---|
close |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyDataOutPutStream(java.io.OutputStream arg0)
| Method Detail |
|---|
public void writeMyShort(int getal)
throws java.io.IOException
java.io.IOException
public void writeMyFloat(float getal)
throws java.io.IOException
java.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.FilterOutputStreamjava.io.IOException
public void writeMyInt(int getal)
throws java.io.IOException
getal -
java.io.IOExceptionpublic static int getPositiveIntOfNegativeShort(int getal)
getal -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||