Menu

Tree [063908] master /
 History

HTTPS access


File Date Author Commit
 src 2017-07-30 manojmokashi manojmokashi [063908] reset and size fix
 bse.bat 2012-06-29 Manoj Mokashi Manoj Mokashi [afc966] Build.bat added. File url changed
 build.bat 2014-04-02 Manoj Mokashi Manoj Mokashi [e2d2e6] parseMain, preParse, postParse now called from ...
 cmdfilesample.txt 2012-06-30 Manoj Mokashi Manoj Mokashi [167364] Handle space in commands, command file
 cutpos.sh 2016-08-29 Manoj Mokashi Manoj Mokashi [cbdcd9] EOF check and cut-position example
 cutpos.txt 2016-08-29 Manoj Mokashi Manoj Mokashi [cbdcd9] EOF check and cut-position example
 readme.txt 2016-08-29 Manoj Mokashi Manoj Mokashi [cbdcd9] EOF check and cut-position example
 searchbinary.bat 2012-07-29 Manoj Mokashi Manoj Mokashi [5b650c] Variables defined in VarNames.java,Continue & E...
 searchbinary.sh 2017-07-29 manojmokashi manojmokashi [5e8905] shell script and tests for circular buffer over...
 splitter.bat 2014-04-02 Manoj Mokashi Manoj Mokashi [e2d2e6] parseMain, preParse, postParse now called from ...

Read Me

A stream editor that can be invoked by a java program 
or also the command line. It can handle binary data too. 
Unlike newline based programs like sed, it allows different ways of 
reading the stream through the traverser, buffer and commands interfaces.
A traverser decides how the data is read. 
This data is stored in the Buffer. 
The commands access the data in the Buffer and process it.
All data is handled as characters, by specifying an encoding.
For binary data, the encoding ISO-8859-1 is used by default, 
in which one character corresponds to one byte. 
Data in the Buffer is available as a String to the commands 
for stuff like regex matching etc. 
The output can be redirected to a file, and an output encoding 
can be specified. This can allow encoding conversions.
The commands can also store/retrive arbitrary data for later use 
in a map. 
Evaluation of expressions in commands is done using Apache Jexl, 
and custom functions can also be used by setting up a properties file.
A command line invoker uses a command parser to parse the commands.

The BinaryStreamEditorTest.java and SampleUses.java are examples of use from Java.
The bse.bat, splitter.bat, searchbinary.bat, cutpos.sh are examples of command-line invocation.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.