See also:
https://github.com/fcrepo/fcrepo/blob/master/fcrepo-server/src/main/java/org/fcrepo/server/utilities/DCFields.java#L78
On Fri, Mar 29, 2013 at 4:42 PM, Benjamin Armintor <[email protected]>wrote:
> If I remember right, you can pass an Inputstream in the DCFields
> constructor.
>
>
> On Fri, Mar 29, 2013 at 4:33 PM, Tayal, Nikhil <[email protected]>wrote:
>
>> Thanks Ben.****
>>
>> Is there some utility function that I can use for creating the DCFields
>> object from the content stream(which is an InputStream)? Or do I need to
>> parse the content that I get from the stream and then create the DCFields
>> object?****
>>
>> ** **
>>
>> -Nikhil****
>>
>> ** **
>>
>> ** **
>>
>> *From:* Benjamin Armintor [mailto:[email protected]]
>> *Sent:* Friday, March 29, 2013 3:21 PM
>> *To:* [email protected]
>> *Subject:* Re: [fcrepo-dev] Clean way to access DC metadata from
>> DigitalObject****
>>
>> ** **
>>
>> Nikhil:****
>>
>> If you have access to a DigitalObject, you can get a Datastream
>> instance for the "DC" datastream by calling
>> digitalObject.datastreams("DC"); then you can construct a DCFields object
>> from the content stream of the Datastream.****
>>
>> ** **
>>
>> - Ben****
>>
>> ** **
>>
>> On Fri, Mar 29, 2013 at 3:19 PM, Tayal, Nikhil <[email protected]>
>> wrote:****
>>
>> Hello,****
>>
>> ****
>>
>> I am currently working on developing an implementation of
>> FedoraHintsProvider API which enables us to send hints from fedora to the
>> low level store.****
>>
>> ****
>>
>> In the getHintsForObjectToBeStored, I can get a handle to the
>> DigitalObject instance corresponding to my Fedora Object. What I need to do
>> is to access the Dublin Core datastream metadata for the object and send
>> that as the metadata. I was wondering if there is a clean way to access the
>> Dublin core data given a DigitalObject. I am not convinced with the idea of
>> parsing the Dublin Core datastream XML in order to get that information. I
>> can see that DCFields class in the utilities package that has some
>> information about the Dublin Core and I am wondering if I can somehow get
>> an access to the handle of the instance of this class corresponding to the
>> Dublin Core of my Fedora DigitalObject instance. Please let me know if I am
>> thinking in the right direction.****
>>
>> ****
>>
>> Thanks,****
>>
>> Nikhil Tayal****
>>
>> Student Programmer****
>>
>> UIUC Digital Library Research Lab****
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Own the Future-Intel(R) Level Up Game Demo Contest 2013
>> Rise to greatness in Intel's independent game demo contest. Compete
>> for recognition, cash, and the chance to get your game on Steam.
>> $5K grand prize plus 10 genre and skill prizes. Submit your demo
>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
>> _______________________________________________
>> Fedora-commons-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers***
>> *
>>
>> ** **
>>
>>
>> ------------------------------------------------------------------------------
>> Own the Future-Intel(R) Level Up Game Demo Contest 2013
>> Rise to greatness in Intel's independent game demo contest. Compete
>> for recognition, cash, and the chance to get your game on Steam.
>> $5K grand prize plus 10 genre and skill prizes. Submit your demo
>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
>> _______________________________________________
>> Fedora-commons-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
>>
>>
>
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers