Skip to content

Commit

Permalink
added a constructor that can get the encoding to use from a session o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
pajp committed Jan 15, 2011
1 parent 5ee85f2 commit d0185cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nu/dll/lyskom/Hollerith.java
Expand Up @@ -28,6 +28,13 @@ public Hollerith(String s) {
this(s, Session.defaultServerEncoding);
}

/**
* Creates a new Hollerith using the session server encoding
*/
public Hollerith(String string, Session session) {
this(string, session.getServerEncoding());
}

public Hollerith(byte[] buf, String charset) {
setCharset(charset);
setContents(buf);
Expand Down

0 comments on commit d0185cb

Please sign in to comment.