org.apache.jackrabbit.core.xml
Interface TargetImportHandler.AppendableValue

All Superinterfaces:
Importer.TextValue
Enclosing interface:
org.apache.jackrabbit.core.xml.TargetImportHandler

public static interface TargetImportHandler.AppendableValue
extends Importer.TextValue

AppendableValue represents a serialized value that is appendable.

Important: Note that in order to free resources dispose() should be called as soon as an an AppendableValue object is not used anymore.


Method Summary
 void append(char[] chars, int start, int length)
          Append a portion of an array of characters.
 void close()
          Close this value.
 void dispose()
          Dispose this value, i.e.
 
Methods inherited from interface org.apache.jackrabbit.core.xml.Importer.TextValue
length, reader, retrieve
 

Method Detail

append

public void append(char[] chars,
                   int start,
                   int length)
            throws IOException
Append a portion of an array of characters.

Parameters:
chars - the characters to be appended
start - the index of the first character to append
length - the number of characters to append
Throws:
IOException - if an I/O error occurs

close

public void close()
           throws IOException
Close this value. Once a value has been closed, further append() invocations will cause an IOException to be thrown.

Throws:
IOException - if an I/O error occurs

dispose

public void dispose()
             throws IOException
Dispose this value, i.e. free all bound resources. Once a value has been disposed, further method invocations will cause an IOException to be thrown.

Throws:
IOException - if an I/O error occurs


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.