|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.TagInputStream
com.ibm.btt.base.TagOutputStream
public class TagOutputStream
This class is a Stream able to deal with individual tags and groups of tags. It has a Vector with the tags and a table with a pairs-name index to locate them in the Vector more quickly. This stream can write tags as well as read them.
Field Summary | |
---|---|
java.io.FileOutputStream |
outputStream
OutputStream for tag definition |
Fields inherited from class com.ibm.btt.base.TagInputStream |
---|
_isSimpleTag, _tagCharArray, _tagLength, bufferedReader, DEFAULT_TAG_SIZE, DEFAULT_TAG_SIZE_INCREMENT, inputStream, sgmlFile, tagIndexes |
Constructor Summary | |
---|---|
TagOutputStream()
Constructs a TagOutputStream. |
|
TagOutputStream(java.lang.String fileName,
java.lang.String kindOfFile)
This constructor creates a TagOuputStream object to read from or write to the specified file. |
Method Summary | |
---|---|
void |
copyOutputFileToInputFile()
Copies a temporary file to the XML file. |
void |
flush()
This method is required by the ObjectOutput interface. |
java.lang.String |
getTemporalPathAndFile()
Returns a temporal file to write tags that have to be inserted. |
void |
removeTags(Vector tags)
Removes the tags listed in the Vector from the input file. |
void |
write(byte[] b)
This method is required by the ObjectOutput interface. |
void |
write(byte[] b,
int i1,
int i2)
This method is required by the ObjectOutput interface. |
void |
write(int anInt)
This method is required by the ObjectOutput interface. |
void |
writeBoolean(boolean b)
This method is required by the ObjectOutput interface. |
void |
writeByte(int i)
This method is required by the ObjectOutput interface. |
void |
writeBytes(java.lang.String s)
This method is required by the ObjectOutput interface. |
void |
writeChar(int anInt)
This method is required by the ObjectOutput interface. |
void |
writeChars(java.lang.String line)
Writes a set of chars into the file. |
void |
writeDouble(double d)
This method is required by the ObjectOutput interface. |
void |
writeFloat(float f)
This method is required by the ObjectOutput interface. |
void |
writeInt(int i)
This method is required by the ObjectOutput interface. |
void |
writeLine(java.lang.String aLine)
Writes a line into the file. |
void |
writeLines(Vector lines)
Writes the Strings contained within the Vector into the file. |
void |
writeLong(long l)
This method is required by the ObjectOutput interface. |
void |
writeObject(java.lang.Object anObject)
Writes an object in XML format into the file. |
void |
writeShort(int i)
This method is required by the ObjectOutput interface. |
void |
writeTags(Vector tags)
Writes the tags contained within the Vector into the file. |
void |
writeUTF(java.lang.String s)
This method is required by the ObjectOutput interface. |
Methods inherited from class com.ibm.btt.base.TagInputStream |
---|
close, createComposedTag, createComposedTag, first, getDateCreationFile, getExternalizer, getInputStream, getKindOfFile, getSgmlFile, getSgmlFileTitle, getTag, getTagIndexes, getTags, getTagString, getTagString, initialize, initialize, initialize, initialize, initialize, isDecorator, isSimpleTag, last, read, readObject, readTag, removeTagWithId, reset, setDate, setDate, setDate, setExternalizer, setKindOfFile, setSgmlFile, setTagIndexes, setTags, skip, tagWithId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectOutput |
---|
close |
Field Detail |
---|
public java.io.FileOutputStream outputStream
Constructor Detail |
---|
public TagOutputStream()
public TagOutputStream(java.lang.String fileName, java.lang.String kindOfFile) throws java.io.IOException
fileName
- java.lang.StringkindOfFile
- java.lang.String
java.io.IOException
Method Detail |
---|
public void copyOutputFileToInputFile() throws java.io.IOException
java.io.IOException
public void flush()
flush
in interface java.io.ObjectOutput
public java.lang.String getTemporalPathAndFile() throws java.io.IOException
java.io.IOException
public void removeTags(Vector tags) throws java.io.IOException
java.io.IOException
public void write(byte[] b)
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
public void write(byte[] b, int i1, int i2)
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
public void write(int anInt)
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
public void writeBoolean(boolean b)
writeBoolean
in interface java.io.DataOutput
public void writeByte(int i)
writeByte
in interface java.io.DataOutput
public void writeBytes(java.lang.String s)
writeBytes
in interface java.io.DataOutput
public void writeChar(int anInt)
writeChar
in interface java.io.DataOutput
public void writeChars(java.lang.String line) throws java.io.IOException
writeChars
in interface java.io.DataOutput
line
- java.lang.String
java.io.IOException
public void writeDouble(double d)
writeDouble
in interface java.io.DataOutput
public void writeFloat(float f)
writeFloat
in interface java.io.DataOutput
public void writeInt(int i)
writeInt
in interface java.io.DataOutput
public void writeLine(java.lang.String aLine) throws java.io.IOException
aLine
- java.lang.String
java.io.IOException
public void writeLines(Vector lines) throws java.io.IOException
lines
- Vector
java.io.IOException
public void writeLong(long l)
writeLong
in interface java.io.DataOutput
public void writeObject(java.lang.Object anObject) throws java.io.IOException
writeObject
in interface java.io.ObjectOutput
anObject
- java.lang.Object
java.io.IOException
public void writeShort(int i)
writeShort
in interface java.io.DataOutput
public void writeTags(Vector tags) throws java.io.IOException
java.io.IOException
public void writeUTF(java.lang.String s)
writeUTF
in interface java.io.DataOutput
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |