final Literal literaInfoBit = (Literal) infoBitNode;
infoDiscoBitURIs.put(infoDiscoResource.getURI(),
new InfoBit() {
public MessageBody getContent() {
return new MessageBody2Read() {
public ReadableByteChannel read()
throws IOException {
// TODO Auto-generated method
// stub
return Channels
.newChannel(new ByteArrayInputStream(
literaInfoBit
.getString()
.getBytes(
"utf-8")));
}
};
}
public String getMimeTypeString() {
return "application/xhtml+xml";
}
});
} else {
final Resource literaInfoBit = (Resource) infoBitNode;
infoDiscoBitURIs.put(infoDiscoResource.getURI(),
new InfoBit() {
public MessageBody getContent() {
return new MessageBody2Read() {
public ReadableByteChannel read()
throws IOException {
// TODO Auto-generated method
// stub