Skip to content

Commit 885c3b4

Browse files
committed
typo - use DTA check, change others to just use ByteBuffer
1 parent 42c86b2 commit 885c3b4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/ingest/IngestableDataChecker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public String[] getTestFormatSet() {
149149
*
150150
*
151151
*/
152-
public String testSAVformat(MappedByteBuffer buff) {
152+
public String testSAVformat(ByteBuffer buff) {
153153
String result = null;
154154
buff.rewind();
155155
boolean DEBUG = false;
@@ -311,7 +311,7 @@ public String testDTAformat(ByteBuffer buff) {
311311
* test this byte buffer against SAS Transport(XPT) spec
312312
*
313313
*/
314-
public String testXPTformat(MappedByteBuffer buff) {
314+
public String testXPTformat(ByteBuffer buff) {
315315
String result = null;
316316
buff.rewind();
317317
boolean DEBUG = false;
@@ -359,7 +359,7 @@ public String testXPTformat(MappedByteBuffer buff) {
359359
* test this byte buffer against SPSS Portable (POR) spec
360360
*
361361
*/
362-
public String testPORformat(MappedByteBuffer buff) {
362+
public String testPORformat(ByteBuffer buff) {
363363
String result = null;
364364
buff.rewind();
365365
boolean DEBUG = false;
@@ -525,7 +525,7 @@ public String testPORformat(MappedByteBuffer buff) {
525525
* test this byte buffer against R data file
526526
*
527527
*/
528-
public String testRDAformat(MappedByteBuffer buff) {
528+
public String testRDAformat(ByteBuffer buff) {
529529
String result = null;
530530
buff.rewind();
531531

@@ -745,7 +745,7 @@ private long getBufferSize(FileChannel fileChannel) {
745745
return BUFFER_SIZE;
746746
}
747747

748-
private int getGzipBufferSize(MappedByteBuffer buff) {
748+
private int getGzipBufferSize(ByteBuffer buff) {
749749
int GZIP_BUFFER_SIZE = 120;
750750
/*
751751
note:

src/main/java/edu/harvard/iq/dataverse/util/FileUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ public static String determineRemoteFileType(DataFile df, String fileName) {
454454
// Apply our custom methods to try and recognize data files that can be
455455
// converted to tabular data
456456
logger.fine("Attempting to identify potential tabular data files;");
457-
IngestableDataChecker tabChk = new IngestableDataChecker(new String[] { "SAV" });
457+
IngestableDataChecker tabChk = new IngestableDataChecker(new String[] { "DTA" });
458458

459459
fileType = tabChk.detectTabularDataFormat(bb);
460460
;

0 commit comments

Comments
 (0)