Package edu.sc.seis.seisFile.earthworm
Class EarthwormEscapeOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
edu.sc.seis.seisFile.earthworm.EarthwormEscapeOutputStream
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class EarthwormEscapeOutputStream
extends java.io.FilterOutputStream
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EarthwormEscapeOutputStream(java.io.OutputStream out)
-
Method Summary
Modifier and Type Method Description static void
closeIfNotNull(java.io.Closeable out)
void
endTransmit()
void
startTransmit()
void
write(byte[] b)
not efficient, but...void
write(byte[] b, int offset, int len)
not efficient, but...void
write(int b)
void
writeThreeChars(int val)
-
Constructor Details
-
EarthwormEscapeOutputStream
public EarthwormEscapeOutputStream(java.io.OutputStream out)
-
-
Method Details
-
write
public void write(int b) throws java.io.IOException- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOExceptionnot efficient, but...- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int offset, int len) throws java.io.IOExceptionnot efficient, but...- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
startTransmit
public void startTransmit() throws java.io.IOException- Throws:
java.io.IOException
-
endTransmit
public void endTransmit() throws java.io.IOException- Throws:
java.io.IOException
-
writeThreeChars
public void writeThreeChars(int val) throws java.io.IOException- Throws:
java.io.IOException
-
closeIfNotNull
public static void closeIfNotNull(java.io.Closeable out)
-