IO-stuff

interesting io-related work

License

License

GroupId

GroupId

org.bongiorno.io
ArtifactId

ArtifactId

io-stuff
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

IO-stuff
interesting io-related work
Project URL

Project URL

https://github.com/chb0github/io-stuff
Source Code Management

Source Code Management

https://github.com/chb0github/io-stuff

Download io-stuff

How to add to project

<!-- https://jarcasting.com/artifacts/org.bongiorno.io/io-stuff/ -->
<dependency>
    <groupId>org.bongiorno.io</groupId>
    <artifactId>io-stuff</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.bongiorno.io/io-stuff/
implementation 'org.bongiorno.io:io-stuff:1.0.2'
// https://jarcasting.com/artifacts/org.bongiorno.io/io-stuff/
implementation ("org.bongiorno.io:io-stuff:1.0.2")
'org.bongiorno.io:io-stuff:jar:1.0.2'
<dependency org="org.bongiorno.io" name="io-stuff" rev="1.0.2">
  <artifact name="io-stuff" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.bongiorno.io', module='io-stuff', version='1.0.2')
)
libraryDependencies += "org.bongiorno.io" % "io-stuff" % "1.0.2"
[org.bongiorno.io/io-stuff "1.0.2"]

Dependencies

test (2)

Group / Artifact Type Version
commons-io : commons-io jar 2.4
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

io-stuff

Not much here at the moment. Usefull

  • ScanningFileFilter Reads a file in and does a binary scan of the file; shifting bytes left until a pattern is matched. Upon matching your scan criteria your consumer is invoked and the stream is passed in so you can read from it in your consumer. It's like a primitive grep. Hmm, maybe I could implement grep

  • ScanningInputStream A decorator on an input stream that will scan your stream looking to match your predicate

  • ScanningPredicate Scans a stream looking for a pattern. Tie this with inputstream, with FileFilter

  • CompositeOutputStream Will replicate all data to the constructed collections of output streams. Does not account for failure. Is not multithreaded (Maybe it should be?)

  • CapturingOutputStream Records data as it is written to the underlying output stream. Useful for monitoring. Kinda like a wiretap pattern

Versions

Version
1.0.2