|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.index.IndexAccessorConnection.IndexAccessorInner
Field Summary | |
private BufferedOutputStream |
data_out
|
private String |
lastItem
|
private PrintWriter |
pw_out
|
Constructor Summary | |
(package private) |
IndexAccessorConnection.IndexAccessorInner(OutputStream an_output_stream)
|
Method Summary | |
boolean |
abortIndex()
internal * Supported API: false |
void |
beginDocument()
Mark the beginning of an individual document Call this method immediately after calling writeHeader Example: iacc = iaccConn.getIndexAccessor(); iacc.writeHeader( ); iacc.beginIndex( ); Supported API: true |
void |
beginIndex()
Mark the beginning of the indexing stream Call this method immediately after calling writeHeader Example: iacc = iaccConn.getIndexAccessor(); iacc.writeHeader( ); iacc.beginIndex( ); Supported API: true |
void |
endDocument()
Mark the end of an individual document Call this method after you are through calling writeItem and writeLob Supported API: true |
void |
endIndex()
Mark the end of the indexing stream Call this method after you have called the final endDocument Supported API: true |
private BufferedOutputStream |
getFileStream(File lob_file)
|
boolean |
writeField(String field_name,
String value)
Write the value to store in field field_name. |
boolean |
writeFile(String name)
internal for testing * Supported API: false |
void |
writeHeader()
Write out the header information to the indexing stream Call this method immediately after getting the IndexAccessor from the IndexAccessorConnection Example: iacc = iaccConn.getIndexAccessor(); iacc.writeHeader( ); iacc.beginIndex( ); Supported API: true |
boolean |
writeItem(String name,
String value)
Write the text in value out to the indexing stream and map it to the field and/or zone that corresponds to the value of name in your formats.cfg file. |
String |
writeLob(InputStream lob_stream,
String contentFileName,
String appOID,
long fileSize,
boolean isZip)
Write the text of the stream passed to a indexing stream. |
String |
writeLocalLob(InputStream lob_stream,
String contentFileName,
String appOID,
boolean isZip)
|
boolean |
writeMetaData(String data)
Write the value to store in field field_name. |
String |
writeRemoteLob(InputStream lob_stream,
String contentFileName,
String appOID,
long fileSize,
boolean isZip)
|
boolean |
writeTokenFormat(String line)
internal * Supported API: false |
boolean |
writeType(String name)
Write the type of the object out to the indexing stream. |
private void |
writeZipFile(BufferedOutputStream lob_output_stream,
InputStream lob_stream,
byte[] out_array)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private BufferedOutputStream data_out
private String lastItem
private PrintWriter pw_out
Constructor Detail |
IndexAccessorConnection.IndexAccessorInner(OutputStream an_output_stream) throws UnsupportedEncodingException
Method Detail |
public boolean writeType(String name)
IndexAccessor
writeType
in interface IndexAccessor
public boolean writeFile(String name)
IndexAccessor
writeFile
in interface IndexAccessor
public boolean writeField(String field_name, String value)
IndexAccessor
writeField
in interface IndexAccessor
public boolean writeMetaData(String data)
IndexAccessor
writeMetaData
in interface IndexAccessor
public boolean writeItem(String name, String value)
IndexAccessor
writeItem
in interface IndexAccessor
public String writeLob(InputStream lob_stream, String contentFileName, String appOID, long fileSize, boolean isZip)
IndexAccessor
writeLob
in interface IndexAccessor
ContentHolder
,
ApplicationData
,
ContentServiceSvr
public String writeRemoteLob(InputStream lob_stream, String contentFileName, String appOID, long fileSize, boolean isZip)
public String writeLocalLob(InputStream lob_stream, String contentFileName, String appOID, boolean isZip)
private BufferedOutputStream getFileStream(File lob_file) throws IOException
IOException
public void writeHeader() throws IndexingException
IndexAccessor
writeHeader
in interface IndexAccessor
IndexingException
public boolean writeTokenFormat(String line)
IndexAccessor
writeTokenFormat
in interface IndexAccessor
public boolean abortIndex()
IndexAccessor
abortIndex
in interface IndexAccessor
public void beginIndex() throws IndexingException
IndexAccessor
beginIndex
in interface IndexAccessor
IndexingException
public void endIndex() throws IndexingException
IndexAccessor
endIndex
in interface IndexAccessor
IndexingException
public void beginDocument() throws IndexingException
IndexAccessor
beginDocument
in interface IndexAccessor
IndexingException
public void endDocument() throws IndexingException
endDocument
in interface IndexAccessor
IndexingException
private void writeZipFile(BufferedOutputStream lob_output_stream, InputStream lob_stream, byte[] out_array) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |