Index: java/org/libjpegturbo/turbojpeg/TJException.java |
diff --git a/bmp.h b/java/org/libjpegturbo/turbojpeg/TJException.java |
similarity index 75% |
copy from bmp.h |
copy to java/org/libjpegturbo/turbojpeg/TJException.java |
index c50c260ee615426cf16e06d5a437a00add098940..59c20413583cca0142c5cb6ec8650d8aa87f98cf 100644 |
--- a/bmp.h |
+++ b/java/org/libjpegturbo/turbojpeg/TJException.java |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C)2011 D. R. Commander. All Rights Reserved. |
+ * Copyright (C)2015 Viktor Szathmáry. All Rights Reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are met: |
@@ -26,17 +26,28 @@ |
* POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef __BMP_H__ |
-#define __BMP_H__ |
+package org.libjpegturbo.turbojpeg; |
-#include "./turbojpeg.h" |
+import java.io.IOException; |
-int loadbmp(char *filename, unsigned char **buf, int *w, int *h, int pf, |
- int bottomup); |
+public class TJException extends IOException { |
-int savebmp(char *filename, unsigned char *buf, int w, int h, int pf, |
- int bottomup); |
+ private static final long serialVersionUID = 1L; |
-const char *bmpgeterr(void); |
+ public TJException() { |
+ super(); |
+ } |
-#endif |
+ public TJException(String message, Throwable cause) { |
+ super(message, cause); |
+ } |
+ |
+ public TJException(String message) { |
+ super(message); |
+ } |
+ |
+ public TJException(Throwable cause) { |
+ super(cause); |
+ } |
+ |
+} |