PenProfile 2.x

com.livescribe.i18n
Class SoundResource

java.lang.Object
  extended by com.livescribe.i18n.Resource
      extended by com.livescribe.i18n.AudibleResource
          extended by com.livescribe.i18n.SoundResource

public abstract class SoundResource
extends AudibleResource

This class defines an audible resource that contains audio samples, compressed or uncompressed, that can be read from an input stream. This also provides a way to access the resource's MIME type.


Field Summary
 
Fields inherited from class com.livescribe.i18n.Resource
id
 
Constructor Summary
protected SoundResource(String id)
          Creates a new sound resource having the specified ID.
 
Method Summary
abstract  InputStream getInputStream()
          Gets the localized audio stream.
abstract  String getMimeType()
          Returns the MIME type of the audio stream.
 
Methods inherited from class com.livescribe.i18n.Resource
getId, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoundResource

protected SoundResource(String id)
Creates a new sound resource having the specified ID. .

Parameters:
id - the resource ID
Method Detail

getInputStream

public abstract InputStream getInputStream()
Gets the localized audio stream.

Returns:
audio stream.

getMimeType

public abstract String getMimeType()
Returns the MIME type of the audio stream.

Returns:
one of the following constants

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.