|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.TagInputStream | +--com.ibm.dse.base.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
|
Fields inherited from class com.ibm.dse.base.TagInputStream |
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 SGML 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 SGML 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.dse.base.TagInputStream |
close,
createComposedTag,
first,
getDateCreationFile,
getExternalizer,
getInputStream,
getKindOfFile,
getSgmlFile,
getSgmlFileTitle,
getTag,
getTagIndexes,
getTags,
getTagString,
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 |
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.StringMethod Detail |
public void copyOutputFileToInputFile() throws java.io.IOException
public void flush()
public java.lang.String getTemporalPathAndFile() throws java.io.IOException
public void removeTags(Vector tags) throws java.io.IOException
Vector
- tagspublic void write(byte[] b)
public void write(byte[] b, int i1, int i2)
public void write(int anInt)
public void writeBoolean(boolean b)
public void writeByte(int i)
public void writeBytes(java.lang.String s)
public void writeChar(int anInt)
public void writeChars(java.lang.String line) throws java.io.IOException
line
- java.lang.Stringpublic void writeDouble(double d)
public void writeFloat(float f)
public void writeInt(int i)
public void writeLine(java.lang.String aLine) throws java.io.IOException
aLine
- java.lang.Stringpublic void writeLines(Vector lines) throws java.io.IOException
lines
- Vectorpublic void writeLong(long l)
public void writeObject(java.lang.Object anObject) throws java.io.IOException
anObject
- java.lang.Objectpublic void writeShort(int i)
public void writeTags(Vector tags) throws java.io.IOException
Vector
- tagspublic void writeUTF(java.lang.String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |