Fixed bug (followup of modification to the export functions)
git-svn-id: https://svn.libreccm.org/ccm/trunk@5638 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
0dd2b80ab4
commit
ffb3f6d9c5
|
|
@ -60,8 +60,11 @@ public class FreeformBinaryAsset extends BinaryAsset {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* implementation of abstract method
|
* implementation of abstract method
|
||||||
|
*
|
||||||
|
* @return
|
||||||
**/
|
**/
|
||||||
|
@Override
|
||||||
public String getBaseDataObjectType() {
|
public String getBaseDataObjectType() {
|
||||||
return BASE_DATA_OBJECT_TYPE;
|
return BASE_DATA_OBJECT_TYPE;
|
||||||
}
|
}
|
||||||
|
|
@ -69,8 +72,12 @@ public class FreeformBinaryAsset extends BinaryAsset {
|
||||||
/**
|
/**
|
||||||
* Basic implementation of abstract method. Use {@link
|
* Basic implementation of abstract method. Use {@link
|
||||||
* readBytes()} to read binary data.
|
* readBytes()} to read binary data.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
**/
|
**/
|
||||||
protected byte[] getContent() {
|
//protected byte[] getContent() {
|
||||||
|
@Override
|
||||||
|
public byte[] getContent() {
|
||||||
return (byte[]) get(CONTENT);
|
return (byte[]) get(CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -78,13 +85,17 @@ public class FreeformBinaryAsset extends BinaryAsset {
|
||||||
* Basic implementation of abstract method. Use {@link
|
* Basic implementation of abstract method. Use {@link
|
||||||
* writeBytes()} to set binary data.
|
* writeBytes()} to set binary data.
|
||||||
**/
|
**/
|
||||||
|
@Override
|
||||||
protected void setContent(byte[] content) {
|
protected void setContent(byte[] content) {
|
||||||
set(CONTENT, content);
|
set(CONTENT, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not implemented; required for the interface
|
* Not implemented; required by the interface
|
||||||
|
*
|
||||||
|
* @param f
|
||||||
**/
|
**/
|
||||||
|
@Override
|
||||||
public void writeToFile(File f) {
|
public void writeToFile(File f) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue