Introduce a simple Content API for usage by Version API's Resourceversion
commite4b6f541dd05325a4b78f2ed607f2e219250782b
authorImran M Yousuf <imyousuf@smartitengineering.com>
Wed, 18 Mar 2009 05:26:11 +0000 (18 11:26 +0600)
committerImran M Yousuf <imyousuf@smartitengineering.com>
Wed, 18 Mar 2009 05:26:11 +0000 (18 11:26 +0600)
tree5ad637db156d32af93e9e18c01d228ed5e4b70f1
parent921e095cbb3614c148370816fb2fb4338bccc408
Introduce a simple Content API for usage by Version API's Resource

The content API mainly enables users to provide input stream as content
provider for better memory and B/W performance, while for performance,
the String based content is also available. It also enables us to use
JGit's stream based write operations.

Input stream provider should close the input stream after Version API
uses it, Version API will NOT close it.

Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/Content.java [new file with mode: 0644]
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/Resource.java
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/factory/VersionAPI.java
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/impl/InputStreamContentImpl.java [new file with mode: 0644]
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/impl/ResourceImpl.java
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/impl/StringContentImpl.java [copied from smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/Resource.java with 50% similarity]
smart-version/smart-version-api/src/main/java/com/smartitengineering/version/api/spi/MutableResource.java
smart-version/smart-version-jgit-impl/src/main/java/com/smartitengineering/version/impl/jgit/JGitImpl.java