diff options
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java b/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java deleted file mode 100644 index d3474e736e..0000000000 --- a/src/com/vaadin/terminal/gwt/server/AbstractStreamingEvent.java +++ /dev/null @@ -1,46 +0,0 @@ -/* -@VaadinApache2LicenseForJavaFiles@ - */ -package com.vaadin.terminal.gwt.server; - -import com.vaadin.terminal.StreamVariable.StreamingEvent; - -/** - * Abstract base class for StreamingEvent implementations. - */ -@SuppressWarnings("serial") -abstract class AbstractStreamingEvent implements StreamingEvent { - private final String type; - private final String filename; - private final long contentLength; - private final long bytesReceived; - - @Override - public final String getFileName() { - return filename; - } - - @Override - public final String getMimeType() { - return type; - } - - protected AbstractStreamingEvent(String filename, String type, long length, - long bytesReceived) { - this.filename = filename; - this.type = type; - contentLength = length; - this.bytesReceived = bytesReceived; - } - - @Override - public final long getContentLength() { - return contentLength; - } - - @Override - public final long getBytesReceived() { - return bytesReceived; - } - -} |