|
|
|
@ -51,6 +51,11 @@ public abstract class PrismLog implements Closeable, AutoCloseable |
|
|
|
*/ |
|
|
|
protected int numberOfWarnings = 0; |
|
|
|
|
|
|
|
/** |
|
|
|
* Flag: Ignore calls to close. |
|
|
|
*/ |
|
|
|
protected boolean ignoreClose = false; |
|
|
|
|
|
|
|
/** |
|
|
|
* Sets the counter of warnings printed to 0. |
|
|
|
*/ |
|
|
|
@ -86,6 +91,22 @@ public abstract class PrismLog implements Closeable, AutoCloseable |
|
|
|
this.verbosityLevel = verbosityLevel; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the flag "ignore calls to close()" to the given value. |
|
|
|
*/ |
|
|
|
public void setIgnoreClose(boolean value) |
|
|
|
{ |
|
|
|
ignoreClose = value; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the flag for "ignore calls to close()". |
|
|
|
*/ |
|
|
|
public boolean getIgnoreClose() |
|
|
|
{ |
|
|
|
return ignoreClose; |
|
|
|
} |
|
|
|
|
|
|
|
public abstract boolean ready(); |
|
|
|
|
|
|
|
public abstract long getFilePointer(); |
|
|
|
|