eu.scape_project.services.characterise
Class ByteStreamCharacterisation

java.lang.Object
  extended by eu.scape_project.services.characterise.ByteStreamCharacterisation

public class ByteStreamCharacterisation
extends Object

Simple characterisation service for byte streams. Simply records the length and calculates checksums. Intended as a example for experimenting with REST implementations.

Version:
0.1 Created Dec 5, 2011:2:27:06 PM
Author:
Carl Wilson carlwilson-bl AT SourceForge carlwilson-bl AT github

Constructor Summary
ByteStreamCharacterisation()
           
 
Method Summary
 ByteStreamInfo characterise(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteStreamCharacterisation

public ByteStreamCharacterisation()
Method Detail

characterise

public ByteStreamInfo characterise(InputStream is)
                            throws NoSuchAlgorithmException,
                                   IOException
Parameters:
is - the java.io.InputStream to characterise
Returns:
a ByteStreamInfo object with characterisation data calced from the stream
Throws:
NoSuchAlgorithmException
IOException


Copyright © 2013. All Rights Reserved.