-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extended DataBind, so that it could return the last bound object
- Loading branch information
Showing
3 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
ebean-core-type/src/main/java/io/ebean/core/type/InputStreamInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.ebean.core.type; | ||
|
||
import java.io.InputStream; | ||
|
||
/** | ||
* Helper to transports length info of DataBind.setBinaryStream(stream, length) to BindValidation | ||
* | ||
* @author Roland Praml, FOCONIS AG | ||
*/ | ||
public class InputStreamInfo { | ||
private final InputStream stream; | ||
|
||
private final long length; | ||
|
||
public InputStreamInfo(InputStream stream, long length) { | ||
this.stream = stream; | ||
this.length = length; | ||
} | ||
|
||
public InputStream stream() { | ||
return stream; | ||
} | ||
|
||
public long length() { | ||
return length; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters