Package org.fressian
Interface StreamingWriter
- All Known Implementing Classes:
FressianWriter
public interface StreamingWriter
-
Method Summary
Modifier and TypeMethodDescriptionBegin a variable-length closed list.Begin a variable-length open list.endList()
Mark the end of a variable-lenght list, either closed or open.void
Write a footer for some existing fressianed data (the readable portion of bb.) For advanced use when building a larger fressianed stream from existing content.
-
Method Details
-
beginClosedList
Begin a variable-length closed list. This allows you (the writer) to write very large things, or things of unknown size, without having to place them in a collection first. However, you must remember to call endList when you are done, or the resulting stream will not be readable.- Returns:
- this Writer (fluent)
- Throws:
IOException
-
endList
Mark the end of a variable-lenght list, either closed or open.- Returns:
- this Writer (fluent)
- Throws:
IOException
-
beginOpenList
Begin a variable-length open list. An open list can be terminated either by a call to endList, *or* by an end of stream. Using an open is much more subtle than either a fixed or closed variable list. Avoid it if either other choice can work.- Returns:
- this Writer (fluent)
- Throws:
IOException
-