Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07A1F10604 for ; Fri, 23 Aug 2013 22:29:50 +0000 (UTC) Received: (qmail 56671 invoked by uid 500); 23 Aug 2013 22:29:45 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 56515 invoked by uid 500); 23 Aug 2013 22:29:45 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 56508 invoked by uid 99); 23 Aug 2013 22:29:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 22:29:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.212.54] (HELO mail-vb0-f54.google.com) (209.85.212.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 22:29:38 +0000 Received: by mail-vb0-f54.google.com with SMTP id q14so837005vbe.13 for ; Fri, 23 Aug 2013 15:28:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=9AmZqAyIVKvSCnpDTpKaTE76uvepdroOn4BfOeRCN5s=; b=MtPbBdObgF32S2ellHL4EfGx5VCI91fnYaYpLSkYvvSPlRHQQpCyAOpXoXDSwY1Ox8 4BbkgG0T4witW2/1uB3+HtUcUcsUtQ4eaGbKuAn4LemOpapc+Bp3WHN3Vx0nhizXz9yC bbCbtlDUWKwFBskLgXXUT0M//Viz5M8x6BjxaQFvxctFLxP9shZt5xVlUHYaBsOzlUlU z6aVW8N9IcA5Kvwb7Zv698VqQ35KSZJEnoW8Crr/oRmo8AvAJK+N1PCX7UBE/dpT1Otv HMNApsOZ0+yq/JU1LKJ9X9Kvv27DmYW0tQH6QAifaJzpEYZhP7ElkFDnz9V4/oV+uGTQ dQBw== X-Gm-Message-State: ALoCoQkwoTQBhbewVF03bDZh2PU51ECPtk5+m+fNs3OwjIpvvAvQSrkpd+fXvRqKy68WMugO+8lU MIME-Version: 1.0 X-Received: by 10.52.164.16 with SMTP id ym16mr1062154vdb.32.1377296937835; Fri, 23 Aug 2013 15:28:57 -0700 (PDT) Received: by 10.58.100.205 with HTTP; Fri, 23 Aug 2013 15:28:57 -0700 (PDT) Date: Fri, 23 Aug 2013 15:28:57 -0700 Message-ID: Subject: Writable readFields question From: Ken Sullivan To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c22e58bae31504e4a4eed1 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c22e58bae31504e4a4eed1 Content-Type: text/plain; charset=ISO-8859-1 For my application I'm decoding data in readFields() of non-predetermined length. I've found parsing for "4" (ASCII End Of Transmission) or "-1" tend to mark the end of the data stream. Is this reliable, or is there a better way? Thanks, Ken --001a11c22e58bae31504e4a4eed1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
For my application I'm decoding data in read= Fields() of non-predetermined length.=A0 I've found parsing for "4= " (ASCII End Of Transmission) or "-1" tend to mark the end o= f the data stream.=A0 Is this reliable, or is there a better way?

Thanks,
Ken
--001a11c22e58bae31504e4a4eed1--