Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an ExtractedRecord object that cannot have extracted records #896

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,417 changes: 24 additions & 1,393 deletions src/main/java/emissary/core/BaseDataObject.java

Large diffs are not rendered by default.

1,402 changes: 1,402 additions & 0 deletions src/main/java/emissary/core/BaseRecord.java

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main/java/emissary/core/DataObjectFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static IBaseDataObject getInstance() {

/**
* Get an instance of the configured DataObject impl with pretty much arbitrary arguments to the constructor
*
*
* @param args the arguments to the BaseDataObject constructor
*/
public static IBaseDataObject getInstance(final Object... args) {
Expand All @@ -74,7 +74,7 @@ public static IBaseDataObject getInstance(final Object... args) {

/**
* Get an instance of the configured DataObject impl with filename, form, and file type set
*
*
* @param payload the payload data
* @param filename the filename
* @param fileTypeAndForm the form and filetype to set on the IBDO
Expand All @@ -86,7 +86,7 @@ public static IBaseDataObject getInstance(final byte[] payload, final String fil

/**
* Get an instance of the configured DataObject impl with filename, form, and file type set
*
*
* @param payload the payload data
* @param filename the filename
* @param form the form to set on the IBDO
Expand Down
27 changes: 27 additions & 0 deletions src/main/java/emissary/core/ExtractedRecord.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package emissary.core;

import javax.annotation.Nullable;

public class ExtractedRecord extends BaseRecord implements IExtractedRecord {

private static final long serialVersionUID = -1298573504297726742L;

public ExtractedRecord() {
super();
}

public ExtractedRecord(byte[] newData, String name) {
super(newData, name);
}

@SuppressWarnings("unused")
public ExtractedRecord(byte[] newData, String name, @Nullable String form) {
super(newData, name, form);
}

@SuppressWarnings("unused")
public ExtractedRecord(byte[] newData, String name, String form, @Nullable String fileType) {
super(newData, name, form, fileType);
}

}
Loading
Loading